Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") [: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.97/1.97, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001042/0.001042, allocations: 185.2 kB / 490.8 MB, free: 1.965 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.328/1.328, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0009584/0.0009582, allocations: 89.92 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.372e-06, allocations: 0 / 1.072 GB, free: 182.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2853, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9776/1.263, allocations: 430.5 MB / 1.632 GB, free: 1.5 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/1.263, allocations: 88.27 kB / 1.632 GB, free: 1.457 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.063/3.326, allocations: 0.5671 GB / 2.199 GB, free: 235.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001437/3.326, allocations: 42.28 kB / 2.199 GB, free: 235.8 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003216/3.33, allocations: 1.751 MB / 2.201 GB, free: 235.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/3.33, allocations: 7.438 kB / 2.201 GB, free: 235.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/3.33, allocations: 246.2 kB / 2.201 GB, free: 235.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002846/3.333, allocations: 1.719 MB / 2.203 GB, free: 234.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/3.333, allocations: 31.47 kB / 2.203 GB, free: 234.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/3.334, allocations: 67.25 kB / 2.203 GB, free: 234.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001129/3.335, allocations: 0.705 MB / 2.204 GB, free: 234.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/3.336, allocations: 0.8862 MB / 2.204 GB, free: 234.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/3.336, allocations: 0 / 2.204 GB, free: 234.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.453e-05/3.336, allocations: 0 / 2.204 GB, free: 234.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/3.336, allocations: 47.8 kB / 2.204 GB, free: 234.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005607/3.342, allocations: 5.051 MB / 2.209 GB, free: 232.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008286/3.343, allocations: 472.9 kB / 2.21 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/3.343, allocations: 259.8 kB / 2.21 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004565/3.343, allocations: 0.8286 MB / 2.211 GB, free: 231.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/3.343, allocations: 39.38 kB / 2.211 GB, free: 231.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=59): time 2.274e-06/3.343, allocations: 0 / 2.211 GB, free: 231.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=59): time 0.004082/3.347, allocations: 1.038 MB / 2.212 GB, free: 231.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/3.348, allocations: 59.44 kB / 2.212 GB, free: 231.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/3.349, allocations: 0.8899 MB / 2.213 GB, free: 231.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/3.349, allocations: 29.52 kB / 2.213 GB, free: 231.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/3.349, allocations: 444.2 kB / 2.213 GB, free: 231 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/3.349, allocations: 198.3 kB / 2.214 GB, free: 230.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/3.349, allocations: 0 / 2.214 GB, free: 230.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.429e-05/3.349, allocations: 331.5 kB / 2.214 GB, free: 230.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/3.349, allocations: 190.6 kB / 2.214 GB, free: 230.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/3.35, allocations: 429.3 kB / 2.214 GB, free: 230.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005654/3.35, allocations: 277.8 kB / 2.215 GB, free: 230.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/3.35, allocations: 6.594 kB / 2.215 GB, free: 230.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004003/3.354, allocations: 1.172 MB / 2.216 GB, free: 230.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003022/3.355, allocations: 1.405 MB / 2.217 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/3.355, allocations: 7.281 kB / 2.217 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004006/3.355, allocations: 104.8 kB / 2.217 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/3.356, allocations: 163 kB / 2.217 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/3.357, allocations: 0.8025 MB / 2.218 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/3.358, allocations: 129.5 kB / 2.218 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.769e-05/3.358, allocations: 35.86 kB / 2.218 GB, free: 228.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.637e-06/3.358, allocations: 6.469 kB / 2.218 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003914/3.362, allocations: 1.02 MB / 2.219 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/3.362, allocations: 4.656 kB / 2.219 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003265/3.363, allocations: 109.2 kB / 2.22 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006016/3.363, allocations: 163.8 kB / 2.22 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/3.364, allocations: 0.8006 MB / 2.22 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/3.366, allocations: 112.7 kB / 2.221 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/3.366, allocations: 34.45 kB / 2.221 GB, free: 227.7 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaPum.COP:VARIABLE(min = 0.0 unit = "1" ) "Coefficient of performance" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002647/3.366, allocations: 128.5 kB / 2.221 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/3.366, allocations: 119.5 kB / 2.221 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/3.371, allocations: 1.174 MB / 2.222 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/3.371, allocations: 11.27 kB / 2.222 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/3.371, allocations: 3.312 kB / 2.222 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00374/3.374, allocations: 1.077 MB / 2.223 GB, free: 227.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006072/3.38, allocations: 2.365 MB / 2.225 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/3.38, allocations: 3.656 kB / 2.225 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/3.381, allocations: 130.2 kB / 2.226 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000313/3.381, allocations: 106.2 kB / 2.226 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/3.381, allocations: 12.56 kB / 2.226 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/3.385, allocations: 2.124 MB / 2.228 GB, free: 225.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/3.385, allocations: 9.875 kB / 2.228 GB, free: 225.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004671/3.39, allocations: 1.735 MB / 2.229 GB, free: 225 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008094/3.39, allocations: 307 kB / 2.23 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/3.391, allocations: 3.719 kB / 2.23 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008241/3.391, allocations: 73 kB / 2.23 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/3.391, allocations: 48.25 kB / 2.23 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/3.392, allocations: 29.14 kB / 2.23 GB, free: 224.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001019/3.393, allocations: 0.6816 MB / 2.231 GB, free: 224.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002389/3.395, allocations: 0.7901 MB / 2.231 GB, free: 224.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001388/3.396, allocations: 0.7934 MB / 2.232 GB, free: 224.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002508/3.399, allocations: 1.049 MB / 2.233 GB, free: 224.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/3.399, allocations: 0 / 2.233 GB, free: 224.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001035/3.4, allocations: 491.8 kB / 2.234 GB, free: 224.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/3.402, allocations: 0.5457 MB / 2.234 GB, free: 224.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/3.406, allocations: 1.741 MB / 2.236 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008682/3.407, allocations: 1.305 MB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.984e-06/3.407, allocations: 2.344 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of Templates: time 0.04386/3.451, allocations: 30.39 MB / 2.267 GB, free: 222.6 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_y.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches