Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit") translateModel(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 115.1 kB / 16.42 MB, free: 6.488 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.001888/0.001888, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 293.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9306/0.9306, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 95.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3722, allocations: 86.97 MB / 0.767 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit): time 0.03647/0.4087, allocations: 39.17 MB / 0.8053 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01009/0.4188, allocations: 7.589 MB / 0.8127 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.4198, allocations: 43.75 kB / 0.8127 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.4211, allocations: 492.8 kB / 0.8132 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002744/0.4239, allocations: 1.221 MB / 0.8144 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.4265, allocations: 1.129 MB / 0.8155 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00255/0.429, allocations: 2.252 MB / 0.8177 GB, free: 0 / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.4301, allocations: 0.7126 MB / 0.8184 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.4321, allocations: 0.9057 MB / 0.8193 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008865/0.433, allocations: 0.6326 MB / 0.8199 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.4331, allocations: 72 kB / 0.82 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.4349, allocations: 0.9592 MB / 0.8209 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002472/0.4351, allocations: 247.1 kB / 0.8211 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000525/0.4357, allocations: 0.5051 MB / 0.8216 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.4378, allocations: 1.669 MB / 0.8232 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.4378, allocations: 0 / 0.8232 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4378, allocations: 0 / 0.8232 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.242e-05/0.4378, allocations: 0 / 0.8232 GB, free: 10.28 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002175/0.44, allocations: 1.425 MB / 0.8246 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.4401, allocations: 8.031 kB / 0.8246 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.4404, allocations: 123.5 kB / 0.8248 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/0.442, allocations: 1.033 MB / 0.8258 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.4421, allocations: 37 kB / 0.8258 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.608e-05/0.4422, allocations: 52 kB / 0.8259 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.4432, allocations: 0.5591 MB / 0.8264 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.4432, allocations: 3.984 kB / 0.8264 GB, free: 6.926 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.4433, allocations: 20 kB / 0.8264 GB, free: 6.906 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.4433, allocations: 12 kB / 0.8264 GB, free: 6.895 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008562/0.4442, allocations: 427.7 kB / 0.8268 GB, free: 6.473 MB / 0.5919 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.003438/0.4476, allocations: 2.619 MB / 0.8294 GB, free: 3.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008299/0.4485, allocations: 436.8 kB / 0.8298 GB, free: 3.227 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003264/0.4488, allocations: 173.3 kB / 0.83 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007997/0.4496, allocations: 0.8547 MB / 0.8308 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.4497, allocations: 30.84 kB / 0.8309 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.823e-06/0.4497, allocations: 0 / 0.8309 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001141/0.4508, allocations: 0.5326 MB / 0.8314 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.4509, allocations: 55.41 kB / 0.8314 GB, free: 1.371 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.452, allocations: 0.9635 MB / 0.8324 GB, free: 396 kB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.4521, allocations: 33.7 kB / 0.8324 GB, free: 356 kB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.4524, allocations: 456.1 kB / 0.8328 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.65e-05/0.4525, allocations: 122.3 kB / 0.8329 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.4527, allocations: 90.03 kB / 0.833 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.4528, allocations: 329.9 kB / 0.8333 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.4531, allocations: 146.5 kB / 0.8335 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.4535, allocations: 245.7 kB / 0.8337 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00741/0.4609, allocations: 1.401 MB / 0.8351 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4609, allocations: 7.938 kB / 0.8351 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009552/0.4619, allocations: 0.5156 MB / 0.8356 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.4619, allocations: 8 kB / 0.8356 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4619, allocations: 3.938 kB / 0.8356 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.462, allocations: 4 kB / 0.8356 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.4623, allocations: 99.88 kB / 0.8357 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.4624, allocations: 8.156 kB / 0.8357 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.4628, allocations: 59.45 kB / 0.8358 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.4629, allocations: 23.98 kB / 0.8358 GB, free: 12.77 MB / 0.6075 GB Warning: Assuming fixed start value for the following 1 variables: CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (CHP.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 1e5 protected = true final = true ) "Internal energy of fluid" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006488/0.4635, allocations: 408 kB / 0.8362 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003778/0.4639, allocations: 237.7 kB / 0.8364 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00727/0.4712, allocations: 1.413 MB / 0.8378 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.974e-06/0.4712, allocations: 0 / 0.8378 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009355/0.4721, allocations: 0.5157 MB / 0.8383 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.4722, allocations: 4 kB / 0.8383 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.4722, allocations: 7.984 kB / 0.8383 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.024e-06/0.4722, allocations: 7.938 kB / 0.8383 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.4726, allocations: 91.89 kB / 0.8384 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.4726, allocations: 4 kB / 0.8384 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.473, allocations: 43.72 kB / 0.8385 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.4731, allocations: 20.12 kB / 0.8385 GB, free: 9.977 MB / 0.6075 GB Warning: Assuming fixed start value for the following 1 variables: CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (CHP.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 1e5 protected = true final = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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.0001927/0.4733, allocations: 239.2 kB / 0.8387 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.4734, allocations: 98.78 kB / 0.8388 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.4746, allocations: 0.6172 MB / 0.8394 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00079/0.4754, allocations: 0.644 MB / 0.84 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.4754, allocations: 0 / 0.84 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.4757, allocations: 223.7 kB / 0.8402 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4758, allocations: 4 kB / 0.8402 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.4762, allocations: 27.98 kB / 0.8403 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.4763, allocations: 27.95 kB / 0.8403 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00105/0.4774, allocations: 0.5312 MB / 0.8408 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001303/0.4787, allocations: 0.9212 MB / 0.8417 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000346/0.479, allocations: 207.9 kB / 0.8419 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008382/0.4799, allocations: 0.6816 MB / 0.8426 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of Backend: time 9.02e-07/0.4799, allocations: 0 / 0.8426 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002737/0.4826, allocations: 1.136 MB / 0.8437 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of SimCode: time 0.003523/0.4862, allocations: 2.381 MB / 0.846 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of Templates: time 0.02912/0.5153, allocations: 19.24 MB / 0.8648 GB, free: 15.25 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.sim & ./BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe 2>&1)