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: 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_latest_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_latest_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 10.0.0-master/package.mo): time 1.939/1.939, 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.0009836/0.0009834, allocations: 184.6 kB / 490.8 MB, free: 1.945 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.311/1.311, allocations: 221.3 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.0008581/0.0008581, allocations: 84.73 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.782e-06/6.802e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2744, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.066/1.341, allocations: 448.3 MB / 1.649 GB, free: 48 kB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/1.341, allocations: 92.19 kB / 1.649 GB, free: 0 / 1.057 GB Notification: Performance of FrontEnd: time 1.597/2.938, allocations: 0.528 GB / 2.177 GB, free: 0.832 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000122/2.938, allocations: 47.92 kB / 2.177 GB, free: 0.7852 MB / 1.151 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.003767/2.942, allocations: 1.914 MB / 2.179 GB, free: 14.82 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/2.942, allocations: 8.031 kB / 2.179 GB, free: 14.81 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/2.944, allocations: 341.4 kB / 2.18 GB, free: 14.47 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003233/2.947, allocations: 1.68 MB / 2.181 GB, free: 12.74 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/2.947, allocations: 117.5 kB / 2.181 GB, free: 12.61 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/2.947, allocations: 64 kB / 2.181 GB, free: 12.55 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001801/2.949, allocations: 0.9959 MB / 2.182 GB, free: 11.55 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/2.951, allocations: 1.15 MB / 2.184 GB, free: 10.31 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/2.951, allocations: 0 / 2.184 GB, free: 10.31 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/2.951, allocations: 4 kB / 2.184 GB, free: 10.31 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.616e-05/2.951, allocations: 45.98 kB / 2.184 GB, free: 10.27 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/2.961, allocations: 7.129 MB / 2.191 GB, free: 2.633 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/2.962, allocations: 0.5744 MB / 2.191 GB, free: 2.047 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006308/2.963, allocations: 382.7 kB / 2.192 GB, free: 1.672 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008974/2.964, allocations: 0.8317 MB / 2.192 GB, free: 0.6562 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/2.964, allocations: 43.22 kB / 2.192 GB, free: 0.6055 MB / 1.167 GB Notification: Performance of pre-optimization done (n=63): time 3.337e-06/2.964, allocations: 0 / 2.192 GB, free: 0.6055 MB / 1.167 GB Notification: Performance of matching and sorting (n=63): time 0.4179/3.382, allocations: 0.8331 MB / 2.193 GB, free: 389.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/3.382, allocations: 107.2 kB / 2.193 GB, free: 389.7 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/3.384, allocations: 1.155 MB / 2.194 GB, free: 389.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002104/3.384, allocations: 32.64 kB / 2.194 GB, free: 389.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/3.385, allocations: 0.5147 MB / 2.195 GB, free: 389.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/3.385, allocations: 207.4 kB / 2.195 GB, free: 389.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/3.385, allocations: 1.031 kB / 2.195 GB, free: 389.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.764e-05/3.385, allocations: 341.7 kB / 2.195 GB, free: 389 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/3.386, allocations: 356.3 kB / 2.196 GB, free: 389 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/3.386, allocations: 0.5896 MB / 2.196 GB, free: 388.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008777/3.387, allocations: 427.2 kB / 2.197 GB, free: 388.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/3.387, allocations: 0 / 2.197 GB, free: 388.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001709/3.389, allocations: 1.039 MB / 2.198 GB, free: 388.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003504/3.389, allocations: 1.865 MB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/3.389, allocations: 7.281 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.97e-05/3.389, allocations: 14.16 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/3.39, allocations: 279.6 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/3.39, allocations: 11.75 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/3.392, allocations: 212.3 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/3.392, allocations: 41.73 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.646e-06/3.392, allocations: 3.938 kB / 2.2 GB, free: 386.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001499/3.393, allocations: 0.8618 MB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/3.394, allocations: 3.594 kB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/3.394, allocations: 10.16 kB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/3.395, allocations: 283.2 kB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/3.395, allocations: 9.438 kB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/3.396, allocations: 184.9 kB / 2.201 GB, free: 386.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/3.396, allocations: 40.78 kB / 2.202 GB, free: 386.6 MB / 1.167 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.0002439/3.396, allocations: 130.5 kB / 2.202 GB, free: 386.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002649/3.396, allocations: 136.4 kB / 2.202 GB, free: 386.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/3.398, allocations: 0.993 MB / 2.203 GB, free: 386.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/3.398, allocations: 7.656 kB / 2.203 GB, free: 386.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/3.398, allocations: 0 / 2.203 GB, free: 386.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/3.4, allocations: 0.8379 MB / 2.204 GB, free: 386.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003762/3.403, allocations: 2.467 MB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/3.403, allocations: 3.5 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/3.404, allocations: 216.4 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/3.404, allocations: 7.672 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.37e-05/3.404, allocations: 15.02 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/3.404, allocations: 7.094 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/3.404, allocations: 7.672 kB / 2.206 GB, free: 385.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00218/3.407, allocations: 1.735 MB / 2.208 GB, free: 385.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/3.407, allocations: 377.2 kB / 2.208 GB, free: 385.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/3.408, allocations: 7.125 kB / 2.208 GB, free: 385.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/3.409, allocations: 136 kB / 2.208 GB, free: 385.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/3.409, allocations: 68.88 kB / 2.208 GB, free: 385.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.861e-05/3.409, allocations: 35.23 kB / 2.209 GB, free: 385.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001153/3.41, allocations: 0.8778 MB / 2.209 GB, free: 385 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002444/3.413, allocations: 0.8437 MB / 2.21 GB, free: 385 MB / 1.167 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.001332/3.414, allocations: 0.7658 MB / 2.211 GB, free: 384.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002143/3.416, allocations: 1.406 MB / 2.212 GB, free: 384.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/3.416, allocations: 0.625 kB / 2.212 GB, free: 384.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0007055/3.417, allocations: 473.4 kB / 2.213 GB, free: 384.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/3.419, allocations: 0.5496 MB / 2.213 GB, free: 384.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/3.423, allocations: 2.098 MB / 2.215 GB, free: 384.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/3.424, allocations: 1.454 MB / 2.217 GB, free: 383.5 MB / 1.167 GB Notification: Performance of SimCode: time 7.51e-07/3.424, allocations: 2.625 kB / 2.217 GB, free: 383.5 MB / 1.167 GB Notification: Performance of Templates: time 0.04967/3.474, allocations: 35.02 MB / 2.251 GB, free: 383 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (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 & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches