Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic") translateModel(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_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/Complex 4.0.0+maint.om/package.mo): time 0.002451/0.00245, allocations: 184.6 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6009/0.6009, allocations: 133.5 MB / 141.4 MB, free: 15.71 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.126/1.126, allocations: 221.3 MB / 395 MB, free: 10.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000893/0.0008927, allocations: 111.3 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.901e-06, allocations: 2.781 kB / 0.5528 GB, free: 89.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 82.3 MB / 0.6332 GB, free: 14.13 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7239/0.8287, allocations: 397.6 MB / 1.021 GB, free: 237 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.8289, allocations: 83.95 kB / 1.022 GB, free: 237 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.74/3.569, allocations: 1.064 GB / 2.085 GB, free: 61.76 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002411/3.569, allocations: 83.05 kB / 2.085 GB, free: 61.76 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.005476/3.574, allocations: 3.243 MB / 2.089 GB, free: 60.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/3.574, allocations: 11.06 kB / 2.089 GB, free: 60.41 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008649/3.583, allocations: 1.3 MB / 2.09 GB, free: 60.23 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006092/3.589, allocations: 3.348 MB / 2.093 GB, free: 59.68 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/3.589, allocations: 164.6 kB / 2.093 GB, free: 59.61 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002931/3.59, allocations: 140.6 kB / 2.093 GB, free: 59.61 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003381/3.593, allocations: 2.006 MB / 2.095 GB, free: 59.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003561/3.597, allocations: 2.514 MB / 2.098 GB, free: 59.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-05/3.597, allocations: 10.55 kB / 2.098 GB, free: 59.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/3.597, allocations: 6.906 kB / 2.098 GB, free: 59.09 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.742e-05/3.597, allocations: 92.08 kB / 2.098 GB, free: 59.08 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01759/3.615, allocations: 13.96 MB / 2.112 GB, free: 52.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/3.616, allocations: 1.081 MB / 2.113 GB, free: 52.38 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000739/3.617, allocations: 0.5777 MB / 2.113 GB, free: 52.37 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00134/3.618, allocations: 1.778 MB / 2.115 GB, free: 50.4 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/3.619, allocations: 0.9052 MB / 2.116 GB, free: 50.1 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 3.226e-06/3.619, allocations: 0 / 2.116 GB, free: 50.1 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.01552/3.635, allocations: 10.02 MB / 2.126 GB, free: 44.07 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/3.635, allocations: 0.9332 MB / 2.127 GB, free: 42.95 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002332/3.637, allocations: 1.847 MB / 2.128 GB, free: 42.72 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002187/3.638, allocations: 42.69 kB / 2.128 GB, free: 42.69 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006834/3.638, allocations: 0.9779 MB / 2.129 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000345/3.639, allocations: 417.9 kB / 2.13 GB, free: 41.86 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/3.639, allocations: 0 / 2.13 GB, free: 41.86 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.563e-05/3.639, allocations: 365.6 kB / 2.13 GB, free: 41.56 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008992/3.64, allocations: 0.584 MB / 2.131 GB, free: 41.55 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/3.641, allocations: 1.19 MB / 2.132 GB, free: 40.87 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/3.643, allocations: 0.8085 MB / 2.133 GB, free: 40.85 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/3.643, allocations: 3.719 kB / 2.133 GB, free: 40.85 MB / 0.7136 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004393/3.647, allocations: 2.177 MB / 2.135 GB, free: 40.65 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007373/3.648, allocations: 5.098 MB / 2.14 GB, free: 35.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/3.648, allocations: 12.62 kB / 2.14 GB, free: 35.21 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/3.65, allocations: 0.7227 MB / 2.14 GB, free: 35.18 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/3.652, allocations: 470.3 kB / 2.141 GB, free: 35.18 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003468/3.656, allocations: 2.361 MB / 2.143 GB, free: 34.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004752/3.66, allocations: 386.2 kB / 2.144 GB, free: 34.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002072/3.661, allocations: 109.1 kB / 2.144 GB, free: 34.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/3.661, allocations: 3.625 kB / 2.144 GB, free: 34.09 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003871/3.665, allocations: 1.891 MB / 2.146 GB, free: 34.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/3.665, allocations: 12.34 kB / 2.146 GB, free: 34.04 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/3.666, allocations: 0.7169 MB / 2.146 GB, free: 34.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/3.669, allocations: 453.9 kB / 2.147 GB, free: 34.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/3.672, allocations: 2.364 MB / 2.149 GB, free: 32.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004199/3.676, allocations: 311 kB / 2.149 GB, free: 32.94 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002004/3.676, allocations: 110.4 kB / 2.149 GB, free: 32.94 MB / 0.7136 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 (152): * Single equations (assignments): 149 * 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 22,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.0004991/3.677, allocations: 164.8 kB / 2.15 GB, free: 32.82 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004432/3.677, allocations: 242.7 kB / 2.15 GB, free: 32.7 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004684/3.682, allocations: 1.7 MB / 2.151 GB, free: 32.59 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/3.682, allocations: 15.16 kB / 2.151 GB, free: 32.59 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/3.682, allocations: 9 kB / 2.151 GB, free: 32.59 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003535/3.686, allocations: 1.515 MB / 2.153 GB, free: 32.3 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/3.696, allocations: 6.021 MB / 2.159 GB, free: 30.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/3.696, allocations: 6.875 kB / 2.159 GB, free: 30.41 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/3.697, allocations: 289.9 kB / 2.159 GB, free: 30.41 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/3.699, allocations: 0.5967 MB / 2.16 GB, free: 30.39 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/3.699, allocations: 41.94 kB / 2.16 GB, free: 30.39 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/3.702, allocations: 2.107 MB / 2.162 GB, free: 29.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/3.702, allocations: 10.53 kB / 2.162 GB, free: 29.32 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004781/3.706, allocations: 3.162 MB / 2.165 GB, free: 28.15 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/3.708, allocations: 0.609 MB / 2.165 GB, free: 27.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004204/3.708, allocations: 17.73 kB / 2.165 GB, free: 27.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003089/3.711, allocations: 261.8 kB / 2.166 GB, free: 27.92 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/3.711, allocations: 102.2 kB / 2.166 GB, free: 27.92 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/3.711, allocations: 79.06 kB / 2.166 GB, free: 27.92 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.001689/3.713, allocations: 1.373 MB / 2.167 GB, free: 27.77 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004444/3.718, allocations: 1.571 MB / 2.169 GB, free: 27.65 MB / 0.7136 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 (80): * Single equations (assignments): 74 * 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 17,5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.002209/3.72, allocations: 1.493 MB / 2.17 GB, free: 27.26 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.005372/3.725, allocations: 2.765 MB / 2.173 GB, free: 27.13 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/3.725, allocations: 7.469 kB / 2.173 GB, free: 27.13 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001926/3.727, allocations: 0.85 MB / 2.174 GB, free: 27.12 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004073/3.731, allocations: 1.034 MB / 2.175 GB, free: 27.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009115/3.74, allocations: 3.964 MB / 2.179 GB, free: 26.02 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/3.742, allocations: 2.042 MB / 2.181 GB, free: 25.29 MB / 0.7136 GB Notification: Performance of SimCode: time 7.82e-07/3.742, allocations: 0 / 2.181 GB, free: 25.29 MB / 0.7136 GB Notification: Performance of Templates: time 0.09317/3.835, allocations: 74.77 MB / 2.254 GB, free: 20.82 MB / 0.7136 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)