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: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") [: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.06/2.06, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001126/0.001126, allocations: 181.2 kB / 487 MB, free: 5.316 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.398/1.398, 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.000958/0.0009578, allocations: 86.06 kB / 0.9213 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.237e-06/9.247e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2713, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.937/1.208, allocations: 447.5 MB / 1.642 GB, free: 8.703 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004189/1.209, allocations: 85.05 kB / 1.642 GB, free: 8.664 MB / 1.073 GB Notification: Performance of FrontEnd: time 2.006/3.215, allocations: 0.528 GB / 2.17 GB, free: 241.9 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001372/3.215, allocations: 40.91 kB / 2.17 GB, free: 241.9 MB / 1.135 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 0.003845/3.219, allocations: 1.925 MB / 2.172 GB, free: 241.5 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/3.219, allocations: 7.656 kB / 2.172 GB, free: 241.5 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/3.221, allocations: 345 kB / 2.173 GB, free: 241.4 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/3.223, allocations: 1.678 MB / 2.174 GB, free: 241 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/3.224, allocations: 113.8 kB / 2.174 GB, free: 241 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/3.224, allocations: 62.88 kB / 2.174 GB, free: 241 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001589/3.225, allocations: 0.9998 MB / 2.175 GB, free: 241 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/3.227, allocations: 1.139 MB / 2.176 GB, free: 240.7 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/3.227, allocations: 3.094 kB / 2.176 GB, free: 240.7 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/3.227, allocations: 3.344 kB / 2.176 GB, free: 240.7 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.607e-05/3.227, allocations: 52.12 kB / 2.177 GB, free: 240.7 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008089/3.235, allocations: 7.12 MB / 2.183 GB, free: 236.7 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009127/3.236, allocations: 0.5699 MB / 2.184 GB, free: 236.7 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004712/3.237, allocations: 381.9 kB / 2.184 GB, free: 236.7 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004944/3.237, allocations: 0.8357 MB / 2.185 GB, free: 235.8 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/3.237, allocations: 45.12 kB / 2.185 GB, free: 235.7 MB / 1.135 GB Notification: Performance of pre-optimization done (n=63): time 2.966e-06/3.237, allocations: 0 / 2.185 GB, free: 235.7 MB / 1.135 GB Notification: Performance of matching and sorting (n=63): time 0.001571/3.239, allocations: 0.8314 MB / 2.186 GB, free: 235.6 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/3.239, allocations: 108.2 kB / 2.186 GB, free: 235.5 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/3.24, allocations: 1.157 MB / 2.187 GB, free: 235.3 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 8.021e-05/3.24, allocations: 25.7 kB / 2.187 GB, free: 235.3 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/3.241, allocations: 0.5123 MB / 2.188 GB, free: 235.1 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/3.241, allocations: 209.8 kB / 2.188 GB, free: 235 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/3.241, allocations: 0 / 2.188 GB, free: 235 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.59e-05/3.241, allocations: 337.4 kB / 2.188 GB, free: 234.7 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/3.241, allocations: 351.6 kB / 2.189 GB, free: 234.7 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/3.242, allocations: 0.598 MB / 2.189 GB, free: 234.4 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008162/3.243, allocations: 431.3 kB / 2.19 GB, free: 234.4 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/3.243, allocations: 3.391 kB / 2.19 GB, free: 234.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001728/3.245, allocations: 1.035 MB / 2.191 GB, free: 234.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003676/3.245, allocations: 1.87 MB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/3.245, allocations: 5.969 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/3.245, allocations: 11.78 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/3.246, allocations: 278 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/3.246, allocations: 10.98 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/3.248, allocations: 223.1 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.359e-05/3.248, allocations: 37.25 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 7.525e-06/3.248, allocations: 2.375 kB / 2.193 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001485/3.249, allocations: 0.8616 MB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/3.249, allocations: 3.719 kB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/3.249, allocations: 20.28 kB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/3.251, allocations: 279.4 kB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/3.251, allocations: 7.656 kB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/3.252, allocations: 182.9 kB / 2.194 GB, free: 232.3 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.982e-05/3.252, allocations: 36.8 kB / 2.194 GB, free: 232.3 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.0002794/3.252, allocations: 124.7 kB / 2.195 GB, free: 232.2 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/3.253, allocations: 147.8 kB / 2.195 GB, free: 232.1 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/3.255, allocations: 0.9885 MB / 2.196 GB, free: 232 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/3.255, allocations: 10.66 kB / 2.196 GB, free: 232 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/3.255, allocations: 0 / 2.196 GB, free: 232 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001182/3.256, allocations: 0.8363 MB / 2.196 GB, free: 231.9 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/3.26, allocations: 2.469 MB / 2.199 GB, free: 231.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/3.26, allocations: 7.469 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/3.261, allocations: 213.9 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/3.261, allocations: 3.594 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/3.261, allocations: 14.22 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/3.261, allocations: 7 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/3.261, allocations: 3.281 kB / 2.199 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002328/3.263, allocations: 1.74 MB / 2.201 GB, free: 230.9 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007907/3.264, allocations: 378.2 kB / 2.201 GB, free: 230.8 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/3.264, allocations: 3.969 kB / 2.201 GB, free: 230.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/3.265, allocations: 138 kB / 2.201 GB, free: 230.8 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/3.266, allocations: 65.25 kB / 2.201 GB, free: 230.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.094e-05/3.266, allocations: 34.86 kB / 2.201 GB, free: 230.8 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001368/3.267, allocations: 0.8761 MB / 2.202 GB, free: 230.7 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002627/3.27, allocations: 0.8374 MB / 2.203 GB, free: 230.6 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.001469/3.271, allocations: 0.7981 MB / 2.204 GB, free: 230.4 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.00223/3.273, allocations: 1.399 MB / 2.205 GB, free: 230.4 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/3.273, allocations: 3.875 kB / 2.205 GB, free: 230.4 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0007245/3.274, allocations: 473.2 kB / 2.206 GB, free: 230.4 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/3.277, allocations: 0.5531 MB / 2.206 GB, free: 230.4 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/3.281, allocations: 2.086 MB / 2.208 GB, free: 229.8 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/3.282, allocations: 1.454 MB / 2.21 GB, free: 229.1 MB / 1.135 GB Notification: Performance of SimCode: time 1.092e-06/3.282, allocations: 5.875 kB / 2.21 GB, free: 229.1 MB / 1.135 GB Notification: Performance of Templates: time 0.05676/3.339, allocations: 35.02 MB / 2.244 GB, free: 228.5 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (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 & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches