Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.373/1.373, allocations: 285.5 MB / 292.8 MB, free: 10.41 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 191.5 kB / 361.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.076/1.076, allocations: 205.1 MB / 0.6195 GB, free: 10.29 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007986/0.0007984, allocations: 97.86 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2142/0.2151, allocations: 121.4 MB / 0.8511 GB, free: 2.91 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5206/0.7357, allocations: 115.3 MB / 0.9638 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8467/1.582, allocations: 473.9 MB / 1.427 GB, free: 94.63 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/1.583, allocations: 85.42 kB / 1.427 GB, free: 94.59 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 3.122/4.705, allocations: 1.005 GB / 2.432 GB, free: 134.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/4.705, allocations: 11.03 kB / 2.432 GB, free: 134.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003238/4.708, allocations: 0.7015 MB / 2.432 GB, free: 134.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007799/4.716, allocations: 3.083 MB / 2.435 GB, free: 133.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008419/4.717, allocations: 287.2 kB / 2.436 GB, free: 133.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005983/4.717, allocations: 108.1 kB / 2.436 GB, free: 133.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003007/4.72, allocations: 1.454 MB / 2.437 GB, free: 133.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003254/4.723, allocations: 1.672 MB / 2.439 GB, free: 133.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.036e-05/4.724, allocations: 4.219 kB / 2.439 GB, free: 133.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002046/4.724, allocations: 6.875 kB / 2.439 GB, free: 133.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/4.724, allocations: 41.5 kB / 2.439 GB, free: 133.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/4.736, allocations: 9.669 MB / 2.448 GB, free: 128.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008868/4.737, allocations: 0.723 MB / 2.449 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007297/4.738, allocations: 0.5762 MB / 2.45 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005083/4.743, allocations: 4.047 MB / 2.454 GB, free: 126.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008252/4.744, allocations: 0.7056 MB / 2.454 GB, free: 126.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=92): time 2.334e-06/4.744, allocations: 3.125 kB / 2.454 GB, free: 126.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=92): time 0.00281/4.747, allocations: 1.284 MB / 2.456 GB, free: 126.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/4.747, allocations: 230.5 kB / 2.456 GB, free: 126.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002657/4.75, allocations: 1.84 MB / 2.458 GB, free: 126.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002653/4.75, allocations: 36.27 kB / 2.458 GB, free: 126.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005312/4.75, allocations: 0.7549 MB / 2.458 GB, free: 125.7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/4.751, allocations: 301.3 kB / 2.459 GB, free: 125.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/4.751, allocations: 6.5 kB / 2.459 GB, free: 125.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.327e-05/4.751, allocations: 359.5 kB / 2.459 GB, free: 125.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008885/4.752, allocations: 0.6118 MB / 2.46 GB, free: 125.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/4.753, allocations: 1.128 MB / 2.461 GB, free: 124.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/4.755, allocations: 0.8358 MB / 2.461 GB, free: 124.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/4.755, allocations: 3.75 kB / 2.461 GB, free: 124.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004307/4.759, allocations: 1.966 MB / 2.463 GB, free: 124.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008729/4.76, allocations: 5.037 MB / 2.468 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/4.76, allocations: 15.06 kB / 2.468 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/4.76, allocations: 17.56 kB / 2.468 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/4.762, allocations: 363.7 kB / 2.469 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/4.762, allocations: 30.86 kB / 2.469 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002929/4.765, allocations: 435.5 kB / 2.469 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002187/4.765, allocations: 91.12 kB / 2.469 GB, free: 119.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/4.765, allocations: 7.125 kB / 2.469 GB, free: 119.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003391/4.768, allocations: 1.681 MB / 2.471 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/4.769, allocations: 17.94 kB / 2.471 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/4.769, allocations: 21.97 kB / 2.471 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/4.77, allocations: 354.3 kB / 2.471 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.67e-05/4.77, allocations: 33.02 kB / 2.471 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/4.773, allocations: 386.7 kB / 2.472 GB, free: 119 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/4.773, allocations: 93.83 kB / 2.472 GB, free: 119 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 153 * Array equations: 2 * Algorithm blocks: 4 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004097/4.773, allocations: 163.1 kB / 2.472 GB, free: 118.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/4.774, allocations: 229.4 kB / 2.472 GB, free: 118.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/4.777, allocations: 1.553 MB / 2.474 GB, free: 118.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/4.777, allocations: 10.78 kB / 2.474 GB, free: 118.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/4.777, allocations: 0 / 2.474 GB, free: 118.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001698/4.779, allocations: 1.198 MB / 2.475 GB, free: 118.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005265/4.784, allocations: 3.393 MB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/4.784, allocations: 3 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/4.785, allocations: 238.2 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/4.785, allocations: 9.938 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-05/4.785, allocations: 19.81 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/4.785, allocations: 7.719 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/4.785, allocations: 3.781 kB / 2.478 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003366/4.789, allocations: 2.283 MB / 2.481 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004491/4.793, allocations: 3.546 MB / 2.484 GB, free: 116.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/4.795, allocations: 0.5083 MB / 2.485 GB, free: 116.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006155/4.795, allocations: 11.17 kB / 2.485 GB, free: 116.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/4.797, allocations: 150.7 kB / 2.485 GB, free: 116.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/4.797, allocations: 72.91 kB / 2.485 GB, free: 116.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/4.797, allocations: 50.47 kB / 2.485 GB, free: 116.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001906/4.799, allocations: 1.377 MB / 2.486 GB, free: 116.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006267/4.806, allocations: 1.9 MB / 2.488 GB, free: 116.3 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002317/4.808, allocations: 1.494 MB / 2.49 GB, free: 116 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003647/4.812, allocations: 2.697 MB / 2.492 GB, free: 115.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/4.812, allocations: 0 / 2.492 GB, free: 115.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007448/4.812, allocations: 0.619 MB / 2.493 GB, free: 115.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/4.816, allocations: 0.9429 MB / 2.494 GB, free: 115.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007663/4.824, allocations: 3.289 MB / 2.497 GB, free: 114.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/4.826, allocations: 1.931 MB / 2.499 GB, free: 114 MB / 0.948 GB Notification: Performance of SimCode: time 5.91e-07/4.826, allocations: 0 / 2.499 GB, free: 114 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)