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.001071/0.001072, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001001/0.001001, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.282/1.282, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002091/0.002091, allocations: 289.7 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9158/0.9158, allocations: 169.3 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 88.14 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3753, allocations: 86.99 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit): time 0.03671/0.412, allocations: 39.16 MB / 0.8053 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009631/0.4217, allocations: 7.598 MB / 0.8127 GB, free: 5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006249/0.4223, allocations: 47.75 kB / 0.8127 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000993/0.4234, allocations: 476.9 kB / 0.8132 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.4255, allocations: 1.162 MB / 0.8143 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.4277, allocations: 1.119 MB / 0.8154 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002125/0.4298, allocations: 2.252 MB / 0.8176 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008224/0.4307, allocations: 0.7086 MB / 0.8183 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.4322, allocations: 0.9006 MB / 0.8192 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006848/0.4329, allocations: 0.6221 MB / 0.8198 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.433, allocations: 72 kB / 0.8199 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.4345, allocations: 0.9631 MB / 0.8208 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.4347, allocations: 239.1 kB / 0.821 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004128/0.4352, allocations: 0.5089 MB / 0.8215 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.4369, allocations: 1.665 MB / 0.8232 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4369, allocations: 0 / 0.8232 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4369, allocations: 4 kB / 0.8232 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.057e-05/0.4369, allocations: 0 / 0.8232 GB, free: 10.25 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.001846/0.4388, allocations: 1.429 MB / 0.8246 GB, free: 8.762 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.4388, allocations: 12.03 kB / 0.8246 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000254/0.4391, allocations: 119.5 kB / 0.8247 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.4406, allocations: 1.026 MB / 0.8257 GB, free: 7.562 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.4406, allocations: 44.98 kB / 0.8257 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-05/0.4407, allocations: 56 kB / 0.8258 GB, free: 7.461 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009485/0.4417, allocations: 0.5475 MB / 0.8263 GB, free: 6.898 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.4417, allocations: 7.938 kB / 0.8263 GB, free: 6.891 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.278e-05/0.4417, allocations: 31.94 kB / 0.8264 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.4418, allocations: 12 kB / 0.8264 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008385/0.4426, allocations: 423.7 kB / 0.8268 GB, free: 6.43 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.00316/0.4458, allocations: 2.612 MB / 0.8293 GB, free: 3.645 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008112/0.4466, allocations: 431.2 kB / 0.8297 GB, free: 3.199 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.4469, allocations: 181.3 kB / 0.8299 GB, free: 3.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007867/0.4477, allocations: 0.8508 MB / 0.8307 GB, free: 1.984 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.4478, allocations: 42.78 kB / 0.8308 GB, free: 1.934 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.713e-06/0.4478, allocations: 0 / 0.8308 GB, free: 1.934 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001081/0.4489, allocations: 0.5327 MB / 0.8313 GB, free: 1.395 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.4489, allocations: 55.41 kB / 0.8313 GB, free: 1.328 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.45, allocations: 0.9557 MB / 0.8323 GB, free: 360 kB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.45, allocations: 37.7 kB / 0.8323 GB, free: 316 kB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000359/0.4504, allocations: 460.1 kB / 0.8328 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.523e-05/0.4505, allocations: 114.3 kB / 0.8329 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.4507, allocations: 98.02 kB / 0.833 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.4508, allocations: 318 kB / 0.8333 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.4511, allocations: 154.5 kB / 0.8334 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003813/0.4515, allocations: 249.6 kB / 0.8336 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007282/0.4588, allocations: 1.409 MB / 0.835 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4588, allocations: 0 / 0.835 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009084/0.4597, allocations: 0.5118 MB / 0.8355 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.4597, allocations: 12.2 kB / 0.8355 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.4597, allocations: 7.938 kB / 0.8355 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4597, allocations: 4 kB / 0.8355 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.4601, allocations: 91.83 kB / 0.8356 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.4601, allocations: 4 kB / 0.8356 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.4605, allocations: 63.48 kB / 0.8357 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.4606, allocations: 16 kB / 0.8357 GB, free: 12.74 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.0006151/0.4612, allocations: 412 kB / 0.8361 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003743/0.4616, allocations: 249.6 kB / 0.8363 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006902/0.4685, allocations: 1.397 MB / 0.8377 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.987e-06/0.4685, allocations: 4 kB / 0.8377 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008914/0.4694, allocations: 0.5156 MB / 0.8382 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.4694, allocations: 8 kB / 0.8382 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.4694, allocations: 0 / 0.8382 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.961e-06/0.4695, allocations: 7.938 kB / 0.8382 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.4698, allocations: 108 kB / 0.8383 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.4698, allocations: 4 kB / 0.8383 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003979/0.4702, allocations: 35.73 kB / 0.8384 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.4703, allocations: 19.98 kB / 0.8384 GB, free: 9.938 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.000173/0.4705, allocations: 239.2 kB / 0.8386 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.4706, allocations: 102.8 kB / 0.8387 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.4717, allocations: 0.6181 MB / 0.8393 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007748/0.4725, allocations: 0.6402 MB / 0.8399 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4725, allocations: 4 kB / 0.8399 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.4728, allocations: 211.8 kB / 0.8401 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4729, allocations: 12 kB / 0.8402 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.4732, allocations: 19.97 kB / 0.8402 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.4733, allocations: 23.97 kB / 0.8402 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00102/0.4743, allocations: 0.5506 MB / 0.8407 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001261/0.4756, allocations: 0.9173 MB / 0.8416 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003299/0.4759, allocations: 211.9 kB / 0.8418 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007986/0.4768, allocations: 0.6739 MB / 0.8425 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of Backend: time 4.51e-07/0.4768, allocations: 0 / 0.8425 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002636/0.4794, allocations: 1.136 MB / 0.8436 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of SimCode: time 0.00333/0.4827, allocations: 2.387 MB / 0.8459 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of Templates: time 0.02796/0.5107, allocations: 19.23 MB / 0.8647 GB, free: 15.21 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)