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: translateModel(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic") translateModel(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7726/0.7726, allocations: 141.8 MB / 149.1 MB, free: 1.488 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.001126/0.001126, allocations: 175.3 kB / 181.9 MB, free: 0.9648 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.442/1.442, allocations: 221.3 MB / 436 MB, free: 5.727 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.001056/0.001056, allocations: 103.8 kB / 0.507 GB, free: 2.395 MB / 410.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: 282 kB / 0.5884 GB, free: 47.48 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.165e-06, allocations: 1.281 kB / 0.6759 GB, free: 59.67 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.182, allocations: 82.78 MB / 0.7567 GB, free: 0.9375 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.335, allocations: 395 MB / 1.142 GB, free: 270.5 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/1.336, allocations: 90.52 kB / 1.143 GB, free: 270.5 MB / 0.7138 GB Notification: Performance of FrontEnd: time 3.204/4.54, allocations: 1.063 GB / 2.206 GB, free: 27.27 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0005286/4.54, allocations: 83.91 kB / 2.206 GB, free: 27.18 MB / 0.7138 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.01071/4.551, allocations: 3.221 MB / 2.209 GB, free: 23.87 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/4.551, allocations: 16.03 kB / 2.209 GB, free: 23.85 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01029/4.561, allocations: 1.303 MB / 2.21 GB, free: 22.54 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009499/4.571, allocations: 3.318 MB / 2.214 GB, free: 19.16 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/4.571, allocations: 167.9 kB / 2.214 GB, free: 18.98 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000967/4.572, allocations: 136 kB / 2.214 GB, free: 18.85 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005569/4.578, allocations: 2.004 MB / 2.216 GB, free: 16.84 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004693/4.583, allocations: 2.512 MB / 2.218 GB, free: 14.13 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/4.583, allocations: 3.938 kB / 2.218 GB, free: 14.12 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/4.583, allocations: 11.94 kB / 2.218 GB, free: 14.11 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.004e-05/4.583, allocations: 100.2 kB / 2.218 GB, free: 14.01 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/4.605, allocations: 13.96 MB / 2.232 GB, free: 15.52 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001872/4.607, allocations: 1.092 MB / 2.233 GB, free: 14.39 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000932/4.608, allocations: 0.5772 MB / 2.234 GB, free: 13.8 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001985/4.61, allocations: 1.773 MB / 2.235 GB, free: 11.64 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001445/4.611, allocations: 0.8982 MB / 2.236 GB, free: 10.64 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=118): time 3.557e-06/4.611, allocations: 0 / 2.236 GB, free: 10.64 MB / 0.7294 GB Notification: Performance of matching and sorting (n=122): time 0.02121/4.633, allocations: 10.01 MB / 2.246 GB, free: 460 kB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000397/4.633, allocations: 0.9358 MB / 2.247 GB, free: 15.29 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/4.636, allocations: 1.84 MB / 2.249 GB, free: 13.43 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0003681/4.637, allocations: 29.7 kB / 2.249 GB, free: 13.4 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.00124/4.638, allocations: 0.9833 MB / 2.25 GB, free: 12.39 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.000734/4.639, allocations: 414 kB / 2.25 GB, free: 11.98 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/4.639, allocations: 0 / 2.25 GB, free: 11.98 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 0.0001667/4.639, allocations: 361.9 kB / 2.251 GB, free: 11.62 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/4.64, allocations: 0.5858 MB / 2.251 GB, free: 11.04 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/4.642, allocations: 1.204 MB / 2.252 GB, free: 9.566 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002533/4.644, allocations: 0.8165 MB / 2.253 GB, free: 8.75 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/4.644, allocations: 4 kB / 2.253 GB, free: 8.746 MB / 0.745 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006219/4.65, allocations: 2.18 MB / 2.255 GB, free: 6.551 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.002102/4.653, allocations: 5.087 MB / 2.26 GB, free: 0.9336 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/4.653, allocations: 15.98 kB / 2.26 GB, free: 0.918 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/4.654, allocations: 0.7155 MB / 2.261 GB, free: 208 kB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4446/5.099, allocations: 472 kB / 2.261 GB, free: 122.4 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/5.104, allocations: 2.361 MB / 2.264 GB, free: 121.4 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006329/5.111, allocations: 389.5 kB / 2.264 GB, free: 121.4 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004999/5.111, allocations: 108 kB / 2.264 GB, free: 121.4 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/5.111, allocations: 6.562 kB / 2.264 GB, free: 121.4 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004731/5.116, allocations: 1.885 MB / 2.266 GB, free: 121.3 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/5.116, allocations: 9.625 kB / 2.266 GB, free: 121.3 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/5.118, allocations: 0.7195 MB / 2.267 GB, free: 121.3 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/5.12, allocations: 451.3 kB / 2.267 GB, free: 121.3 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003914/5.124, allocations: 2.368 MB / 2.269 GB, free: 120.3 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004885/5.129, allocations: 319.4 kB / 2.27 GB, free: 120.3 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/5.129, allocations: 115.2 kB / 2.27 GB, free: 120.3 MB / 0.745 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.0006326/5.13, allocations: 154 kB / 2.27 GB, free: 120.2 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005577/5.131, allocations: 242.5 kB / 2.27 GB, free: 120.2 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005193/5.136, allocations: 1.702 MB / 2.272 GB, free: 120.1 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/5.136, allocations: 22.11 kB / 2.272 GB, free: 120.1 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/5.136, allocations: 8.797 kB / 2.272 GB, free: 120.1 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003838/5.14, allocations: 1.502 MB / 2.273 GB, free: 119.8 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/5.152, allocations: 6.006 MB / 2.279 GB, free: 118 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/5.152, allocations: 6.438 kB / 2.279 GB, free: 118 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/5.154, allocations: 291.8 kB / 2.28 GB, free: 118 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/5.155, allocations: 0.6086 MB / 2.28 GB, free: 117.9 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/5.155, allocations: 35.45 kB / 2.28 GB, free: 117.9 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/5.159, allocations: 2.106 MB / 2.282 GB, free: 116.9 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/5.159, allocations: 12.7 kB / 2.282 GB, free: 116.9 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006755/5.165, allocations: 3.156 MB / 2.285 GB, free: 115.9 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/5.167, allocations: 0.6095 MB / 2.286 GB, free: 115.8 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004759/5.168, allocations: 12.72 kB / 2.286 GB, free: 115.8 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003256/5.171, allocations: 263.8 kB / 2.286 GB, free: 115.8 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/5.171, allocations: 101.8 kB / 2.286 GB, free: 115.8 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/5.172, allocations: 70.69 kB / 2.286 GB, free: 115.8 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002262/5.174, allocations: 1.375 MB / 2.288 GB, free: 115.6 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.005611/5.179, allocations: 1.572 MB / 2.289 GB, free: 115.6 MB / 0.745 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.002901/5.182, allocations: 1.493 MB / 2.291 GB, free: 115.4 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.006475/5.189, allocations: 2.759 MB / 2.293 GB, free: 115.3 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/5.189, allocations: 6 kB / 2.293 GB, free: 115.3 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.002264/5.191, allocations: 0.8614 MB / 2.294 GB, free: 115.2 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006216/5.197, allocations: 1.048 MB / 2.295 GB, free: 115.2 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/5.21, allocations: 3.946 MB / 2.299 GB, free: 114.2 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002679/5.213, allocations: 2.04 MB / 2.301 GB, free: 113.4 MB / 0.745 GB Notification: Performance of SimCode: time 1.823e-06/5.213, allocations: 6.094 kB / 2.301 GB, free: 113.4 MB / 0.745 GB Notification: Performance of Templates: time 0.129/5.342, allocations: 75.25 MB / 2.375 GB, free: 109.9 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)