Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.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_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") translateModel(BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") [: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.7532/0.7532, allocations: 141.8 MB / 149.1 MB, free: 4.559 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.001181/0.001181, allocations: 179.5 kB / 181.9 MB, free: 200 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.3 MB / 436 MB, free: 9.34 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.001143/0.001143, allocations: 94.08 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 288.8 kB / 0.5884 GB, free: 12.35 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.167e-06/9.488e-06, allocations: 4 kB / 0.6759 GB, free: 2.727 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5356/0.5356, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.802/1.338, allocations: 395.5 MB / 1.143 GB, free: 1.566 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/1.338, allocations: 90.64 kB / 1.143 GB, free: 1.523 MB / 0.6669 GB Notification: Performance of FrontEnd: time 3.894/5.231, allocations: 1.063 GB / 2.206 GB, free: 47.2 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.000519/5.232, allocations: 81.89 kB / 2.206 GB, free: 47.17 MB / 0.7294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.01083/5.243, allocations: 3.202 MB / 2.209 GB, free: 44.86 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/5.243, allocations: 10.44 kB / 2.209 GB, free: 44.86 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/5.254, allocations: 1.403 MB / 2.21 GB, free: 44.26 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/5.265, allocations: 3.312 MB / 2.213 GB, free: 41.85 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004884/5.266, allocations: 163.4 kB / 2.214 GB, free: 41.78 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/5.267, allocations: 141.5 kB / 2.214 GB, free: 41.77 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007199/5.274, allocations: 2.029 MB / 2.216 GB, free: 40.77 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008279/5.283, allocations: 2.517 MB / 2.218 GB, free: 38.59 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001024/5.283, allocations: 12.5 kB / 2.218 GB, free: 38.58 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007337/5.284, allocations: 4 kB / 2.218 GB, free: 38.58 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.926e-05/5.284, allocations: 71.98 kB / 2.218 GB, free: 38.51 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02817/5.312, allocations: 14.13 MB / 2.232 GB, free: 23.85 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002453/5.314, allocations: 1.122 MB / 2.233 GB, free: 22.69 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/5.316, allocations: 0.6078 MB / 2.234 GB, free: 22.07 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00202/5.318, allocations: 1.779 MB / 2.236 GB, free: 19.91 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001786/5.32, allocations: 0.9274 MB / 2.236 GB, free: 18.88 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=118): time 6.082e-06/5.32, allocations: 0 / 2.236 GB, free: 18.88 MB / 0.7294 GB Notification: Performance of matching and sorting (n=122): time 0.02472/5.344, allocations: 10.06 MB / 2.246 GB, free: 8.633 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/5.345, allocations: 0.9358 MB / 2.247 GB, free: 7.477 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/5.347, allocations: 1.852 MB / 2.249 GB, free: 5.605 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003969/5.348, allocations: 33.7 kB / 2.249 GB, free: 5.566 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008508/5.349, allocations: 0.9744 MB / 2.25 GB, free: 4.574 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004451/5.349, allocations: 415.2 kB / 2.25 GB, free: 4.164 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/5.349, allocations: 0 / 2.25 GB, free: 4.164 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 9.938e-05/5.349, allocations: 365.9 kB / 2.251 GB, free: 3.801 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000991/5.35, allocations: 0.6053 MB / 2.251 GB, free: 3.195 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/5.352, allocations: 1.228 MB / 2.253 GB, free: 1.703 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/5.354, allocations: 0.8185 MB / 2.253 GB, free: 0.8867 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/5.354, allocations: 4 kB / 2.253 GB, free: 0.8828 MB / 0.7294 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005719/5.36, allocations: 2.245 MB / 2.256 GB, free: 14.62 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.002088/5.362, allocations: 5.095 MB / 2.26 GB, free: 8.996 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/5.362, allocations: 12 kB / 2.26 GB, free: 8.984 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002215/5.364, allocations: 0.8936 MB / 2.261 GB, free: 8.113 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002976/5.367, allocations: 463.2 kB / 2.262 GB, free: 7.66 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/5.371, allocations: 2.381 MB / 2.264 GB, free: 5.227 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006251/5.377, allocations: 407.1 kB / 2.265 GB, free: 4.828 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005314/5.378, allocations: 107.9 kB / 2.265 GB, free: 4.723 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/5.378, allocations: 4 kB / 2.265 GB, free: 4.719 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005281/5.383, allocations: 1.962 MB / 2.267 GB, free: 2.754 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/5.383, allocations: 12 kB / 2.267 GB, free: 2.742 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002143/5.385, allocations: 0.894 MB / 2.267 GB, free: 1.871 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/5.388, allocations: 447.2 kB / 2.268 GB, free: 1.434 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004837/5.393, allocations: 2.37 MB / 2.27 GB, free: 15.01 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005774/5.399, allocations: 339.2 kB / 2.27 GB, free: 14.68 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005387/5.399, allocations: 107.9 kB / 2.271 GB, free: 14.57 MB / 0.7607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,heaPum.stage,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 24,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.001023/5.4, allocations: 159.4 kB / 2.271 GB, free: 14.41 MB / 0.7607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/5.402, allocations: 241.1 kB / 2.271 GB, free: 14.18 MB / 0.7607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007684/5.41, allocations: 1.749 MB / 2.273 GB, free: 12.43 MB / 0.7607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.745e-05/5.41, allocations: 16 kB / 2.273 GB, free: 12.41 MB / 0.7607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/5.41, allocations: 12 kB / 2.273 GB, free: 12.4 MB / 0.7607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00544/5.415, allocations: 1.551 MB / 2.274 GB, free: 10.79 MB / 0.7607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01537/5.43, allocations: 6.125 MB / 2.28 GB, free: 4.488 MB / 0.7607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/5.431, allocations: 8 kB / 2.28 GB, free: 4.48 MB / 0.7607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/5.433, allocations: 283.4 kB / 2.28 GB, free: 4.207 MB / 0.7607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001963/5.435, allocations: 0.7766 MB / 2.281 GB, free: 3.449 MB / 0.7607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/5.435, allocations: 39.88 kB / 2.281 GB, free: 3.41 MB / 0.7607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/5.438, allocations: 2.104 MB / 2.283 GB, free: 1.254 MB / 0.7607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.525e-05/5.438, allocations: 11.94 kB / 2.283 GB, free: 1.242 MB / 0.7607 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.4157/5.854, allocations: 3.27 MB / 2.287 GB, free: 138.1 MB / 0.7607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/5.856, allocations: 0.623 MB / 2.287 GB, free: 138 MB / 0.7607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007193/5.857, allocations: 13.69 kB / 2.287 GB, free: 138 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003679/5.861, allocations: 270.5 kB / 2.287 GB, free: 138 MB / 0.7607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/5.861, allocations: 110 kB / 2.288 GB, free: 138 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/5.861, allocations: 69.81 kB / 2.288 GB, free: 138 MB / 0.7607 GB Notification: Performance of sort global known variables: time 0.002284/5.864, allocations: 1.373 MB / 2.289 GB, free: 137.9 MB / 0.7607 GB Notification: Performance of remove unused functions: time 0.007036/5.871, allocations: 1.571 MB / 2.29 GB, free: 137.9 MB / 0.7607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (heaPum1.port_b1.h_outflow,heaPum1.port_b2.h_outflow) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum.stage,heaPum1.com.isOn,N.T_start,N.count) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.003324/5.874, allocations: 1.504 MB / 2.292 GB, free: 137.6 MB / 0.7607 GB Notification: Performance of simCode: created initialization part: time 0.005141/5.879, allocations: 2.629 MB / 2.295 GB, free: 137.5 MB / 0.7607 GB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/5.879, allocations: 6.594 kB / 2.295 GB, free: 137.5 MB / 0.7607 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/5.881, allocations: 0.775 MB / 2.295 GB, free: 137.5 MB / 0.7607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006185/5.887, allocations: 1.047 MB / 2.296 GB, free: 137.5 MB / 0.7607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/5.897, allocations: 3.76 MB / 2.3 GB, free: 136.5 MB / 0.7607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/5.899, allocations: 2.036 MB / 2.302 GB, free: 135.7 MB / 0.7607 GB Notification: Performance of SimCode: time 1.262e-06/5.899, allocations: 0 / 2.302 GB, free: 135.7 MB / 0.7607 GB Notification: Performance of Templates: time 0.1147/6.014, allocations: 77.49 MB / 2.378 GB, free: 132.4 MB / 0.7607 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1)