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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8208/0.8208, allocations: 141.8 MB / 149.1 MB, free: 15.74 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 181.7 kB / 182 MB, free: 12.07 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.3 MB / 436.1 MB, free: 4.727 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 98.72 kB / 0.507 GB, free: 19.06 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001993/0.001993, allocations: 280.5 kB / 0.5885 GB, free: 6.008 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.286e-06/8.326e-06, allocations: 1 kB / 0.6759 GB, free: 139.3 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2113, allocations: 82.77 MB / 0.7567 GB, free: 87.36 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8596/1.071, allocations: 380.6 MB / 1.128 GB, free: 2.375 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/1.071, allocations: 90.27 kB / 1.129 GB, free: 2.328 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.561/2.632, allocations: 314.5 MB / 1.436 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0002155/2.632, allocations: 25.17 kB / 1.436 GB, free: 140.8 MB / 0.6982 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.003469/2.636, allocations: 1.194 MB / 1.437 GB, free: 140.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/2.636, allocations: 9.656 kB / 1.437 GB, free: 140.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007794/2.637, allocations: 119.8 kB / 1.437 GB, free: 140.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/2.64, allocations: 1.075 MB / 1.438 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/2.64, allocations: 19.69 kB / 1.438 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/2.64, allocations: 35.25 kB / 1.438 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008403/2.641, allocations: 348.5 kB / 1.438 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008917/2.642, allocations: 468.4 kB / 1.439 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/2.642, allocations: 0 / 1.439 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/2.642, allocations: 0 / 1.439 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/2.642, allocations: 15.03 kB / 1.439 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005215/2.647, allocations: 2.796 MB / 1.442 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000697/2.648, allocations: 319.6 kB / 1.442 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/2.648, allocations: 147.2 kB / 1.442 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007759/2.649, allocations: 0.8634 MB / 1.443 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/2.649, allocations: 37.5 kB / 1.443 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=32): time 2.895e-06/2.649, allocations: 0 / 1.443 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=32): time 0.00132/2.65, allocations: 435.7 kB / 1.443 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/2.65, allocations: 65.72 kB / 1.443 GB, free: 137.4 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/2.652, allocations: 0.8819 MB / 1.444 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/2.652, allocations: 25.7 kB / 1.444 GB, free: 137.2 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/2.652, allocations: 302.9 kB / 1.445 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/2.652, allocations: 110.8 kB / 1.445 GB, free: 137 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/2.652, allocations: 0 / 1.445 GB, free: 137 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.403e-05/2.652, allocations: 316.8 kB / 1.445 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/2.653, allocations: 132.5 kB / 1.445 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/2.653, allocations: 215.3 kB / 1.445 GB, free: 136.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007141/2.654, allocations: 241.6 kB / 1.446 GB, free: 136.6 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/2.654, allocations: 0 / 1.446 GB, free: 136.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001227/2.655, allocations: 0.5179 MB / 1.446 GB, free: 136.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002208/2.655, allocations: 0.7008 MB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/2.655, allocations: 7.375 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.252e-05/2.655, allocations: 3.156 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/2.656, allocations: 96.62 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/2.656, allocations: 10.09 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007513/2.656, allocations: 59.69 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.685e-05/2.656, allocations: 16.5 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/2.657, allocations: 3.875 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009688/2.657, allocations: 405.9 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/2.657, allocations: 3.656 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.584e-06/2.658, allocations: 3.406 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/2.658, allocations: 97.06 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/2.658, allocations: 3.938 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006389/2.659, allocations: 54.52 kB / 1.447 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/2.659, allocations: 18.88 kB / 1.448 GB, free: 135.8 MB / 0.6982 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.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (-273.15 + CHP.vol.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002483/2.659, allocations: 146.7 kB / 1.448 GB, free: 135.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/2.659, allocations: 89.22 kB / 1.448 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/2.661, allocations: 0.6466 MB / 1.448 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/2.661, allocations: 7.375 kB / 1.448 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/2.661, allocations: 0 / 1.448 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008985/2.662, allocations: 0.6644 MB / 1.449 GB, free: 135.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/2.665, allocations: 1.522 MB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/2.665, allocations: 0 / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/2.665, allocations: 76.52 kB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/2.665, allocations: 3.906 kB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/2.665, allocations: 11.34 kB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/2.665, allocations: 3.75 kB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/2.665, allocations: 3.938 kB / 1.451 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00151/2.667, allocations: 0.9353 MB / 1.452 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005024/2.667, allocations: 259.1 kB / 1.452 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/2.667, allocations: 7.578 kB / 1.452 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005191/2.668, allocations: 30.81 kB / 1.452 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/2.668, allocations: 33.41 kB / 1.452 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.537e-05/2.668, allocations: 20.8 kB / 1.452 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001046/2.669, allocations: 0.6785 MB / 1.453 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001877/2.671, allocations: 492.3 kB / 1.453 GB, free: 134.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (senTemIn.T,senTemOut.T,CHP.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001747/2.673, allocations: 0.6782 MB / 1.454 GB, free: 134 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00121/2.674, allocations: 0.5651 MB / 1.454 GB, free: 134 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/2.674, allocations: 3.609 kB / 1.454 GB, free: 134 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003488/2.674, allocations: 198.9 kB / 1.454 GB, free: 134 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/2.676, allocations: 327.1 kB / 1.455 GB, free: 134 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/2.679, allocations: 1.408 MB / 1.456 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009982/2.68, allocations: 1.143 MB / 1.457 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of SimCode: time 5.61e-07/2.68, allocations: 0 / 1.457 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of Templates: time 0.0366/2.717, allocations: 19.11 MB / 1.476 GB, free: 132.5 MB / 0.6982 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)