Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.642/1.642, allocations: 289.8 MB / 297.1 MB, free: 6.641 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.001087/0.001087, allocations: 185.3 kB / 366.3 MB, free: 1.957 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.545/1.545, allocations: 205.2 MB / 0.6256 GB, free: 5.789 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.0009944/0.0009944, allocations: 79.91 kB / 0.7395 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2794/0.2804, allocations: 122.4 MB / 0.8591 GB, free: 13.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6512/0.9316, allocations: 116.3 MB / 0.9726 GB, free: 68.31 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/1.983, allocations: 475.1 MB / 1.437 GB, free: 14.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/1.983, allocations: 96.27 kB / 1.437 GB, free: 14.93 MB / 0.823 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.89/5.873, allocations: 1.005 GB / 2.442 GB, free: 119.9 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/5.874, allocations: 9.688 kB / 2.442 GB, free: 119.9 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004636/5.878, allocations: 0.7137 MB / 2.442 GB, free: 119.7 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/5.889, allocations: 3.071 MB / 2.445 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008967/5.89, allocations: 283 kB / 2.446 GB, free: 119.1 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009521/5.891, allocations: 113 kB / 2.446 GB, free: 119.1 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004404/5.895, allocations: 1.449 MB / 2.447 GB, free: 119.1 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00514/5.9, allocations: 1.666 MB / 2.449 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-05/5.9, allocations: 8.469 kB / 2.449 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003827/5.901, allocations: 3.312 kB / 2.449 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.638e-05/5.901, allocations: 42.77 kB / 2.449 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02153/5.922, allocations: 9.687 MB / 2.458 GB, free: 114.3 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/5.924, allocations: 0.7156 MB / 2.459 GB, free: 114.3 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/5.925, allocations: 0.5836 MB / 2.46 GB, free: 114.3 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009404/5.934, allocations: 4.033 MB / 2.464 GB, free: 112.6 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001115/5.936, allocations: 0.709 MB / 2.464 GB, free: 112.5 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=92): time 5.029e-06/5.936, allocations: 1.312 kB / 2.464 GB, free: 112.5 MB / 0.9792 GB Notification: Performance of matching and sorting (n=92): time 0.003523/5.939, allocations: 1.291 MB / 2.466 GB, free: 112.3 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.274e-05/5.939, allocations: 220.5 kB / 2.466 GB, free: 112.1 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/5.943, allocations: 1.84 MB / 2.468 GB, free: 111.8 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0003446/5.944, allocations: 39.14 kB / 2.468 GB, free: 111.8 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001081/5.945, allocations: 0.7527 MB / 2.468 GB, free: 111.4 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005077/5.945, allocations: 297.1 kB / 2.469 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/5.946, allocations: 10.38 kB / 2.469 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001296/5.946, allocations: 353.3 kB / 2.469 GB, free: 110.9 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/5.947, allocations: 0.6132 MB / 2.47 GB, free: 110.9 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/5.948, allocations: 1.123 MB / 2.471 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002732/5.951, allocations: 0.8416 MB / 2.471 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/5.951, allocations: 3.875 kB / 2.471 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005619/5.957, allocations: 1.973 MB / 2.473 GB, free: 110.1 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.001317/5.958, allocations: 5.035 MB / 2.478 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.054e-05/5.958, allocations: 13.94 kB / 2.478 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.886e-05/5.958, allocations: 22.25 kB / 2.478 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/5.96, allocations: 364.9 kB / 2.479 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.648e-05/5.96, allocations: 26.81 kB / 2.479 GB, free: 104.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003625/5.964, allocations: 432.8 kB / 2.479 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004057/5.964, allocations: 93.45 kB / 2.479 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/5.964, allocations: 6.312 kB / 2.479 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004735/5.969, allocations: 1.675 MB / 2.481 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.8e-05/5.969, allocations: 14.62 kB / 2.481 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.856e-05/5.969, allocations: 18.38 kB / 2.481 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/5.971, allocations: 361.8 kB / 2.481 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.468e-05/5.971, allocations: 23.81 kB / 2.481 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/5.974, allocations: 394.3 kB / 2.482 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/5.974, allocations: 91.47 kB / 2.482 GB, free: 104.6 MB / 0.9792 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.0005952/5.975, allocations: 169.9 kB / 2.482 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008566/5.976, allocations: 229.6 kB / 2.482 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004087/5.98, allocations: 1.552 MB / 2.484 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/5.98, allocations: 17.95 kB / 2.484 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/5.98, allocations: 0 / 2.484 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002074/5.982, allocations: 1.19 MB / 2.485 GB, free: 104.1 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008408/5.99, allocations: 3.408 MB / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/5.99, allocations: 0 / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/5.992, allocations: 238.6 kB / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.025e-05/5.992, allocations: 3.781 kB / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/5.992, allocations: 19.92 kB / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/5.992, allocations: 10.81 kB / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/5.992, allocations: 0 / 2.488 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004452/5.996, allocations: 2.286 MB / 2.491 GB, free: 103.4 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005877/6.002, allocations: 3.541 MB / 2.494 GB, free: 102.6 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/6.004, allocations: 0.5166 MB / 2.495 GB, free: 102.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009152/6.005, allocations: 3.812 kB / 2.495 GB, free: 102.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/6.008, allocations: 160.8 kB / 2.495 GB, free: 102.3 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/6.008, allocations: 67.05 kB / 2.495 GB, free: 102.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/6.008, allocations: 51.31 kB / 2.495 GB, free: 102.3 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.003067/6.011, allocations: 1.381 MB / 2.496 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0112/6.022, allocations: 1.886 MB / 2.498 GB, free: 102 MB / 0.9792 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.004099/6.027, allocations: 1.464 MB / 2.499 GB, free: 101.6 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.005998/6.033, allocations: 2.686 MB / 2.502 GB, free: 101.3 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/6.033, allocations: 3.656 kB / 2.502 GB, free: 101.3 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/6.034, allocations: 0.6223 MB / 2.503 GB, free: 101.2 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006646/6.041, allocations: 0.9321 MB / 2.504 GB, free: 101.2 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/6.053, allocations: 3.299 MB / 2.507 GB, free: 100.4 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003604/6.057, allocations: 1.939 MB / 2.509 GB, free: 99.68 MB / 0.9792 GB Notification: Performance of SimCode: time 1.884e-06/6.057, allocations: 1.031 kB / 2.509 GB, free: 99.68 MB / 0.9792 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)