Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",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.254/1.254, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.0009818/0.0009819, allocations: 173.3 kB / 316 MB, free: 3.586 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.159/1.159, allocations: 205.1 MB / 0.5667 GB, free: 15.65 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.0008132/0.0008133, allocations: 82.06 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3522/0.3531, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.5285, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.053/1.581, allocations: 428.4 MB / 1.303 GB, free: 318.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/1.582, allocations: 87.02 kB / 1.303 GB, free: 318.7 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 1.201/2.783, allocations: 0.5045 GB / 1.808 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/2.783, allocations: 11.22 kB / 1.808 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/2.785, allocations: 347.6 kB / 1.808 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002732/2.787, allocations: 1.647 MB / 1.81 GB, free: 134.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/2.787, allocations: 117.5 kB / 1.81 GB, free: 134.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/2.788, allocations: 64 kB / 1.81 GB, free: 134.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00155/2.789, allocations: 0.9999 MB / 1.811 GB, free: 133.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/2.791, allocations: 1.118 MB / 1.812 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/2.791, allocations: 7.938 kB / 1.812 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.79e-05/2.791, allocations: 3.172 kB / 1.812 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/2.791, allocations: 32 kB / 1.812 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007226/2.798, allocations: 7.089 MB / 1.819 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007727/2.799, allocations: 0.5798 MB / 1.819 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004478/2.799, allocations: 382.7 kB / 1.82 GB, free: 123.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004917/2.8, allocations: 0.8289 MB / 1.821 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/2.8, allocations: 50.41 kB / 1.821 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=63): time 3.477e-06/2.8, allocations: 0 / 1.821 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=63): time 0.001477/2.801, allocations: 0.8263 MB / 1.821 GB, free: 121.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/2.801, allocations: 111.5 kB / 1.821 GB, free: 121.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/2.803, allocations: 1.149 MB / 1.823 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/2.803, allocations: 29.7 kB / 1.823 GB, free: 120.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/2.803, allocations: 0.5156 MB / 1.823 GB, free: 120.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/2.803, allocations: 208.8 kB / 1.823 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/2.803, allocations: 3.344 kB / 1.823 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.989e-05/2.803, allocations: 341.8 kB / 1.824 GB, free: 119.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/2.804, allocations: 349.9 kB / 1.824 GB, free: 119.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/2.804, allocations: 0.6039 MB / 1.825 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007627/2.805, allocations: 428 kB / 1.825 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/2.805, allocations: 4 kB / 1.825 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001663/2.807, allocations: 1.032 MB / 1.826 GB, free: 117.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000334/2.807, allocations: 1.872 MB / 1.828 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/2.807, allocations: 7.906 kB / 1.828 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/2.807, allocations: 15.42 kB / 1.828 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/2.808, allocations: 277.2 kB / 1.828 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/2.808, allocations: 8 kB / 1.828 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/2.81, allocations: 221.9 kB / 1.828 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/2.81, allocations: 39.98 kB / 1.828 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/2.81, allocations: 4 kB / 1.828 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/2.811, allocations: 0.8564 MB / 1.829 GB, free: 113.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/2.812, allocations: 8 kB / 1.829 GB, free: 113.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/2.812, allocations: 8 kB / 1.829 GB, free: 113.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/2.813, allocations: 282 kB / 1.829 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/2.813, allocations: 11.25 kB / 1.83 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/2.814, allocations: 182.2 kB / 1.83 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.24e-05/2.814, allocations: 39.98 kB / 1.83 GB, free: 113.2 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002658/2.814, allocations: 124.7 kB / 1.83 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/2.815, allocations: 138.3 kB / 1.83 GB, free: 113 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/2.816, allocations: 0.9915 MB / 1.831 GB, free: 111.9 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/2.816, allocations: 8 kB / 1.831 GB, free: 111.9 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/2.816, allocations: 0 / 1.831 GB, free: 111.9 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001171/2.818, allocations: 0.8385 MB / 1.832 GB, free: 111.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004054/2.822, allocations: 2.457 MB / 1.834 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/2.822, allocations: 4 kB / 1.834 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/2.823, allocations: 217 kB / 1.834 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/2.823, allocations: 8 kB / 1.834 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.09e-05/2.823, allocations: 7.984 kB / 1.834 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/2.823, allocations: 8 kB / 1.834 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.823, allocations: 3.938 kB / 1.834 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002035/2.825, allocations: 1.739 MB / 1.836 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002706/2.828, allocations: 2.717 MB / 1.839 GB, free: 103.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006491/2.828, allocations: 375 kB / 1.839 GB, free: 103.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/2.828, allocations: 4 kB / 1.839 GB, free: 103.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/2.83, allocations: 129.9 kB / 1.839 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/2.83, allocations: 68.39 kB / 1.839 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.367e-05/2.83, allocations: 35.97 kB / 1.839 GB, free: 103 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001125/2.831, allocations: 0.871 MB / 1.84 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003702/2.835, allocations: 1.066 MB / 1.841 GB, free: 101.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.001251/2.836, allocations: 0.8088 MB / 1.842 GB, free: 100.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001934/2.838, allocations: 1.409 MB / 1.843 GB, free: 98.98 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/2.838, allocations: 0 / 1.843 GB, free: 98.98 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006361/2.838, allocations: 473.6 kB / 1.844 GB, free: 98.52 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/2.841, allocations: 0.557 MB / 1.844 GB, free: 97.98 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003825/2.845, allocations: 2.077 MB / 1.846 GB, free: 95.84 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/2.846, allocations: 1.457 MB / 1.848 GB, free: 94.36 MB / 0.8698 GB Notification: Performance of SimCode: time 1.102e-06/2.846, allocations: 0 / 1.848 GB, free: 94.36 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)