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: "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) [: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.003471/0.003471, allocations: 179.5 kB / 7.458 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.6936/0.6936, allocations: 133.5 MB / 141.4 MB, free: 15.66 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.426/1.426, allocations: 221.3 MB / 395 MB, free: 10.21 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.0009209/0.0009208, allocations: 105.1 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4251/0.4261, allocations: 88.43 MB / 0.5529 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.6005, allocations: 82.3 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.183/1.784, allocations: 397.6 MB / 1.022 GB, free: 236.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003511/1.784, allocations: 96.28 kB / 1.022 GB, free: 236.3 MB / 0.6823 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 3.576/5.36, allocations: 1.067 GB / 2.089 GB, free: 60.86 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/5.36, allocations: 9.5 kB / 2.089 GB, free: 60.86 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009704/5.37, allocations: 1.308 MB / 2.09 GB, free: 60.68 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007212/5.377, allocations: 3.35 MB / 2.093 GB, free: 60.13 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/5.377, allocations: 163.8 kB / 2.093 GB, free: 60.06 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/5.378, allocations: 140.6 kB / 2.094 GB, free: 60.06 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003768/5.382, allocations: 2.002 MB / 2.095 GB, free: 60.04 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003964/5.386, allocations: 2.517 MB / 2.098 GB, free: 59.54 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.576e-05/5.386, allocations: 3 kB / 2.098 GB, free: 59.54 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002985/5.386, allocations: 9.062 kB / 2.098 GB, free: 59.54 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/5.386, allocations: 97.16 kB / 2.098 GB, free: 59.54 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0238/5.41, allocations: 13.96 MB / 2.112 GB, free: 53.05 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/5.412, allocations: 1.074 MB / 2.113 GB, free: 52.83 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008033/5.413, allocations: 0.5816 MB / 2.113 GB, free: 52.82 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001558/5.414, allocations: 1.778 MB / 2.115 GB, free: 50.85 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001329/5.415, allocations: 0.9016 MB / 2.116 GB, free: 50.55 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 6.282e-06/5.415, allocations: 2.375 kB / 2.116 GB, free: 50.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.01962/5.435, allocations: 10.02 MB / 2.126 GB, free: 44.53 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002133/5.435, allocations: 0.9376 MB / 2.127 GB, free: 43.4 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003081/5.438, allocations: 1.846 MB / 2.128 GB, free: 43.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0003923/5.439, allocations: 36.92 kB / 2.128 GB, free: 43.14 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.00104/5.44, allocations: 0.9833 MB / 2.129 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006283/5.441, allocations: 404.8 kB / 2.13 GB, free: 42.32 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/5.441, allocations: 0 / 2.13 GB, free: 42.32 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001378/5.441, allocations: 377.4 kB / 2.13 GB, free: 42.01 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/5.442, allocations: 0.5854 MB / 2.131 GB, free: 42.01 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/5.443, allocations: 1.187 MB / 2.132 GB, free: 41.32 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002412/5.446, allocations: 0.808 MB / 2.133 GB, free: 41.3 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/5.446, allocations: 3.719 kB / 2.133 GB, free: 41.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005471/5.451, allocations: 2.182 MB / 2.135 GB, free: 41.11 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001357/5.453, allocations: 5.09 MB / 2.14 GB, free: 35.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/5.453, allocations: 12.5 kB / 2.14 GB, free: 35.66 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/5.454, allocations: 0.7247 MB / 2.141 GB, free: 35.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/5.457, allocations: 468.8 kB / 2.141 GB, free: 35.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/5.461, allocations: 2.359 MB / 2.143 GB, free: 34.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005331/5.466, allocations: 385.7 kB / 2.144 GB, free: 34.55 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/5.467, allocations: 113.1 kB / 2.144 GB, free: 34.55 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/5.467, allocations: 3.25 kB / 2.144 GB, free: 34.55 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004568/5.471, allocations: 1.891 MB / 2.146 GB, free: 34.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/5.471, allocations: 14.03 kB / 2.146 GB, free: 34.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/5.473, allocations: 0.7167 MB / 2.146 GB, free: 34.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/5.475, allocations: 453.3 kB / 2.147 GB, free: 34.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/5.479, allocations: 2.363 MB / 2.149 GB, free: 33.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004607/5.484, allocations: 317.9 kB / 2.149 GB, free: 33.39 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002857/5.484, allocations: 107.1 kB / 2.149 GB, free: 33.39 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.0006206/5.485, allocations: 164.7 kB / 2.15 GB, free: 33.27 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006676/5.485, allocations: 242.4 kB / 2.15 GB, free: 33.15 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005461/5.491, allocations: 1.712 MB / 2.152 GB, free: 33.04 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-05/5.491, allocations: 14.19 kB / 2.152 GB, free: 33.04 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/5.491, allocations: 8.719 kB / 2.152 GB, free: 33.04 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003906/5.495, allocations: 1.504 MB / 2.153 GB, free: 32.75 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/5.508, allocations: 6.017 MB / 2.159 GB, free: 30.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/5.508, allocations: 10.62 kB / 2.159 GB, free: 30.86 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/5.51, allocations: 285.4 kB / 2.159 GB, free: 30.86 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/5.511, allocations: 0.6095 MB / 2.16 GB, free: 30.84 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/5.511, allocations: 34.28 kB / 2.16 GB, free: 30.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003346/5.515, allocations: 2.11 MB / 2.162 GB, free: 29.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/5.515, allocations: 11.31 kB / 2.162 GB, free: 29.77 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005935/5.521, allocations: 3.165 MB / 2.165 GB, free: 28.6 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007165/5.528, allocations: 4.408 MB / 2.169 GB, free: 27.04 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/5.53, allocations: 0.6044 MB / 2.17 GB, free: 26.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005715/5.53, allocations: 18.28 kB / 2.17 GB, free: 26.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00349/5.534, allocations: 258.6 kB / 2.17 GB, free: 26.82 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/5.534, allocations: 102.9 kB / 2.17 GB, free: 26.82 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/5.534, allocations: 78.34 kB / 2.17 GB, free: 26.82 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.002332/5.537, allocations: 1.375 MB / 2.172 GB, free: 26.67 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01374/5.55, allocations: 2.107 MB / 2.174 GB, free: 26.55 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.003688/5.554, allocations: 1.478 MB / 2.175 GB, free: 26.16 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.007381/5.561, allocations: 2.757 MB / 2.178 GB, free: 26.03 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.84e-05/5.562, allocations: 2.688 kB / 2.178 GB, free: 26.03 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.002305/5.564, allocations: 0.8563 MB / 2.179 GB, free: 26.02 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006785/5.571, allocations: 1.038 MB / 2.18 GB, free: 26 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/5.586, allocations: 3.972 MB / 2.184 GB, free: 24.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002584/5.589, allocations: 2.043 MB / 2.186 GB, free: 24.19 MB / 0.7136 GB Notification: Performance of SimCode: time 9.62e-07/5.589, allocations: 0 / 2.186 GB, free: 24.19 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)