Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.245/1.245, allocations: 249.4 MB / 256.7 MB, free: 7.043 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009929/0.0009929, allocations: 185.2 kB / 316 MB, free: 3.562 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205.1 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007943/0.0007943, allocations: 92.7 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3356/0.3364, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.495, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.095/1.59, allocations: 466.9 MB / 1.341 GB, free: 279.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/1.59, allocations: 87.95 kB / 1.341 GB, free: 279.8 MB / 0.8698 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 2.731/4.322, allocations: 0.9751 GB / 2.316 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/4.322, allocations: 10.44 kB / 2.316 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/4.324, allocations: 0.6972 MB / 2.317 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005368/4.33, allocations: 2.993 MB / 2.319 GB, free: 107 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006894/4.33, allocations: 279.1 kB / 2.32 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002176/4.331, allocations: 104.6 kB / 2.32 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002365/4.333, allocations: 1.534 MB / 2.321 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/4.335, allocations: 1.663 MB / 2.323 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/4.335, allocations: 9.719 kB / 2.323 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/4.336, allocations: 13.81 kB / 2.323 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.593e-05/4.336, allocations: 39.81 kB / 2.323 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01071/4.346, allocations: 9.613 MB / 2.332 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/4.347, allocations: 0.6988 MB / 2.333 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007177/4.348, allocations: 0.5882 MB / 2.334 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005265/4.353, allocations: 4.007 MB / 2.338 GB, free: 99.89 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008801/4.354, allocations: 0.7074 MB / 2.338 GB, free: 99.81 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=96): time 2.675e-06/4.354, allocations: 0 / 2.338 GB, free: 99.81 MB / 0.8855 GB Notification: Performance of matching and sorting (n=96): time 0.002442/4.357, allocations: 1.282 MB / 2.34 GB, free: 99.64 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/4.357, allocations: 201.4 kB / 2.34 GB, free: 99.42 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/4.359, allocations: 1.783 MB / 2.341 GB, free: 99.21 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001044/4.359, allocations: 29.55 kB / 2.341 GB, free: 99.18 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004452/4.359, allocations: 0.7325 MB / 2.342 GB, free: 98.78 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/4.359, allocations: 316.2 kB / 2.342 GB, free: 98.58 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/4.36, allocations: 0 / 2.342 GB, free: 98.58 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.558e-05/4.36, allocations: 356.6 kB / 2.343 GB, free: 98.28 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/4.36, allocations: 0.5428 MB / 2.343 GB, free: 98.27 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008951/4.361, allocations: 1.009 MB / 2.344 GB, free: 97.75 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/4.363, allocations: 0.7202 MB / 2.345 GB, free: 97.73 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/4.363, allocations: 3.594 kB / 2.345 GB, free: 97.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.002879/4.366, allocations: 1.731 MB / 2.347 GB, free: 97.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000566/4.366, allocations: 4.093 MB / 2.351 GB, free: 93.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/4.366, allocations: 18.05 kB / 2.351 GB, free: 93.21 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/4.366, allocations: 19.44 kB / 2.351 GB, free: 93.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/4.368, allocations: 425.2 kB / 2.351 GB, free: 93.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/4.368, allocations: 25.42 kB / 2.351 GB, free: 93.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/4.37, allocations: 345.6 kB / 2.352 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/4.371, allocations: 73.58 kB / 2.352 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/4.371, allocations: 10.84 kB / 2.352 GB, free: 93.13 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002592/4.373, allocations: 1.447 MB / 2.353 GB, free: 93.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/4.373, allocations: 11.62 kB / 2.353 GB, free: 93.11 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/4.373, allocations: 16.59 kB / 2.353 GB, free: 93.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/4.375, allocations: 427.1 kB / 2.353 GB, free: 93.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/4.375, allocations: 24.5 kB / 2.353 GB, free: 93.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/4.377, allocations: 295.7 kB / 2.354 GB, free: 93.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/4.377, allocations: 72 kB / 2.354 GB, free: 93.05 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.TSouEnt.T_start,TSouEnt.T_start,$PRE.TSouEnt.count,TSouEnt.count,$PRE.TLoaSet.T_start,TLoaSet.T_start,$PRE.TLoaSet.count,TLoaSet.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 2 * Algorithm blocks: 0 * 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.0003135/4.377, allocations: 159.7 kB / 2.354 GB, free: 92.94 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002855/4.378, allocations: 231.3 kB / 2.354 GB, free: 92.82 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/4.381, allocations: 1.56 MB / 2.356 GB, free: 92.73 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/4.381, allocations: 17.17 kB / 2.356 GB, free: 92.73 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/4.381, allocations: 0 / 2.356 GB, free: 92.73 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001721/4.382, allocations: 1.193 MB / 2.357 GB, free: 92.55 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/4.387, allocations: 3.356 MB / 2.36 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/4.387, allocations: 3.125 kB / 2.36 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/4.389, allocations: 282.3 kB / 2.36 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/4.389, allocations: 7.375 kB / 2.36 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.232e-05/4.389, allocations: 24.06 kB / 2.36 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/4.389, allocations: 12.72 kB / 2.361 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/4.389, allocations: 0.75 kB / 2.361 GB, free: 92.18 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002898/4.392, allocations: 2.296 MB / 2.363 GB, free: 91.79 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004035/4.396, allocations: 3.57 MB / 2.366 GB, free: 91.02 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008554/4.397, allocations: 0.5047 MB / 2.367 GB, free: 90.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/4.397, allocations: 10.3 kB / 2.367 GB, free: 90.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/4.399, allocations: 212.5 kB / 2.367 GB, free: 90.79 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/4.399, allocations: 109.2 kB / 2.367 GB, free: 90.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/4.399, allocations: 52.25 kB / 2.367 GB, free: 90.78 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001633/4.401, allocations: 1.336 MB / 2.368 GB, free: 90.64 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.005207/4.406, allocations: 1.803 MB / 2.37 GB, free: 90.41 MB / 0.8855 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 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,uMod.T_start,uMod.count,pulse.T_start,pulse.count,TSouEnt.T_start,TSouEnt.count,TLoaSet.T_start,TLoaSet.count) * Number of discrete states: 4 (uMod.count,pulse.count,TSouEnt.count,TLoaSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.002136/4.408, allocations: 1.478 MB / 2.372 GB, free: 90.05 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00314/4.411, allocations: 2.276 MB / 2.374 GB, free: 89.96 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/4.411, allocations: 0 / 2.374 GB, free: 89.96 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000871/4.412, allocations: 0.6586 MB / 2.374 GB, free: 89.95 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004495/4.417, allocations: 0.9066 MB / 2.375 GB, free: 89.94 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006248/4.423, allocations: 3.258 MB / 2.379 GB, free: 89.13 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/4.425, allocations: 1.914 MB / 2.38 GB, free: 88.39 MB / 0.8855 GB Notification: Performance of SimCode: time 1.322e-06/4.425, allocations: 5.75 kB / 2.38 GB, free: 88.39 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)