Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.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.Examples.ScrollWaterToWater_OneRoomRadiator,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator") translateModel(BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator") [: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.7868/0.7868, allocations: 141.8 MB / 149.1 MB, free: 3.348 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.001072/0.001072, allocations: 181.8 kB / 182 MB, free: 15.18 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.362/1.362, allocations: 221.3 MB / 436 MB, free: 8.316 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.0009659/0.0009658, allocations: 99.08 kB / 0.507 GB, free: 24.36 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001919/0.001919, allocations: 277.7 kB / 0.5885 GB, free: 11.39 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.845e-06, allocations: 0 / 0.6759 GB, free: 1.758 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4912/0.4912, allocations: 82.76 MB / 0.7567 GB, free: 111.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.315/4.806, allocations: 2.201 GB / 2.958 GB, free: 145 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/4.806, allocations: 100.5 kB / 2.958 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of FrontEnd: time 9.367/14.17, allocations: 2.341 GB / 5.298 GB, free: 13.91 MB / 0.7919 GB Notification: Performance of Transformations before backend: time 0.001529/14.17, allocations: 174.1 kB / 5.299 GB, free: 13.74 MB / 0.7919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.02513/14.2, allocations: 6.262 MB / 5.305 GB, free: 7.395 MB / 0.7919 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/14.2, allocations: 11.97 kB / 5.305 GB, free: 7.383 MB / 0.7919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/14.21, allocations: 1.864 MB / 5.306 GB, free: 5.508 MB / 0.7919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5749/14.79, allocations: 7.709 MB / 5.314 GB, free: 105.1 MB / 0.7919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004701/14.79, allocations: 236 kB / 5.314 GB, free: 105.1 MB / 0.7919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002264/14.79, allocations: 288.4 kB / 5.315 GB, free: 105.1 MB / 0.7919 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01545/14.81, allocations: 4.836 MB / 5.319 GB, free: 105.1 MB / 0.7919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/14.83, allocations: 5.05 MB / 5.324 GB, free: 104.4 MB / 0.7919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004007/14.83, allocations: 12.11 kB / 5.324 GB, free: 104.4 MB / 0.7919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002298/14.83, allocations: 10.91 kB / 5.324 GB, free: 104.4 MB / 0.7919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002214/14.83, allocations: 193 kB / 5.324 GB, free: 104.4 MB / 0.7919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06225/14.89, allocations: 23.94 MB / 5.348 GB, free: 95.31 MB / 0.7919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008376/14.9, allocations: 3.523 MB / 5.351 GB, free: 95.26 MB / 0.7919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003883/14.91, allocations: 1.834 MB / 5.353 GB, free: 95.23 MB / 0.7919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02365/14.93, allocations: 8.408 MB / 5.361 GB, free: 92.01 MB / 0.7919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005301/14.94, allocations: 2.045 MB / 5.363 GB, free: 91.89 MB / 0.7919 GB Notification: Performance of pre-optimization done (n=322): time 1.068e-05/14.94, allocations: 0 / 5.363 GB, free: 91.89 MB / 0.7919 GB Notification: Performance of matching and sorting (n=326): time 0.04094/14.98, allocations: 9.812 MB / 5.373 GB, free: 90.31 MB / 0.7919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/14.98, allocations: 372.7 kB / 5.373 GB, free: 89.9 MB / 0.7919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/14.99, allocations: 3.882 MB / 5.377 GB, free: 89.58 MB / 0.7919 GB Notification: Performance of collectPreVariables (initialization): time 0.001429/14.99, allocations: 44.23 kB / 5.377 GB, free: 89.55 MB / 0.7919 GB Notification: Performance of collectInitialEqns (initialization): time 0.002839/14.99, allocations: 1.748 MB / 5.379 GB, free: 88.79 MB / 0.7919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0021/14.99, allocations: 1.058 MB / 5.38 GB, free: 88.09 MB / 0.7919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/14.99, allocations: 0 / 5.38 GB, free: 88.09 MB / 0.7919 GB Notification: Performance of setup shared object (initialization): time 0.0002723/14.99, allocations: 459.9 kB / 5.38 GB, free: 87.78 MB / 0.7919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002572/15, allocations: 1.548 MB / 5.382 GB, free: 87.77 MB / 0.7919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003024/15, allocations: 2.589 MB / 5.384 GB, free: 86.62 MB / 0.7919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005723/15.01, allocations: 2.168 MB / 5.386 GB, free: 86.57 MB / 0.7919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/15.01, allocations: 6.25 kB / 5.386 GB, free: 86.57 MB / 0.7919 GB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01649/15.02, allocations: 5.32 MB / 5.392 GB, free: 86.14 MB / 0.7919 GB Notification: Performance of prepare postOptimizeDAE: time 0.002242/15.03, allocations: 11.31 MB / 5.403 GB, free: 74.18 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.556e-05/15.03, allocations: 25.73 kB / 5.403 GB, free: 74.18 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/15.03, allocations: 0.8366 MB / 5.403 GB, free: 74.13 MB / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004795/15.03, allocations: 0.8984 MB / 5.404 GB, free: 74.13 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006983/15.04, allocations: 6.215 MB / 5.41 GB, free: 69.54 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007727/15.05, allocations: 412.2 kB / 5.411 GB, free: 69.5 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/15.05, allocations: 209.7 kB / 5.411 GB, free: 69.5 MB / 0.7919 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/15.05, allocations: 2.312 kB / 5.411 GB, free: 69.5 MB / 0.7919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01604/15.06, allocations: 4.587 MB / 5.415 GB, free: 69.37 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/15.06, allocations: 25.5 kB / 5.415 GB, free: 69.37 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002978/15.07, allocations: 0.8465 MB / 5.416 GB, free: 69.31 MB / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004628/15.07, allocations: 0.8693 MB / 5.417 GB, free: 69.31 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006698/15.08, allocations: 6.238 MB / 5.423 GB, free: 64.73 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00694/15.09, allocations: 380.6 kB / 5.424 GB, free: 64.7 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/15.09, allocations: 197.4 kB / 5.424 GB, free: 64.7 MB / 0.7919 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumHeaPum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumHeaPumSou.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition1,$PRE.timTab.nextTimeEvent,$whenCondition3,$whenCondition2,timTab.nextTimeEvent,$PRE.timTab.nextTimeEventScaled,timTab.nextTimeEventScaled,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$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,$PRE.hysteresis.y,hysteresis.y,and1.y,and2.y,$PRE.tesConHea.y,tesConHea.y,$PRE.tesEvaPum.y,tesEvaPum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (437): * Single equations (assignments): 429 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 5 {2 19,1 4,1 4,5 6,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002032/15.09, allocations: 228.4 kB / 5.424 GB, free: 64.57 MB / 0.7919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002299/15.09, allocations: 0.5197 MB / 5.424 GB, free: 64.3 MB / 0.7919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/15.11, allocations: 5.855 MB / 5.43 GB, free: 64 MB / 0.7919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.97e-05/15.11, allocations: 33.09 kB / 5.43 GB, free: 64 MB / 0.7919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.575e-05/15.11, allocations: 3.844 kB / 5.43 GB, free: 64 MB / 0.7919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0167/15.13, allocations: 4.516 MB / 5.435 GB, free: 63.67 MB / 0.7919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03107/15.16, allocations: 9.924 MB / 5.444 GB, free: 62.98 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/15.16, allocations: 4.984 kB / 5.444 GB, free: 62.98 MB / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003838/15.17, allocations: 0.6439 MB / 5.445 GB, free: 62.98 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/15.17, allocations: 0.8869 MB / 5.446 GB, free: 62.89 MB / 0.7919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006109/15.17, allocations: 72.78 kB / 5.446 GB, free: 62.89 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00973/15.18, allocations: 12.23 MB / 5.458 GB, free: 52.87 MB / 0.7919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/15.18, allocations: 4.719 kB / 5.458 GB, free: 52.87 MB / 0.7919 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01924/15.2, allocations: 7.201 MB / 5.465 GB, free: 51.88 MB / 0.7919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004461/15.2, allocations: 1.17 MB / 5.466 GB, free: 51.5 MB / 0.7919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002314/15.21, allocations: 24.19 kB / 5.466 GB, free: 51.5 MB / 0.7919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006395/15.21, allocations: 367.5 kB / 5.466 GB, free: 51.49 MB / 0.7919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007645/15.21, allocations: 248.1 kB / 5.467 GB, free: 51.48 MB / 0.7919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008457/15.21, allocations: 166.5 kB / 5.467 GB, free: 51.48 MB / 0.7919 GB Notification: Performance of sort global known variables: time 0.007531/15.22, allocations: 2.915 MB / 5.47 GB, free: 51.3 MB / 0.7919 GB Notification: Performance of remove unused functions: time 0.0191/15.24, allocations: 2.949 MB / 5.473 GB, free: 51.25 MB / 0.7919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (vol.hOut_internal,vol.dynBal.medium.Xi[1],vol.dynBal.m,rad.vol[1].dynBal.U,rad.vol[2].dynBal.U,rad.vol[3].dynBal.U,rad.vol[4].dynBal.U,rad.vol[5].dynBal.U,temSup.T,temRet.T,heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,timTab.nextTimeEvent,timTab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext,heaPum.com.isOn,heaPum.temPro.hysHig.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,heaPum.temPro.hysdTConEva.y,hysteresis.y,and1.y,and2.y,tesConHea.y,tesEvaPum.y) * Number of discrete states: 11 (timTab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,heaPum.temPro.hysLow.y,hysteresis.y,heaPum.temPro.hysdTConEva.y,heaPum.temPro.hysHig.y,tesConHea.y,tesEvaPum.y,heaPum.com.isOn,timTab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (322): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 4 {2 19,1 4,1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01049/15.25, allocations: 3.861 MB / 5.476 GB, free: 50.31 MB / 0.7919 GB Notification: Performance of simCode: created initialization part: time 0.01784/15.27, allocations: 6.881 MB / 5.483 GB, free: 49.79 MB / 0.7919 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/15.27, allocations: 6.281 kB / 5.483 GB, free: 49.79 MB / 0.7919 GB Notification: Performance of simCode: created simulation system equations: time 0.005909/15.27, allocations: 2.756 MB / 5.486 GB, free: 49.08 MB / 0.7919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01565/15.29, allocations: 2.325 MB / 5.488 GB, free: 49.03 MB / 0.7919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03988/15.33, allocations: 9.608 MB / 5.497 GB, free: 47.07 MB / 0.7919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01208/15.34, allocations: 4.165 MB / 5.501 GB, free: 46.25 MB / 0.7919 GB Notification: Performance of SimCode: time 1.072e-06/15.34, allocations: 1.281 kB / 5.501 GB, free: 46.25 MB / 0.7919 GB Notification: Performance of Templates: time 0.2666/15.61, allocations: 149.8 MB / 5.648 GB, free: 2.84 MB / 0.7919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe 2>&1)