Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.088/2.088, allocations: 387.2 MB / 394.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 188.4 kB / 487 MB, free: 5.141 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.3 MB / 0.7819 GB, free: 1.285 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 98.14 kB / 0.9213 GB, free: 2.523 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5847/0.5858, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.8508, allocations: 142.3 MB / 1.205 GB, free: 26.04 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9611/1.812, allocations: 447.5 MB / 1.642 GB, free: 8.449 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/1.812, allocations: 90.47 kB / 1.642 GB, free: 8.402 MB / 1.073 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 2.253/4.065, allocations: 0.5298 GB / 2.172 GB, free: 241.6 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/4.065, allocations: 10.84 kB / 2.172 GB, free: 241.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/4.066, allocations: 346.9 kB / 2.173 GB, free: 241.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/4.069, allocations: 1.682 MB / 2.174 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/4.069, allocations: 118.3 kB / 2.174 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/4.069, allocations: 63.53 kB / 2.174 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001745/4.071, allocations: 0.9966 MB / 2.175 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/4.073, allocations: 1.137 MB / 2.176 GB, free: 240.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/4.073, allocations: 7.719 kB / 2.176 GB, free: 240.8 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/4.073, allocations: 3.969 kB / 2.176 GB, free: 240.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.878e-05/4.073, allocations: 47.45 kB / 2.177 GB, free: 240.8 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008697/4.082, allocations: 7.123 MB / 2.183 GB, free: 236.8 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008966/4.083, allocations: 0.5687 MB / 2.184 GB, free: 236.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/4.083, allocations: 383 kB / 2.184 GB, free: 236.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000529/4.084, allocations: 0.828 MB / 2.185 GB, free: 235.9 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/4.084, allocations: 46.88 kB / 2.185 GB, free: 235.8 MB / 1.135 GB Notification: Performance of pre-optimization done (n=63): time 2.845e-06/4.084, allocations: 2.594 kB / 2.185 GB, free: 235.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=63): time 0.001626/4.086, allocations: 0.8316 MB / 2.186 GB, free: 235.7 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/4.086, allocations: 115.6 kB / 2.186 GB, free: 235.6 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/4.087, allocations: 1.15 MB / 2.187 GB, free: 235.4 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 8.178e-05/4.087, allocations: 32.42 kB / 2.187 GB, free: 235.4 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/4.087, allocations: 0.5117 MB / 2.188 GB, free: 235.2 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/4.088, allocations: 210.5 kB / 2.188 GB, free: 235.1 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/4.088, allocations: 0 / 2.188 GB, free: 235.1 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 8.272e-05/4.088, allocations: 335.1 kB / 2.188 GB, free: 234.7 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/4.088, allocations: 356.1 kB / 2.189 GB, free: 234.7 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/4.089, allocations: 0.5944 MB / 2.189 GB, free: 234.5 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008119/4.09, allocations: 422.8 kB / 2.19 GB, free: 234.5 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/4.09, allocations: 3.625 kB / 2.19 GB, free: 234.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001678/4.091, allocations: 1.041 MB / 2.191 GB, free: 234.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003732/4.092, allocations: 1.866 MB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/4.092, allocations: 6.812 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/4.092, allocations: 11.09 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/4.093, allocations: 280 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/4.093, allocations: 12.22 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/4.094, allocations: 216.6 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.286e-05/4.095, allocations: 37.86 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/4.095, allocations: 3.562 kB / 2.193 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001527/4.096, allocations: 0.8595 MB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/4.096, allocations: 7.031 kB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/4.096, allocations: 14.5 kB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/4.097, allocations: 283.3 kB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/4.097, allocations: 9.781 kB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/4.099, allocations: 185.3 kB / 2.194 GB, free: 232.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/4.099, allocations: 41.86 kB / 2.194 GB, free: 232.4 MB / 1.135 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.0002813/4.099, allocations: 117.6 kB / 2.195 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/4.099, allocations: 144.8 kB / 2.195 GB, free: 232.2 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/4.101, allocations: 0.9974 MB / 2.196 GB, free: 232.1 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/4.101, allocations: 3.938 kB / 2.196 GB, free: 232.1 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/4.101, allocations: 0 / 2.196 GB, free: 232.1 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001231/4.103, allocations: 0.8328 MB / 2.196 GB, free: 231.9 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003997/4.107, allocations: 2.475 MB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/4.107, allocations: 6.844 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/4.108, allocations: 214.2 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/4.108, allocations: 3.344 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.758e-05/4.108, allocations: 14.86 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/4.108, allocations: 6.125 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/4.108, allocations: 6.719 kB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002266/4.11, allocations: 1.734 MB / 2.201 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002953/4.113, allocations: 2.723 MB / 2.203 GB, free: 230.1 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007621/4.114, allocations: 378.7 kB / 2.204 GB, free: 230 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/4.114, allocations: 7.031 kB / 2.204 GB, free: 230 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/4.115, allocations: 130.8 kB / 2.204 GB, free: 230 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/4.115, allocations: 75.36 kB / 2.204 GB, free: 230 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/4.116, allocations: 32.98 kB / 2.204 GB, free: 230 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001459/4.117, allocations: 0.8742 MB / 2.205 GB, free: 229.9 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.004498/4.122, allocations: 1.056 MB / 2.206 GB, free: 229.8 MB / 1.135 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.001644/4.123, allocations: 0.7854 MB / 2.207 GB, free: 229.6 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002437/4.126, allocations: 1.405 MB / 2.208 GB, free: 229.6 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/4.126, allocations: 3.969 kB / 2.208 GB, free: 229.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0007586/4.126, allocations: 470.5 kB / 2.209 GB, free: 229.6 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002888/4.129, allocations: 0.5408 MB / 2.209 GB, free: 229.6 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/4.134, allocations: 2.087 MB / 2.211 GB, free: 229 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/4.135, allocations: 1.456 MB / 2.213 GB, free: 228.3 MB / 1.135 GB Notification: Performance of SimCode: time 7.61e-07/4.135, allocations: 2.938 kB / 2.213 GB, free: 228.3 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)