Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.25/2.25, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.00122/0.00122, allocations: 189.2 kB / 490.8 MB, free: 1.918 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.609/1.609, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009842/0.0009843, allocations: 92.72 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7961/0.7972, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/1.124, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.331/2.456, allocations: 448.3 MB / 1.649 GB, free: 15.89 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/2.456, allocations: 84.94 kB / 1.65 GB, free: 15.85 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 1.711/4.167, allocations: 0.5298 GB / 2.179 GB, free: 18.25 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/4.167, allocations: 12 kB / 2.179 GB, free: 18.24 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/4.17, allocations: 341.5 kB / 2.18 GB, free: 17.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006324/4.176, allocations: 1.687 MB / 2.181 GB, free: 16.16 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004037/4.176, allocations: 117.4 kB / 2.181 GB, free: 16.03 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005984/4.177, allocations: 67.98 kB / 2.182 GB, free: 15.96 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002797/4.18, allocations: 0.9999 MB / 2.183 GB, free: 14.96 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002828/4.183, allocations: 1.142 MB / 2.184 GB, free: 13.73 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.754e-05/4.183, allocations: 0 / 2.184 GB, free: 13.73 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/4.183, allocations: 4 kB / 2.184 GB, free: 13.73 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.367e-05/4.183, allocations: 45.98 kB / 2.184 GB, free: 13.68 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/4.195, allocations: 7.117 MB / 2.191 GB, free: 6.066 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/4.196, allocations: 0.5784 MB / 2.191 GB, free: 5.477 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005401/4.197, allocations: 382.7 kB / 2.192 GB, free: 5.102 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005487/4.197, allocations: 0.8317 MB / 2.192 GB, free: 4.086 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/4.197, allocations: 39.22 kB / 2.192 GB, free: 4.039 MB / 1.151 GB Notification: Performance of pre-optimization done (n=63): time 4.86e-06/4.197, allocations: 0 / 2.192 GB, free: 4.039 MB / 1.151 GB Notification: Performance of matching and sorting (n=63): time 0.001972/4.199, allocations: 0.8379 MB / 2.193 GB, free: 3.191 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/4.199, allocations: 111.5 kB / 2.193 GB, free: 3.059 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/4.201, allocations: 1.153 MB / 2.194 GB, free: 1.898 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001597/4.201, allocations: 29.7 kB / 2.194 GB, free: 1.863 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000341/4.202, allocations: 0.5079 MB / 2.195 GB, free: 1.348 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/4.202, allocations: 209 kB / 2.195 GB, free: 1.141 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.128e-05/4.202, allocations: 0 / 2.195 GB, free: 1.141 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000113/4.202, allocations: 341.8 kB / 2.196 GB, free: 0.8008 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/4.202, allocations: 353.9 kB / 2.196 GB, free: 464 kB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.642/4.844, allocations: 0.5932 MB / 2.196 GB, free: 374.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/4.846, allocations: 431.4 kB / 2.197 GB, free: 374.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/4.846, allocations: 3.344 kB / 2.197 GB, free: 374.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002342/4.848, allocations: 1.032 MB / 2.198 GB, free: 374.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003482/4.849, allocations: 1.873 MB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/4.849, allocations: 3.906 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/4.849, allocations: 11.12 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/4.85, allocations: 284.1 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/4.85, allocations: 11.16 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/4.852, allocations: 212.9 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/4.852, allocations: 40.27 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/4.852, allocations: 3.875 kB / 2.2 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001722/4.854, allocations: 0.8649 MB / 2.201 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/4.854, allocations: 6.875 kB / 2.201 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/4.854, allocations: 14.03 kB / 2.201 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/4.855, allocations: 278.6 kB / 2.201 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/4.855, allocations: 14.84 kB / 2.201 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/4.857, allocations: 181 kB / 2.202 GB, free: 372.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/4.857, allocations: 36.61 kB / 2.202 GB, free: 372.5 MB / 1.151 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.0003206/4.857, allocations: 131.4 kB / 2.202 GB, free: 372.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003252/4.858, allocations: 142 kB / 2.202 GB, free: 372.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/4.86, allocations: 0.995 MB / 2.203 GB, free: 372.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/4.86, allocations: 7.188 kB / 2.203 GB, free: 372.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/4.86, allocations: 0 / 2.203 GB, free: 372.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001273/4.861, allocations: 0.8374 MB / 2.204 GB, free: 372.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00477/4.866, allocations: 2.46 MB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/4.866, allocations: 5.812 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/4.867, allocations: 215.7 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/4.867, allocations: 7.25 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.292e-05/4.867, allocations: 11.48 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.916e-06/4.867, allocations: 9.156 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/4.867, allocations: 5.156 kB / 2.206 GB, free: 371.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002926/4.87, allocations: 1.741 MB / 2.208 GB, free: 371.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003677/4.874, allocations: 2.719 MB / 2.211 GB, free: 370.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/4.875, allocations: 381.8 kB / 2.211 GB, free: 370.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/4.875, allocations: 6 kB / 2.211 GB, free: 370.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/4.876, allocations: 128.9 kB / 2.211 GB, free: 370.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/4.877, allocations: 70.77 kB / 2.211 GB, free: 370.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/4.877, allocations: 38.72 kB / 2.211 GB, free: 370.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.00148/4.878, allocations: 0.8732 MB / 2.212 GB, free: 370.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004666/4.883, allocations: 1.054 MB / 2.213 GB, free: 370 MB / 1.151 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.001582/4.885, allocations: 0.7829 MB / 2.214 GB, free: 369.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002524/4.887, allocations: 1.407 MB / 2.215 GB, free: 369.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/4.887, allocations: 0 / 2.215 GB, free: 369.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007856/4.888, allocations: 472.6 kB / 2.216 GB, free: 369.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/4.891, allocations: 0.5444 MB / 2.216 GB, free: 369.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004494/4.895, allocations: 2.097 MB / 2.218 GB, free: 369.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/4.897, allocations: 1.457 MB / 2.22 GB, free: 368.6 MB / 1.151 GB Notification: Performance of SimCode: time 5.72e-07/4.897, allocations: 0 / 2.22 GB, free: 368.6 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)