Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.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_ScalingFactor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor",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.6868/0.6868, allocations: 141.8 MB / 149.1 MB, free: 4.473 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.001057/0.001057, allocations: 185.8 kB / 181.9 MB, free: 128 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.241/1.241, 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.0009284/0.0009283, allocations: 95.41 kB / 0.507 GB, free: 24.18 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 277.9 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1716/0.1734, allocations: 89.64 MB / 0.676 GB, free: 2.625 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.5349, allocations: 82.76 MB / 0.7568 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6335/1.168, allocations: 394.9 MB / 1.142 GB, free: 4.004 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/1.169, allocations: 94.31 kB / 1.142 GB, free: 3.961 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: 577 * Number of variables: 577 Notification: Performance of Generate backend data structure: time 3.442/4.611, allocations: 1.065 GB / 2.208 GB, free: 45.57 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/4.611, allocations: 9.719 kB / 2.208 GB, free: 45.57 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/4.621, allocations: 1.305 MB / 2.209 GB, free: 45.01 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008562/4.629, allocations: 3.305 MB / 2.212 GB, free: 42.67 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/4.63, allocations: 175.2 kB / 2.212 GB, free: 42.59 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009191/4.631, allocations: 140 kB / 2.212 GB, free: 42.58 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005824/4.636, allocations: 1.971 MB / 2.214 GB, free: 41.61 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007326/4.644, allocations: 2.469 MB / 2.217 GB, free: 39.99 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/4.644, allocations: 11.44 kB / 2.217 GB, free: 39.98 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006618/4.645, allocations: 5.938 kB / 2.217 GB, free: 39.98 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001586/4.645, allocations: 70.36 kB / 2.217 GB, free: 39.97 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02519/4.67, allocations: 13.77 MB / 2.23 GB, free: 26.57 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/4.672, allocations: 1.062 MB / 2.231 GB, free: 25.47 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009152/4.673, allocations: 0.5999 MB / 2.232 GB, free: 24.87 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001586/4.674, allocations: 1.779 MB / 2.234 GB, free: 22.71 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/4.676, allocations: 0.9046 MB / 2.235 GB, free: 21.71 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=118): time 4.709e-06/4.676, allocations: 0 / 2.235 GB, free: 21.71 MB / 0.7294 GB Notification: Performance of matching and sorting (n=118): time 0.006093/4.682, allocations: 1.689 MB / 2.236 GB, free: 20.01 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/4.682, allocations: 0.9319 MB / 2.237 GB, free: 18.85 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/4.686, allocations: 1.848 MB / 2.239 GB, free: 16.98 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002704/4.686, allocations: 33.7 kB / 2.239 GB, free: 16.95 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009731/4.687, allocations: 0.9827 MB / 2.24 GB, free: 15.94 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004187/4.687, allocations: 398.1 kB / 2.24 GB, free: 15.54 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/4.687, allocations: 0 / 2.24 GB, free: 15.54 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 9.976e-05/4.688, allocations: 365.9 kB / 2.241 GB, free: 15.18 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009906/4.689, allocations: 0.6048 MB / 2.241 GB, free: 14.58 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/4.69, allocations: 1.196 MB / 2.242 GB, free: 13.14 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/4.692, allocations: 0.8143 MB / 2.243 GB, free: 12.32 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/4.692, allocations: 0 / 2.243 GB, free: 12.32 MB / 0.7294 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004996/4.697, allocations: 2.13 MB / 2.245 GB, free: 10.18 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008684/4.698, allocations: 4.908 MB / 2.25 GB, free: 4.762 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/4.698, allocations: 13.75 kB / 2.25 GB, free: 4.75 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/4.699, allocations: 0.5303 MB / 2.251 GB, free: 4.227 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002738/4.702, allocations: 0.4953 MB / 2.251 GB, free: 3.73 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/4.704, allocations: 1.807 MB / 2.253 GB, free: 1.879 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005167/4.709, allocations: 477.9 kB / 2.253 GB, free: 1.41 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/4.71, allocations: 99.91 kB / 2.253 GB, free: 1.312 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/4.71, allocations: 4 kB / 2.253 GB, free: 1.309 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004308/4.714, allocations: 1.832 MB / 2.255 GB, free: 15.47 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/4.714, allocations: 12.16 kB / 2.255 GB, free: 15.46 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/4.715, allocations: 0.5325 MB / 2.256 GB, free: 14.93 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002941/4.718, allocations: 499.2 kB / 2.256 GB, free: 14.45 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/4.721, allocations: 1.801 MB / 2.258 GB, free: 12.6 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00481/4.725, allocations: 382.3 kB / 2.258 GB, free: 12.22 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003407/4.726, allocations: 107.9 kB / 2.258 GB, free: 12.12 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (170): * Single equations (assignments): 167 * 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 {2 17,2 17} Notification: Performance of prepare postOptimizeDAE: time 0.000675/4.727, allocations: 156.4 kB / 2.259 GB, free: 11.96 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009976/4.728, allocations: 241.1 kB / 2.259 GB, free: 11.72 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/4.735, allocations: 1.711 MB / 2.26 GB, free: 9.996 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/4.735, allocations: 19.98 kB / 2.261 GB, free: 9.977 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/4.735, allocations: 4 kB / 2.261 GB, free: 9.973 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005236/4.74, allocations: 1.532 MB / 2.262 GB, free: 8.395 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/4.755, allocations: 6.113 MB / 2.268 GB, free: 2.125 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.935e-05/4.755, allocations: 8 kB / 2.268 GB, free: 2.117 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002111/4.757, allocations: 299.7 kB / 2.268 GB, free: 1.824 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/4.758, allocations: 0.5247 MB / 2.269 GB, free: 1.305 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/4.759, allocations: 31.94 kB / 2.269 GB, free: 1.273 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/4.761, allocations: 1.794 MB / 2.271 GB, free: 15.43 MB / 0.7607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/4.761, allocations: 11.94 kB / 2.271 GB, free: 15.42 MB / 0.7607 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006506/4.768, allocations: 3.152 MB / 2.274 GB, free: 11.97 MB / 0.7607 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008228/4.776, allocations: 4.396 MB / 2.278 GB, free: 7.277 MB / 0.7607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/4.778, allocations: 0.6264 MB / 2.279 GB, free: 6.629 MB / 0.7607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009012/4.779, allocations: 12 kB / 2.279 GB, free: 6.617 MB / 0.7607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003961/4.783, allocations: 275.5 kB / 2.279 GB, free: 6.348 MB / 0.7607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/4.783, allocations: 100.4 kB / 2.279 GB, free: 6.25 MB / 0.7607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002263/4.783, allocations: 77.86 kB / 2.279 GB, free: 6.176 MB / 0.7607 GB Notification: Performance of sort global known variables: time 0.003111/4.786, allocations: 1.382 MB / 2.28 GB, free: 4.781 MB / 0.7607 GB Notification: Performance of remove unused functions: time 0.009516/4.796, allocations: 2.348 MB / 2.283 GB, free: 2.43 MB / 0.7607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U,heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * 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 (84): * Single equations (assignments): 78 * 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,2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003604/4.799, allocations: 1.493 MB / 2.284 GB, free: 1.012 MB / 0.7607 GB Notification: Performance of simCode: created initialization part: time 0.2981/5.097, allocations: 2.517 MB / 2.287 GB, free: 138.1 MB / 0.7607 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/5.097, allocations: 4.625 kB / 2.287 GB, free: 138.1 MB / 0.7607 GB Notification: Performance of simCode: created simulation system equations: time 0.001344/5.099, allocations: 0.7425 MB / 2.287 GB, free: 138.1 MB / 0.7607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005163/5.104, allocations: 1.057 MB / 2.288 GB, free: 138.1 MB / 0.7607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/5.114, allocations: 4.06 MB / 2.292 GB, free: 137 MB / 0.7607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/5.116, allocations: 2.047 MB / 2.294 GB, free: 136.2 MB / 0.7607 GB Notification: Performance of SimCode: time 1.223e-06/5.116, allocations: 0 / 2.294 GB, free: 136.2 MB / 0.7607 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe 2>&1)