Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7061/0.7061, allocations: 141.8 MB / 149.1 MB, free: 4.051 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.0009874/0.0009875, allocations: 180.5 kB / 181.9 MB, free: 15.8 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.264/1.264, allocations: 221.3 MB / 436 MB, free: 8.926 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.0009704/0.0009704, allocations: 99.39 kB / 0.507 GB, free: 24.22 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001784/0.001784, allocations: 285.9 kB / 0.5884 GB, free: 11.96 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1826/0.1844, allocations: 89.65 MB / 0.676 GB, free: 2.227 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.5757, allocations: 82.77 MB / 0.7568 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6363/1.212, allocations: 395 MB / 1.143 GB, free: 3.016 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/1.212, allocations: 90.67 kB / 1.143 GB, free: 2.973 MB / 0.6669 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.45/4.663, allocations: 1.067 GB / 2.209 GB, free: 44.55 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/4.663, allocations: 7.812 kB / 2.209 GB, free: 44.55 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009351/4.672, allocations: 1.309 MB / 2.21 GB, free: 43.99 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007111/4.679, allocations: 3.307 MB / 2.214 GB, free: 41.59 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/4.679, allocations: 181.4 kB / 2.214 GB, free: 41.5 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004014/4.68, allocations: 137.1 kB / 2.214 GB, free: 41.5 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004073/4.684, allocations: 2.003 MB / 2.216 GB, free: 40.51 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003834/4.688, allocations: 2.514 MB / 2.218 GB, free: 38.05 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.037e-05/4.688, allocations: 7.938 kB / 2.218 GB, free: 38.05 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002329/4.688, allocations: 4 kB / 2.218 GB, free: 38.04 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-05/4.688, allocations: 103.6 kB / 2.219 GB, free: 37.94 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01844/4.707, allocations: 13.97 MB / 2.232 GB, free: 23.45 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/4.708, allocations: 1.088 MB / 2.233 GB, free: 22.32 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007524/4.709, allocations: 0.5784 MB / 2.234 GB, free: 21.74 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/4.71, allocations: 1.773 MB / 2.236 GB, free: 19.58 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/4.711, allocations: 0.9017 MB / 2.236 GB, free: 18.58 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=118): time 3.096e-06/4.711, allocations: 0 / 2.236 GB, free: 18.58 MB / 0.7294 GB Notification: Performance of matching and sorting (n=122): time 0.01889/4.73, allocations: 10.02 MB / 2.246 GB, free: 8.371 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/4.731, allocations: 0.9358 MB / 2.247 GB, free: 7.215 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002403/4.733, allocations: 1.828 MB / 2.249 GB, free: 5.367 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002159/4.733, allocations: 41.69 kB / 2.249 GB, free: 5.32 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006992/4.734, allocations: 0.9783 MB / 2.25 GB, free: 4.32 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/4.734, allocations: 414 kB / 2.25 GB, free: 3.91 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/4.734, allocations: 0 / 2.25 GB, free: 3.91 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 7.991e-05/4.734, allocations: 369.8 kB / 2.251 GB, free: 3.543 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009128/4.735, allocations: 0.578 MB / 2.251 GB, free: 2.965 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/4.737, allocations: 1.2 MB / 2.252 GB, free: 1.496 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002115/4.739, allocations: 0.801 MB / 2.253 GB, free: 0.6953 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/4.739, allocations: 4 kB / 2.253 GB, free: 0.6914 MB / 0.7294 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004678/4.743, allocations: 2.188 MB / 2.255 GB, free: 14.49 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.001992/4.745, allocations: 5.091 MB / 2.26 GB, free: 8.871 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/4.745, allocations: 12 kB / 2.26 GB, free: 8.859 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/4.747, allocations: 0.7153 MB / 2.261 GB, free: 8.148 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/4.75, allocations: 475.2 kB / 2.261 GB, free: 7.684 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004067/4.754, allocations: 2.359 MB / 2.264 GB, free: 5.273 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00467/4.759, allocations: 383.3 kB / 2.264 GB, free: 4.898 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/4.759, allocations: 111.9 kB / 2.264 GB, free: 4.789 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 6.222e-06/4.759, allocations: 0 / 2.264 GB, free: 4.789 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004398/4.763, allocations: 1.905 MB / 2.266 GB, free: 2.879 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/4.763, allocations: 16.03 kB / 2.266 GB, free: 2.863 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/4.765, allocations: 0.7085 MB / 2.267 GB, free: 2.156 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/4.768, allocations: 458.2 kB / 2.267 GB, free: 1.711 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004142/4.772, allocations: 2.364 MB / 2.27 GB, free: 15.3 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004445/4.776, allocations: 325.1 kB / 2.27 GB, free: 14.98 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/4.777, allocations: 107.9 kB / 2.27 GB, free: 14.88 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 (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.0005788/4.777, allocations: 156.5 kB / 2.27 GB, free: 14.71 MB / 0.7607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007526/4.778, allocations: 241.1 kB / 2.27 GB, free: 14.48 MB / 0.7607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00549/4.783, allocations: 1.707 MB / 2.272 GB, free: 12.76 MB / 0.7607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/4.783, allocations: 16 kB / 2.272 GB, free: 12.75 MB / 0.7607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/4.783, allocations: 4 kB / 2.272 GB, free: 12.74 MB / 0.7607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004239/4.788, allocations: 1.512 MB / 2.273 GB, free: 11.17 MB / 0.7607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/4.802, allocations: 6.003 MB / 2.279 GB, free: 4.992 MB / 0.7607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/4.802, allocations: 4.938 kB / 2.279 GB, free: 4.988 MB / 0.7607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/4.804, allocations: 288.1 kB / 2.28 GB, free: 4.707 MB / 0.7607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/4.805, allocations: 0.6086 MB / 2.28 GB, free: 4.105 MB / 0.7607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/4.806, allocations: 35.84 kB / 2.28 GB, free: 4.07 MB / 0.7607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004123/4.81, allocations: 2.119 MB / 2.282 GB, free: 1.906 MB / 0.7607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.918e-06/4.81, allocations: 8 kB / 2.282 GB, free: 1.898 MB / 0.7607 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3134/5.123, allocations: 3.158 MB / 2.285 GB, free: 136.8 MB / 0.7607 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008473/5.132, allocations: 4.399 MB / 2.29 GB, free: 135.4 MB / 0.7607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/5.134, allocations: 0.6056 MB / 2.29 GB, free: 135.3 MB / 0.7607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/5.135, allocations: 19.16 kB / 2.29 GB, free: 135.3 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/5.138, allocations: 259.8 kB / 2.291 GB, free: 135.3 MB / 0.7607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/5.138, allocations: 106.6 kB / 2.291 GB, free: 135.3 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/5.138, allocations: 73.3 kB / 2.291 GB, free: 135.3 MB / 0.7607 GB Notification: Performance of sort global known variables: time 0.001957/5.14, allocations: 1.371 MB / 2.292 GB, free: 135.2 MB / 0.7607 GB Notification: Performance of remove unused functions: time 0.007337/5.148, allocations: 2.101 MB / 2.294 GB, free: 135.2 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 (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.002686/5.15, allocations: 1.491 MB / 2.296 GB, free: 134.9 MB / 0.7607 GB Notification: Performance of simCode: created initialization part: time 0.005943/5.156, allocations: 2.751 MB / 2.298 GB, free: 134.8 MB / 0.7607 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/5.156, allocations: 6.031 kB / 2.298 GB, free: 134.8 MB / 0.7607 GB Notification: Performance of simCode: created simulation system equations: time 0.002135/5.159, allocations: 0.8609 MB / 2.299 GB, free: 134.8 MB / 0.7607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006031/5.165, allocations: 1.052 MB / 2.3 GB, free: 134.8 MB / 0.7607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/5.177, allocations: 3.945 MB / 2.304 GB, free: 133.8 MB / 0.7607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002717/5.18, allocations: 2.037 MB / 2.306 GB, free: 133 MB / 0.7607 GB Notification: Performance of SimCode: time 1.062e-06/5.18, allocations: 1.031 kB / 2.306 GB, free: 133 MB / 0.7607 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)