Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IDEAS_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.003904/0.003904, allocations: 183.7 kB / 7.456 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7533/0.7533, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.578/1.578, allocations: 221.3 MB / 395 MB, free: 10.18 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.00094/0.00094, allocations: 98.45 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4431/0.4441, allocations: 88.43 MB / 0.5529 GB, free: 89.19 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.6154, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.195/1.811, allocations: 397.6 MB / 1.022 GB, free: 200.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/1.811, allocations: 90.02 kB / 1.022 GB, free: 200.8 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 4.205/6.016, allocations: 1.067 GB / 2.089 GB, free: 58.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/6.016, allocations: 15.31 kB / 2.089 GB, free: 58.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/6.028, allocations: 1.304 MB / 2.09 GB, free: 58.22 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/6.039, allocations: 3.342 MB / 2.093 GB, free: 57.67 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004573/6.039, allocations: 167 kB / 2.093 GB, free: 57.6 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/6.041, allocations: 140 kB / 2.094 GB, free: 57.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006189/6.047, allocations: 2.005 MB / 2.095 GB, free: 57.58 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007699/6.055, allocations: 2.515 MB / 2.098 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/6.055, allocations: 4.312 kB / 2.098 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007009/6.055, allocations: 10.34 kB / 2.098 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/6.056, allocations: 95.61 kB / 2.098 GB, free: 57.07 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03047/6.086, allocations: 13.95 MB / 2.112 GB, free: 50.59 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/6.088, allocations: 1.079 MB / 2.113 GB, free: 50.36 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/6.09, allocations: 0.5807 MB / 2.113 GB, free: 50.36 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001712/6.091, allocations: 1.78 MB / 2.115 GB, free: 48.39 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001635/6.093, allocations: 0.9012 MB / 2.116 GB, free: 48.09 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 7.174e-06/6.093, allocations: 2.281 kB / 2.116 GB, free: 48.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.02438/6.117, allocations: 10.03 MB / 2.126 GB, free: 42.06 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003512/6.118, allocations: 0.9368 MB / 2.127 GB, free: 40.93 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003635/6.121, allocations: 1.847 MB / 2.128 GB, free: 40.71 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0004501/6.122, allocations: 32.17 kB / 2.128 GB, free: 40.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001048/6.123, allocations: 0.9858 MB / 2.129 GB, free: 40.11 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007309/6.124, allocations: 407 kB / 2.13 GB, free: 39.85 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/6.124, allocations: 4.719 kB / 2.13 GB, free: 39.85 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001458/6.124, allocations: 367.5 kB / 2.13 GB, free: 39.55 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/6.125, allocations: 0.5829 MB / 2.131 GB, free: 39.54 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/6.127, allocations: 1.193 MB / 2.132 GB, free: 38.86 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/6.129, allocations: 0.8028 MB / 2.133 GB, free: 38.84 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/6.129, allocations: 5.719 kB / 2.133 GB, free: 38.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006052/6.135, allocations: 2.183 MB / 2.135 GB, free: 38.64 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001803/6.137, allocations: 5.097 MB / 2.14 GB, free: 33.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/6.137, allocations: 15.58 kB / 2.14 GB, free: 33.2 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001749/6.139, allocations: 0.712 MB / 2.141 GB, free: 33.17 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/6.142, allocations: 472.2 kB / 2.141 GB, free: 33.17 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/6.146, allocations: 2.358 MB / 2.143 GB, free: 32.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/6.152, allocations: 391 kB / 2.144 GB, free: 32.08 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003857/6.152, allocations: 110.6 kB / 2.144 GB, free: 32.08 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/6.152, allocations: 5.875 kB / 2.144 GB, free: 32.08 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004619/6.157, allocations: 1.885 MB / 2.146 GB, free: 32.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/6.157, allocations: 15.59 kB / 2.146 GB, free: 32.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/6.158, allocations: 0.7262 MB / 2.146 GB, free: 32.01 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00253/6.161, allocations: 446.6 kB / 2.147 GB, free: 32.01 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003863/6.165, allocations: 2.362 MB / 2.149 GB, free: 30.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005001/6.17, allocations: 311.6 kB / 2.149 GB, free: 30.93 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/6.17, allocations: 106.1 kB / 2.149 GB, free: 30.93 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.0007188/6.171, allocations: 169 kB / 2.15 GB, free: 30.81 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006493/6.171, allocations: 245.4 kB / 2.15 GB, free: 30.69 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005201/6.177, allocations: 1.706 MB / 2.152 GB, free: 30.58 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/6.177, allocations: 14.97 kB / 2.152 GB, free: 30.58 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/6.177, allocations: 10.19 kB / 2.152 GB, free: 30.58 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003907/6.181, allocations: 1.513 MB / 2.153 GB, free: 30.29 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/6.194, allocations: 6.018 MB / 2.159 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/6.194, allocations: 7.312 kB / 2.159 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001838/6.196, allocations: 285.6 kB / 2.159 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/6.197, allocations: 0.6114 MB / 2.16 GB, free: 28.37 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/6.197, allocations: 32.19 kB / 2.16 GB, free: 28.37 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/6.201, allocations: 2.112 MB / 2.162 GB, free: 27.31 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/6.201, allocations: 10.03 kB / 2.162 GB, free: 27.31 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005916/6.207, allocations: 3.157 MB / 2.165 GB, free: 26.14 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007293/6.214, allocations: 4.414 MB / 2.169 GB, free: 24.57 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/6.216, allocations: 0.6108 MB / 2.17 GB, free: 24.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005598/6.216, allocations: 16.58 kB / 2.17 GB, free: 24.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003428/6.22, allocations: 256.6 kB / 2.17 GB, free: 24.35 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/6.22, allocations: 105.6 kB / 2.17 GB, free: 24.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/6.22, allocations: 69.25 kB / 2.17 GB, free: 24.35 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.002219/6.222, allocations: 1.378 MB / 2.172 GB, free: 24.2 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.008622/6.231, allocations: 2.101 MB / 2.174 GB, free: 24.08 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.003634/6.235, allocations: 1.484 MB / 2.175 GB, free: 23.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.006483/6.241, allocations: 2.762 MB / 2.178 GB, free: 23.56 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.347e-05/6.241, allocations: 0.7188 kB / 2.178 GB, free: 23.56 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.002286/6.244, allocations: 0.8574 MB / 2.179 GB, free: 23.55 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006107/6.25, allocations: 1.036 MB / 2.18 GB, free: 23.54 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/6.261, allocations: 3.969 MB / 2.184 GB, free: 22.46 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/6.264, allocations: 2.042 MB / 2.186 GB, free: 21.72 MB / 0.7136 GB Notification: Performance of SimCode: time 1.162e-06/6.264, allocations: 0 / 2.186 GB, free: 21.72 MB / 0.7136 GB (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)