Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.582/1.582, allocations: 289.8 MB / 297.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 177.3 kB / 366.3 MB, free: 2.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.1 MB / 0.6256 GB, free: 5.93 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009361/0.0009359, allocations: 86.23 kB / 0.7395 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.107e-06/9.138e-06, allocations: 4 kB / 0.859 GB, free: 13.41 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6269/0.6269, allocations: 116.3 MB / 0.9726 GB, free: 68.77 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.929/1.556, allocations: 475.1 MB / 1.436 GB, free: 14.86 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/1.556, allocations: 94.98 kB / 1.437 GB, free: 14.81 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.655/5.211, allocations: 1.002 GB / 2.439 GB, free: 136.9 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003712/5.211, allocations: 64.25 kB / 2.439 GB, free: 136.9 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 0.008915/5.22, allocations: 2.834 MB / 2.442 GB, free: 135.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/5.22, allocations: 7.25 kB / 2.442 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00567/5.226, allocations: 0.7074 MB / 2.442 GB, free: 135.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/5.237, allocations: 3.078 MB / 2.445 GB, free: 134.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001093/5.238, allocations: 280.2 kB / 2.446 GB, free: 134.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005945/5.239, allocations: 116.3 kB / 2.446 GB, free: 134.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003915/5.243, allocations: 1.443 MB / 2.447 GB, free: 134.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003449/5.246, allocations: 1.667 MB / 2.449 GB, free: 134.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/5.246, allocations: 2.719 kB / 2.449 GB, free: 134.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002488/5.247, allocations: 9.656 kB / 2.449 GB, free: 134.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.587e-05/5.247, allocations: 41.72 kB / 2.449 GB, free: 134.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01745/5.264, allocations: 9.695 MB / 2.458 GB, free: 130 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/5.265, allocations: 0.7166 MB / 2.459 GB, free: 129.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008549/5.266, allocations: 0.5792 MB / 2.46 GB, free: 129.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006887/5.273, allocations: 4.036 MB / 2.464 GB, free: 128.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/5.274, allocations: 0.7072 MB / 2.464 GB, free: 128.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=92): time 4.499e-06/5.274, allocations: 0 / 2.464 GB, free: 128.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=92): time 0.003209/5.277, allocations: 1.296 MB / 2.465 GB, free: 127.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/5.278, allocations: 216.6 kB / 2.466 GB, free: 127.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002819/5.28, allocations: 1.845 MB / 2.468 GB, free: 127.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002461/5.281, allocations: 37.17 kB / 2.468 GB, free: 127.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006824/5.281, allocations: 0.7533 MB / 2.468 GB, free: 127 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/5.282, allocations: 288.4 kB / 2.469 GB, free: 126.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/5.282, allocations: 14.61 kB / 2.469 GB, free: 126.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.237e-05/5.282, allocations: 356.2 kB / 2.469 GB, free: 126.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000975/5.283, allocations: 0.6088 MB / 2.47 GB, free: 126.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/5.284, allocations: 1.131 MB / 2.471 GB, free: 125.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/5.286, allocations: 0.8324 MB / 2.471 GB, free: 125.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/5.286, allocations: 6.75 kB / 2.471 GB, free: 125.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004676/5.291, allocations: 1.97 MB / 2.473 GB, free: 125.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001036/5.292, allocations: 5.035 MB / 2.478 GB, free: 120.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/5.292, allocations: 18.62 kB / 2.478 GB, free: 120.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.613e-05/5.292, allocations: 20.84 kB / 2.478 GB, free: 120.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/5.294, allocations: 362.1 kB / 2.479 GB, free: 120.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.216e-05/5.294, allocations: 27.8 kB / 2.479 GB, free: 120.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003407/5.297, allocations: 440.6 kB / 2.479 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002769/5.298, allocations: 91.08 kB / 2.479 GB, free: 120.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/5.298, allocations: 3.875 kB / 2.479 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004022/5.302, allocations: 1.684 MB / 2.481 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/5.302, allocations: 15.95 kB / 2.481 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/5.302, allocations: 20.09 kB / 2.481 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/5.303, allocations: 361.8 kB / 2.481 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/5.303, allocations: 28.84 kB / 2.481 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/5.307, allocations: 383.5 kB / 2.482 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002499/5.307, allocations: 93.45 kB / 2.482 GB, free: 120.3 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 153 * Array equations: 2 * Algorithm blocks: 4 * Record equations: 1 * 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.0005613/5.308, allocations: 175.2 kB / 2.482 GB, free: 120.2 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/5.308, allocations: 234.2 kB / 2.482 GB, free: 120 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/5.312, allocations: 1.545 MB / 2.484 GB, free: 119.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/5.312, allocations: 12.94 kB / 2.484 GB, free: 119.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/5.312, allocations: 0 / 2.484 GB, free: 119.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002079/5.314, allocations: 1.193 MB / 2.485 GB, free: 119.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009473/5.324, allocations: 3.396 MB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/5.324, allocations: 0 / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/5.325, allocations: 248.2 kB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/5.325, allocations: 3.719 kB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/5.325, allocations: 23.94 kB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/5.325, allocations: 7.234 kB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/5.325, allocations: 3.094 kB / 2.488 GB, free: 119.4 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004409/5.329, allocations: 2.281 MB / 2.491 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/5.331, allocations: 0.5185 MB / 2.491 GB, free: 118.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003867/5.332, allocations: 6.094 kB / 2.491 GB, free: 118.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/5.333, allocations: 150.1 kB / 2.491 GB, free: 118.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/5.333, allocations: 73.11 kB / 2.491 GB, free: 118.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/5.334, allocations: 46.59 kB / 2.491 GB, free: 118.8 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002123/5.336, allocations: 1.377 MB / 2.493 GB, free: 118.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005284/5.341, allocations: 1.457 MB / 2.494 GB, free: 118.4 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * 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.002841/5.344, allocations: 1.458 MB / 2.496 GB, free: 118 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.004487/5.348, allocations: 2.697 MB / 2.498 GB, free: 117.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/5.348, allocations: 2.812 kB / 2.498 GB, free: 117.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000869/5.349, allocations: 0.6162 MB / 2.499 GB, free: 117.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005504/5.355, allocations: 0.9359 MB / 2.5 GB, free: 117.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007943/5.363, allocations: 3.291 MB / 2.503 GB, free: 116.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001933/5.365, allocations: 1.929 MB / 2.505 GB, free: 115.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.744e-06/5.365, allocations: 0 / 2.505 GB, free: 115.6 MB / 0.948 GB Notification: Performance of Templates: time 0.1065/5.471, allocations: 60.32 MB / 2.564 GB, free: 86.89 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)