Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.HeatExchangers.CoolingTowers.Examples.Merkel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TEnt.T|tow.TLvg|tow.TAir|conFan.u_s|conFan.u_m|onOffCon.u|onOffCon.reference",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TEnt.T|tow.TLvg|tow.TAir|conFan.u_s|conFan.u_m|onOffCon.u|onOffCon.reference",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001522/0.001522, allocations: 188.3 kB / 17.35 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.434/2.434, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 67.84 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8026/0.804, allocations: 151.6 MB / 1.167 GB, free: 3.887 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel): time 0.2451/1.049, allocations: 239.7 MB / 1.401 GB, free: 3.254 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.03943/1.089, allocations: 27.02 MB / 1.428 GB, free: 8.168 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005167/1.094, allocations: 107.4 kB / 1.428 GB, free: 8.062 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.007157/1.101, allocations: 2.272 MB / 1.43 GB, free: 5.781 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.01241/1.113, allocations: 4.532 MB / 1.435 GB, free: 1.242 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.008809/1.122, allocations: 3.312 MB / 1.438 GB, free: 13.95 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.01542/1.138, allocations: 10.33 MB / 1.448 GB, free: 3.594 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005421/1.143, allocations: 3.11 MB / 1.451 GB, free: 420 kB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006104/1.149, allocations: 2.769 MB / 1.454 GB, free: 13.64 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003936/1.153, allocations: 2.256 MB / 1.456 GB, free: 11.37 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.001272/1.155, allocations: 364 kB / 1.456 GB, free: 11.02 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008381/1.163, allocations: 3.597 MB / 1.46 GB, free: 7.414 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.00191/1.165, allocations: 1.118 MB / 1.461 GB, free: 6.293 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.004197/1.169, allocations: 2.076 MB / 1.463 GB, free: 4.207 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.01506/1.184, allocations: 6.983 MB / 1.47 GB, free: 13.2 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.184, allocations: 0 / 1.47 GB, free: 13.2 MB / 1.201 GB Notification: Performance of FrontEnd: time 2.184e-06/1.184, allocations: 0 / 1.47 GB, free: 13.2 MB / 1.201 GB Notification: Performance of Transformations before backend: time 0.0002327/1.184, allocations: 0 / 1.47 GB, free: 13.2 MB / 1.201 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 584 * Number of variables: 584 Notification: Performance of Generate backend data structure: time 0.01186/1.196, allocations: 4.819 MB / 1.474 GB, free: 8.281 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.196, allocations: 16.88 kB / 1.474 GB, free: 8.266 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004218/1.201, allocations: 0.7585 MB / 1.475 GB, free: 7.504 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009086/1.21, allocations: 3.751 MB / 1.479 GB, free: 3.688 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002748/1.21, allocations: 176.6 kB / 1.479 GB, free: 3.512 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007325/1.211, allocations: 243.9 kB / 1.479 GB, free: 3.273 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006242/1.217, allocations: 2.591 MB / 1.482 GB, free: 0.5352 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.64e-05/1.217, allocations: 3.938 kB / 1.482 GB, free: 0.5312 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003589/1.217, allocations: 96 kB / 1.482 GB, free: 448 kB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.117e-05/1.218, allocations: 88.36 kB / 1.482 GB, free: 356 kB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005621/1.223, allocations: 2.488 MB / 1.484 GB, free: 13.84 MB / 1.217 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.01934/1.243, allocations: 10.43 MB / 1.495 GB, free: 2.973 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004099/1.247, allocations: 1.901 MB / 1.496 GB, free: 1.07 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001867/1.249, allocations: 0.8694 MB / 1.497 GB, free: 204 kB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/1.259, allocations: 6.308 MB / 1.503 GB, free: 9.227 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00227/1.262, allocations: 1.057 MB / 1.504 GB, free: 8.156 MB / 1.232 GB Notification: Performance of pre-optimization done (n=170): time 5.29e-06/1.262, allocations: 0 / 1.504 GB, free: 8.156 MB / 1.232 GB Notification: Performance of matching and sorting (n=170): time 0.0107/1.272, allocations: 3.195 MB / 1.508 GB, free: 4.914 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/1.273, allocations: 231.6 kB / 1.508 GB, free: 4.637 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006738/1.279, allocations: 3.045 MB / 1.511 GB, free: 1.594 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0003096/1.28, allocations: 65.7 kB / 1.511 GB, free: 1.523 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001716/1.281, allocations: 1.498 MB / 1.512 GB, free: 16 kB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007634/1.282, allocations: 0.5965 MB / 1.513 GB, free: 15.41 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001213/1.283, allocations: 0.532 MB / 1.513 GB, free: 14.88 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 0.0001013/1.283, allocations: 309.1 kB / 1.514 GB, free: 14.57 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002132/1.286, allocations: 0.9524 MB / 1.515 GB, free: 13.61 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002726/1.288, allocations: 1.558 MB / 1.516 GB, free: 11.85 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004364/1.293, allocations: 2.307 MB / 1.518 GB, free: 9.387 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/1.293, allocations: 4 kB / 1.518 GB, free: 9.383 MB / 1.248 GB Notification: Performance of matching and sorting (n=329) (initialization): time 0.00839/1.301, allocations: 3.16 MB / 1.521 GB, free: 6.203 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/1.301, allocations: 12 kB / 1.521 GB, free: 6.191 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/1.301, allocations: 8 kB / 1.521 GB, free: 6.184 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665/2.966, allocations: 146.2 MB / 1.664 GB, free: 289.1 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/2.969, allocations: 0.5013 MB / 1.665 GB, free: 288.6 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003136/2.972, allocations: 2.917 MB / 1.668 GB, free: 285.8 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/2.975, allocations: 326 kB / 1.668 GB, free: 285.6 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/2.975, allocations: 115 kB / 1.668 GB, free: 285.5 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002655/2.978, allocations: 1.538 MB / 1.67 GB, free: 284.5 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001851/2.98, allocations: 1.532 MB / 1.671 GB, free: 282.7 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003044/2.983, allocations: 2.266 MB / 1.673 GB, free: 280.3 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.553e-06/2.983, allocations: 4 kB / 1.673 GB, free: 280.3 MB / 1.279 GB Notification: Performance of matching and sorting (n=329) (initialization_lambda0): time 0.006623/2.99, allocations: 3.111 MB / 1.676 GB, free: 277.4 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/2.99, allocations: 12 kB / 1.676 GB, free: 277.4 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/2.99, allocations: 12.75 kB / 1.676 GB, free: 277.4 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.9552/3.945, allocations: 146.2 MB / 1.819 GB, free: 130.9 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/3.947, allocations: 0.4953 MB / 1.82 GB, free: 130.4 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/3.95, allocations: 2.921 MB / 1.822 GB, free: 127.3 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/3.953, allocations: 275.7 kB / 1.823 GB, free: 127.2 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/3.953, allocations: 104 kB / 1.823 GB, free: 127.1 MB / 1.279 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 20 (conFan.con1.y,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,onOffCon.y,$PRE.onOffCon.y,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 282 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005448/3.954, allocations: 326.7 kB / 1.823 GB, free: 126.7 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/3.954, allocations: 345.4 kB / 1.823 GB, free: 126.5 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005246/3.96, allocations: 2.523 MB / 1.826 GB, free: 124 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003716/3.963, allocations: 2.081 MB / 1.828 GB, free: 121.9 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/3.963, allocations: 0 / 1.828 GB, free: 121.9 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/3.965, allocations: 0.6627 MB / 1.829 GB, free: 121.2 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000483/3.965, allocations: 39.95 kB / 1.829 GB, free: 121.2 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/3.967, allocations: 143.8 kB / 1.829 GB, free: 121 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/3.967, allocations: 129.8 kB / 1.829 GB, free: 120.9 MB / 1.279 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005539/3.973, allocations: 2.329 MB / 1.831 GB, free: 118.6 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005197/3.978, allocations: 3.335 MB / 1.834 GB, free: 115.2 MB / 1.279 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001379/3.979, allocations: 0.894 MB / 1.835 GB, free: 114.3 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.002642/3.982, allocations: 2.035 MB / 1.837 GB, free: 112.3 MB / 1.279 GB Notification: Performance of Backend: time 3.3e-07/3.982, allocations: 2.297 kB / 1.837 GB, free: 112.3 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.0106/3.993, allocations: 4.87 MB / 1.842 GB, free: 108 MB / 1.279 GB Notification: Performance of SimCode: time 0.01158/4.004, allocations: 7.22 MB / 1.849 GB, free: 100.7 MB / 1.279 GB Notification: Performance of Templates: time 0.109/4.113, allocations: 79.52 MB / 1.927 GB, free: 21.98 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel.pipe 2>&1)