Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01519/0.01519, allocations: 101.3 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002671/0.002671, allocations: 186.1 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.579/1.579, allocations: 251.7 MB / 0.5094 GB, free: 3.023 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 67.91 kB / 0.7258 GB, free: 8.957 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2948, allocations: 104.7 MB / 0.8281 GB, free: 136 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06276/0.3576, allocations: 60.45 MB / 0.8871 GB, free: 3.465 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.02212/0.3798, allocations: 13.04 MB / 0.8998 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003724/0.3835, allocations: 63.62 kB / 0.8999 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003499/0.3871, allocations: 0.9743 MB / 0.9009 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.009032/0.3962, allocations: 2.421 MB / 0.9032 GB, free: 2.926 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function 'Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.005201/0.4014, allocations: 1.518 MB / 0.9047 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.7091/1.11, allocations: 4.273 MB / 0.9089 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002568/1.113, allocations: 1.323 MB / 0.9102 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004819/1.118, allocations: 1.613 MB / 0.9117 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/1.12, allocations: 1.181 MB / 0.9129 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0003079/1.12, allocations: 138.2 kB / 0.913 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004349/1.125, allocations: 1.447 MB / 0.9144 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005641/1.125, allocations: 413.7 kB / 0.9148 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00125/1.127, allocations: 0.8951 MB / 0.9157 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.006983/1.134, allocations: 2.739 MB / 0.9184 GB, free: 15 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.134, allocations: 0 / 0.9184 GB, free: 15 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.476e-06/1.134, allocations: 1.375 kB / 0.9184 GB, free: 15 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.179e-05/1.134, allocations: 0 / 0.9184 GB, free: 15 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00632/1.14, allocations: 2.161 MB / 0.9205 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.936e-05/1.14, allocations: 10.47 kB / 0.9205 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003873/1.144, allocations: 0.5981 MB / 0.9211 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003155/1.147, allocations: 1.409 MB / 0.9225 GB, free: 13.31 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/1.147, allocations: 147.8 kB / 0.9226 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/1.148, allocations: 106.1 kB / 0.9227 GB, free: 13.24 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003642/1.151, allocations: 1.294 MB / 0.924 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.639e-05/1.151, allocations: 4.094 kB / 0.924 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/1.151, allocations: 37.03 kB / 0.924 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.157e-05/1.152, allocations: 25.23 kB / 0.924 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003996/1.156, allocations: 1.31 MB / 0.9253 GB, free: 13.07 MB / 0.7169 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008937/1.164, allocations: 5.332 MB / 0.9305 GB, free: 10.6 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005815/1.17, allocations: 1.408 MB / 0.9319 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/1.172, allocations: 0.5916 MB / 0.9325 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008702/1.173, allocations: 1.236 MB / 0.9337 GB, free: 8.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002038/1.175, allocations: 0.6475 MB / 0.9343 GB, free: 8.844 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=69): time 3.056e-06/1.175, allocations: 1.969 kB / 0.9343 GB, free: 8.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69): time 0.005973/1.181, allocations: 1.673 MB / 0.9359 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/1.181, allocations: 70.41 kB / 0.936 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/1.183, allocations: 1.275 MB / 0.9373 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.000147/1.183, allocations: 41.89 kB / 0.9373 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006599/1.184, allocations: 0.6458 MB / 0.9379 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003083/1.184, allocations: 237.3 kB / 0.9381 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003718/1.185, allocations: 173.7 kB / 0.9383 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.185, allocations: 339 kB / 0.9386 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/1.187, allocations: 0.5251 MB / 0.9392 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/1.188, allocations: 0.7459 MB / 0.9399 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/1.191, allocations: 1.13 MB / 0.941 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/1.191, allocations: 1.188 kB / 0.941 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004255/1.196, allocations: 1.393 MB / 0.9423 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.015e-05/1.196, allocations: 35.27 kB / 0.9424 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.196, allocations: 3.188 kB / 0.9424 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.524e-05/1.196, allocations: 9.562 kB / 0.9424 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/1.197, allocations: 254.6 kB / 0.9426 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/1.197, allocations: 7.859 kB / 0.9426 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/1.199, allocations: 181.8 kB / 0.9428 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/1.199, allocations: 42.95 kB / 0.9429 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002179/1.201, allocations: 0.7778 MB / 0.9436 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001705/1.203, allocations: 0.7386 MB / 0.9443 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002945/1.206, allocations: 1.121 MB / 0.9454 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.308e-06/1.206, allocations: 0 / 0.9454 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.004054/1.21, allocations: 1.381 MB / 0.9468 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/1.21, allocations: 34.27 kB / 0.9468 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/1.21, allocations: 6.125 kB / 0.9468 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/1.21, allocations: 6.875 kB / 0.9468 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/1.211, allocations: 255 kB / 0.9471 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/1.211, allocations: 6.938 kB / 0.9471 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/1.213, allocations: 176.9 kB / 0.9472 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/1.213, allocations: 35.84 kB / 0.9473 GB, free: 6.348 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005248/1.214, allocations: 232.8 kB / 0.9475 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003713/1.214, allocations: 144.6 kB / 0.9476 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004535/1.219, allocations: 1.453 MB / 0.9491 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/1.219, allocations: 10.31 kB / 0.9491 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/1.219, allocations: 0 / 0.9491 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003127/1.222, allocations: 1.228 MB / 0.9503 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00794/1.23, allocations: 3.158 MB / 0.9534 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/1.23, allocations: 7.094 kB / 0.9534 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/1.231, allocations: 224.1 kB / 0.9536 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/1.231, allocations: 7.094 kB / 0.9536 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.226e-05/1.231, allocations: 27.17 kB / 0.9536 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.079e-05/1.231, allocations: 8.375 kB / 0.9536 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.231, allocations: 12.12 kB / 0.9536 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005217/1.237, allocations: 2.204 MB / 0.9558 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008996/1.237, allocations: 339 kB / 0.9561 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/1.238, allocations: 18.25 kB / 0.9561 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/1.239, allocations: 128.1 kB / 0.9562 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/1.239, allocations: 78.34 kB / 0.9563 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-05/1.239, allocations: 40.94 kB / 0.9564 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001427/1.241, allocations: 0.9113 MB / 0.9572 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.61e-07/1.241, allocations: 0 / 0.9572 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002769/1.243, allocations: 0.7893 MB / 0.958 GB, free: 2.438 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/1.245, allocations: 0.5257 MB / 0.9585 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005202/1.25, allocations: 1.99 MB / 0.9605 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.25, allocations: 0 / 0.9605 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001731/1.252, allocations: 0.6765 MB / 0.9611 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003707/1.256, allocations: 0.7584 MB / 0.9619 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005127/1.261, allocations: 2.654 MB / 0.9645 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009088/1.262, allocations: 1.225 MB / 0.9657 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001976/1.264, allocations: 363.7 kB / 0.966 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/1.264, allocations: 123.7 kB / 0.9661 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of SimCode: time 9.71e-07/1.264, allocations: 7.938 kB / 0.9661 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of Templates: time 0.06082/1.325, allocations: 31.6 MB / 0.997 GB, free: 0.5742 MB / 0.7481 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)