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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.285/2.285, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.001562/0.001562, allocations: 172.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.617/1.617, allocations: 221.3 MB / 0.7915 GB, free: 5.387 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.0008722/0.0008724, allocations: 103.1 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.165e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3467, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.481/1.828, allocations: 431.2 MB / 1.64 GB, free: 3.23 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/1.829, allocations: 91.94 kB / 1.64 GB, free: 3.141 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 2.749/4.577, allocations: 0.5666 GB / 2.207 GB, free: 239.9 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.633e-06/4.578, allocations: 3.375 kB / 2.207 GB, free: 239.9 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001625/4.578, allocations: 39.23 kB / 2.207 GB, free: 239.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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003702/4.581, allocations: 1.73 MB / 2.208 GB, free: 239.3 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/4.581, allocations: 10.62 kB / 2.208 GB, free: 239.3 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008309/4.582, allocations: 246 kB / 2.208 GB, free: 239.2 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/4.585, allocations: 1.697 MB / 2.21 GB, free: 238.9 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/4.585, allocations: 74.34 kB / 2.21 GB, free: 238.9 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/4.585, allocations: 103.8 kB / 2.21 GB, free: 238.9 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/4.587, allocations: 1.01 MB / 2.211 GB, free: 238.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/4.587, allocations: 11 kB / 2.211 GB, free: 238.7 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.139e-05/4.587, allocations: 42.44 kB / 2.211 GB, free: 238.7 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.181e-05/4.587, allocations: 43.72 kB / 2.211 GB, free: 238.7 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/4.588, allocations: 0.7583 MB / 2.212 GB, free: 238.7 MB / 1.135 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005106/4.593, allocations: 4.721 MB / 2.217 GB, free: 236.9 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/4.594, allocations: 0.5195 MB / 2.217 GB, free: 236.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/4.594, allocations: 279.8 kB / 2.218 GB, free: 236.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004621/4.595, allocations: 0.8254 MB / 2.218 GB, free: 235.9 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/4.595, allocations: 45.05 kB / 2.218 GB, free: 235.8 MB / 1.135 GB Notification: Performance of pre-optimization done (n=59): time 4.197e-06/4.595, allocations: 3.797 kB / 2.218 GB, free: 235.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=59): time 0.003684/4.599, allocations: 1.026 MB / 2.219 GB, free: 235.7 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/4.599, allocations: 59.62 kB / 2.219 GB, free: 235.6 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/4.6, allocations: 1.1 MB / 2.221 GB, free: 235.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 8.755e-05/4.6, allocations: 37.42 kB / 2.221 GB, free: 235.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/4.601, allocations: 0.6344 MB / 2.221 GB, free: 235.3 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/4.601, allocations: 204.6 kB / 2.221 GB, free: 235.2 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/4.601, allocations: 17.69 kB / 2.221 GB, free: 235.2 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.046e-05/4.601, allocations: 330.8 kB / 2.222 GB, free: 234.9 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/4.601, allocations: 196.9 kB / 2.222 GB, free: 234.9 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/4.602, allocations: 443.3 kB / 2.222 GB, free: 234.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/4.602, allocations: 268.2 kB / 2.223 GB, free: 234.6 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/4.602, allocations: 0 / 2.223 GB, free: 234.6 MB / 1.135 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003725/4.606, allocations: 1.192 MB / 2.224 GB, free: 234.5 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002421/4.606, allocations: 1.424 MB / 2.225 GB, free: 233 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/4.606, allocations: 3.938 kB / 2.225 GB, free: 233 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/4.606, allocations: 116.2 kB / 2.225 GB, free: 233 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005741/4.607, allocations: 151.9 kB / 2.225 GB, free: 233 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004644/4.607, allocations: 0.6624 MB / 2.226 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/4.609, allocations: 164.6 kB / 2.226 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/4.609, allocations: 30.09 kB / 2.226 GB, free: 232.5 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/4.609, allocations: 3.844 kB / 2.226 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003494/4.612, allocations: 1.031 MB / 2.227 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/4.612, allocations: 5.469 kB / 2.227 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/4.613, allocations: 114.4 kB / 2.227 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/4.613, allocations: 151.2 kB / 2.227 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004292/4.614, allocations: 0.6753 MB / 2.228 GB, free: 231.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/4.615, allocations: 151.6 kB / 2.228 GB, free: 231.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/4.615, allocations: 33.41 kB / 2.228 GB, free: 231.9 MB / 1.135 GB 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.0001951/4.615, allocations: 146.7 kB / 2.228 GB, free: 231.8 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/4.615, allocations: 137.1 kB / 2.229 GB, free: 231.7 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/4.619, allocations: 1.168 MB / 2.23 GB, free: 231.6 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/4.619, allocations: 13.25 kB / 2.23 GB, free: 231.6 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/4.619, allocations: 2.844 kB / 2.23 GB, free: 231.6 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003272/4.622, allocations: 1.053 MB / 2.231 GB, free: 231.4 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006104/4.628, allocations: 2.498 MB / 2.233 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/4.629, allocations: 3.875 kB / 2.233 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004588/4.629, allocations: 124.2 kB / 2.233 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002883/4.629, allocations: 111 kB / 2.233 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/4.629, allocations: 15.19 kB / 2.233 GB, free: 231 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003088/4.632, allocations: 2.239 MB / 2.236 GB, free: 229.6 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/4.632, allocations: 5.125 kB / 2.236 GB, free: 229.6 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004182/4.637, allocations: 1.766 MB / 2.237 GB, free: 228.9 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008044/4.637, allocations: 333.6 kB / 2.238 GB, free: 228.8 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/4.638, allocations: 18.53 kB / 2.238 GB, free: 228.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008139/4.638, allocations: 78.73 kB / 2.238 GB, free: 228.8 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/4.639, allocations: 60.31 kB / 2.238 GB, free: 228.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/4.639, allocations: 35.61 kB / 2.238 GB, free: 228.8 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.001265/4.64, allocations: 0.8783 MB / 2.239 GB, free: 228.6 MB / 1.135 GB Notification: Performance of sort global known variables: time 3.71e-07/4.64, allocations: 0 / 2.239 GB, free: 228.6 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.00218/4.642, allocations: 0.7909 MB / 2.239 GB, free: 228.5 MB / 1.135 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.001366/4.643, allocations: 0.801 MB / 2.24 GB, free: 228.3 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001679/4.645, allocations: 0.9241 MB / 2.241 GB, free: 228.3 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/4.645, allocations: 3.438 kB / 2.241 GB, free: 228.3 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/4.646, allocations: 0.5148 MB / 2.242 GB, free: 228.2 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/4.65, allocations: 0.759 MB / 2.242 GB, free: 228.2 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/4.653, allocations: 1.773 MB / 2.244 GB, free: 227.6 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/4.653, allocations: 1.205 MB / 2.245 GB, free: 226.9 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.001668/4.655, allocations: 395.3 kB / 2.246 GB, free: 226.9 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/4.655, allocations: 83.03 kB / 2.246 GB, free: 226.9 MB / 1.135 GB Notification: Performance of SimCode: time 9.31e-07/4.655, allocations: 0 / 2.246 GB, free: 226.9 MB / 1.135 GB Notification: Performance of Templates: time 0.04854/4.704, allocations: 36.47 MB / 2.281 GB, free: 225.4 MB / 1.135 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