Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.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.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection") translateModel(BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection") [: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.7571/0.7571, allocations: 141.8 MB / 149.1 MB, free: 3.664 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 185.2 kB / 181.9 MB, free: 15.44 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.382/1.382, allocations: 221.4 MB / 436 MB, free: 8.559 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.0009975/0.0009973, allocations: 96.75 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001898/0.001899, allocations: 282.5 kB / 0.5884 GB, free: 11.63 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.404e-06/7.444e-06, allocations: 0 / 0.6759 GB, free: 1.996 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5221, allocations: 82.75 MB / 0.7567 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8021/1.324, allocations: 394.1 MB / 1.142 GB, free: 3.523 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/1.325, allocations: 91.3 kB / 1.142 GB, free: 3.48 MB / 0.6669 GB Notification: Performance of FrontEnd: time 2.069/3.394, allocations: 0.5609 GB / 1.703 GB, free: 15.84 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0003081/3.394, allocations: 47.92 kB / 1.703 GB, free: 15.79 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.007819/3.402, allocations: 1.997 MB / 1.705 GB, free: 13.73 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/3.402, allocations: 12.03 kB / 1.705 GB, free: 13.72 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006384/3.409, allocations: 0.7274 MB / 1.705 GB, free: 12.99 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007008/3.416, allocations: 1.873 MB / 1.707 GB, free: 11.06 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003044/3.416, allocations: 100.3 kB / 1.707 GB, free: 10.96 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007667/3.417, allocations: 80 kB / 1.707 GB, free: 10.88 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004157/3.421, allocations: 1.153 MB / 1.708 GB, free: 9.723 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/3.426, allocations: 1.451 MB / 1.71 GB, free: 8.176 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-05/3.426, allocations: 7.938 kB / 1.71 GB, free: 8.168 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000376/3.427, allocations: 0 / 1.71 GB, free: 8.168 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/3.427, allocations: 66.44 kB / 1.71 GB, free: 8.102 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01701/3.444, allocations: 7.65 MB / 1.717 GB, free: 136 kB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3729/3.817, allocations: 0.6165 MB / 1.718 GB, free: 155.1 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005596/3.817, allocations: 381.9 kB / 1.718 GB, free: 155 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/3.818, allocations: 1.272 MB / 1.72 GB, free: 153.6 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/3.818, allocations: 49.41 kB / 1.72 GB, free: 153.6 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=77): time 3.186e-06/3.818, allocations: 0 / 1.72 GB, free: 153.6 MB / 0.7138 GB Notification: Performance of matching and sorting (n=77): time 0.00431/3.823, allocations: 0.9987 MB / 1.721 GB, free: 153.5 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/3.823, allocations: 190.4 kB / 1.721 GB, free: 153.3 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/3.824, allocations: 1.032 MB / 1.722 GB, free: 153.2 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001569/3.825, allocations: 33.2 kB / 1.722 GB, free: 153.2 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005005/3.825, allocations: 0.5698 MB / 1.722 GB, free: 153 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.000237/3.825, allocations: 250.6 kB / 1.723 GB, free: 152.9 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.328e-05/3.825, allocations: 0 / 1.723 GB, free: 152.9 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.306e-05/3.825, allocations: 339.8 kB / 1.723 GB, free: 152.6 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/3.826, allocations: 360.5 kB / 1.723 GB, free: 152.6 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000708/3.827, allocations: 0.6415 MB / 1.724 GB, free: 152.2 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/3.828, allocations: 462 kB / 1.724 GB, free: 152.2 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/3.828, allocations: 3.906 kB / 1.724 GB, free: 152.2 MB / 0.7138 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004283/3.832, allocations: 1.274 MB / 1.726 GB, free: 152.1 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004843/3.833, allocations: 2.471 MB / 1.728 GB, free: 149.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/3.833, allocations: 9.406 kB / 1.728 GB, free: 149.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008758/3.834, allocations: 361 kB / 1.728 GB, free: 149.5 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/3.835, allocations: 282.4 kB / 1.729 GB, free: 149.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/3.837, allocations: 0.9594 MB / 1.73 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/3.839, allocations: 263.4 kB / 1.73 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/3.839, allocations: 61.86 kB / 1.73 GB, free: 149 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/3.839, allocations: 3.125 kB / 1.73 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004062/3.844, allocations: 1.102 MB / 1.731 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/3.844, allocations: 7.812 kB / 1.731 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007237/3.844, allocations: 371.8 kB / 1.731 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/3.846, allocations: 277.7 kB / 1.732 GB, free: 149 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/3.847, allocations: 0.962 MB / 1.732 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/3.849, allocations: 226 kB / 1.733 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/3.85, allocations: 61.12 kB / 1.733 GB, free: 148.4 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.heaPum.com.isOn,heaPum.com.isOn,$PRE.heaPum.temPro.hysHig.y,heaPum.temPro.hysHig.y,$PRE.heaPum.temPro.hysLow.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,$PRE.heaPum.temPro.hysdTConEva.y,heaPum.temPro.hysdTConEva.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003425/3.85, allocations: 135 kB / 1.733 GB, free: 148.3 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/3.85, allocations: 139.9 kB / 1.733 GB, free: 148.2 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004249/3.855, allocations: 1.094 MB / 1.734 GB, free: 148.2 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/3.855, allocations: 14.17 kB / 1.734 GB, free: 148.2 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/3.855, allocations: 0.5625 kB / 1.734 GB, free: 148.2 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003436/3.858, allocations: 0.963 MB / 1.735 GB, free: 148 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008562/3.867, allocations: 2.809 MB / 1.738 GB, free: 147.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/3.867, allocations: 7.656 kB / 1.738 GB, free: 147.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/3.868, allocations: 176.5 kB / 1.738 GB, free: 147.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008668/3.869, allocations: 360.2 kB / 1.738 GB, free: 147.5 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/3.869, allocations: 30.16 kB / 1.738 GB, free: 147.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001513/3.87, allocations: 0.9495 MB / 1.739 GB, free: 147 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/3.871, allocations: 6.812 kB / 1.739 GB, free: 147 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01218/3.883, allocations: 2.384 MB / 1.742 GB, free: 146.4 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/3.884, allocations: 403.1 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005766/3.885, allocations: 12.81 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/3.887, allocations: 162.7 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/3.887, allocations: 71.92 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/3.887, allocations: 47.42 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001554/3.889, allocations: 0.7737 MB / 1.743 GB, free: 146.2 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.004252/3.893, allocations: 1.036 MB / 1.744 GB, free: 146.1 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 5 (heaPum.com.isOn,heaPum.temPro.hysHig.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,heaPum.temPro.hysdTConEva.y) * Number of discrete states: 4 (heaPum.temPro.hysLow.y,heaPum.temPro.hysHig.y,heaPum.temPro.hysdTConEva.y,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002318/3.895, allocations: 0.9043 MB / 1.745 GB, free: 146 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002976/3.898, allocations: 1.439 MB / 1.746 GB, free: 145.9 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/3.898, allocations: 5.125 kB / 1.746 GB, free: 145.9 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0008619/3.899, allocations: 480.7 kB / 1.747 GB, free: 145.9 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003223/3.903, allocations: 0.5837 MB / 1.747 GB, free: 145.9 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005991/3.909, allocations: 2.166 MB / 1.749 GB, free: 145.3 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001555/3.91, allocations: 1.457 MB / 1.751 GB, free: 144.6 MB / 0.7138 GB Notification: Performance of SimCode: time 1.002e-06/3.91, allocations: 0 / 1.751 GB, free: 144.6 MB / 0.7138 GB Notification: Performance of Templates: time 0.0701/3.98, allocations: 42.57 MB / 1.792 GB, free: 143.5 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe 2>&1)