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.221/2.221, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001092/0.001092, allocations: 175.9 kB / 0.4902 GB, free: 2.246 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.541/1.541, allocations: 223.2 MB / 0.7992 GB, free: 14.68 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.001004/0.001004, allocations: 92.31 kB / 0.9396 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004027, allocations: 10.66 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2969, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.114/1.411, allocations: 431.3 MB / 1.65 GB, free: 14.91 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/1.412, allocations: 96.17 kB / 1.65 GB, free: 14.86 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.055/3.466, allocations: 0.5683 GB / 2.219 GB, free: 83.88 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.824e-06/3.466, allocations: 0 / 2.219 GB, free: 83.88 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002526/3.467, allocations: 35.98 kB / 2.219 GB, free: 83.84 MB / 1.167 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.006216/3.473, allocations: 2.017 MB / 2.221 GB, free: 81.76 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/3.473, allocations: 8.031 kB / 2.221 GB, free: 81.75 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/3.474, allocations: 237.9 kB / 2.221 GB, free: 81.52 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00444/3.479, allocations: 1.727 MB / 2.223 GB, free: 79.73 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.069e-05/3.479, allocations: 78 kB / 2.223 GB, free: 79.66 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/3.479, allocations: 107.9 kB / 2.223 GB, free: 79.55 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/3.481, allocations: 1.096 MB / 2.224 GB, free: 78.42 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/3.481, allocations: 3.938 kB / 2.224 GB, free: 78.42 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.76e-05/3.481, allocations: 36 kB / 2.224 GB, free: 78.38 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.209e-05/3.482, allocations: 38 kB / 2.224 GB, free: 78.35 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/3.483, allocations: 0.9095 MB / 2.225 GB, free: 77.43 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.005948/3.489, allocations: 4.727 MB / 2.23 GB, free: 72.47 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/3.49, allocations: 0.6175 MB / 2.23 GB, free: 71.84 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004827/3.491, allocations: 0.8316 MB / 2.231 GB, free: 70.82 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/3.491, allocations: 35.12 kB / 2.231 GB, free: 70.78 MB / 1.167 GB Notification: Performance of pre-optimization done (n=59): time 3.336e-06/3.491, allocations: 4 kB / 2.231 GB, free: 70.78 MB / 1.167 GB Notification: Performance of matching and sorting (n=59): time 0.007085/3.498, allocations: 1.838 MB / 2.233 GB, free: 68.91 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/3.498, allocations: 55.97 kB / 2.233 GB, free: 68.84 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/3.5, allocations: 1.118 MB / 2.234 GB, free: 67.71 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001325/3.5, allocations: 41.64 kB / 2.234 GB, free: 67.66 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004251/3.5, allocations: 0.634 MB / 2.235 GB, free: 67.02 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/3.5, allocations: 201 kB / 2.235 GB, free: 66.82 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/3.501, allocations: 16 kB / 2.235 GB, free: 66.81 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.906e-05/3.501, allocations: 337.9 kB / 2.235 GB, free: 66.47 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005785/3.501, allocations: 269.1 kB / 2.235 GB, free: 66.21 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006738/3.502, allocations: 0.5016 MB / 2.236 GB, free: 65.61 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/3.503, allocations: 338 kB / 2.236 GB, free: 65.28 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/3.503, allocations: 0 / 2.236 GB, free: 65.28 MB / 1.167 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004443/3.507, allocations: 1.345 MB / 2.238 GB, free: 63.93 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002849/3.507, allocations: 1.423 MB / 2.239 GB, free: 62.42 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/3.507, allocations: 4 kB / 2.239 GB, free: 62.42 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005686/3.508, allocations: 152.7 kB / 2.239 GB, free: 62.27 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006011/3.508, allocations: 155.8 kB / 2.239 GB, free: 62.11 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007326/3.509, allocations: 0.7124 MB / 2.24 GB, free: 61.38 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/3.511, allocations: 166.9 kB / 2.24 GB, free: 61.21 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.012e-05/3.511, allocations: 47.88 kB / 2.24 GB, free: 61.16 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/3.511, allocations: 4.781 kB / 2.24 GB, free: 61.16 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004077/3.515, allocations: 1.189 MB / 2.241 GB, free: 59.97 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/3.515, allocations: 4 kB / 2.241 GB, free: 59.96 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004649/3.515, allocations: 149 kB / 2.241 GB, free: 59.82 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/3.516, allocations: 151.8 kB / 2.242 GB, free: 59.67 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006458/3.517, allocations: 0.7162 MB / 2.242 GB, free: 58.93 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/3.518, allocations: 147.2 kB / 2.242 GB, free: 58.78 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-05/3.518, allocations: 35.98 kB / 2.242 GB, free: 58.75 MB / 1.167 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 () * Number of clocked 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.0008253/3.519, allocations: 421.1 kB / 2.243 GB, free: 58.32 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/3.519, allocations: 138.3 kB / 2.243 GB, free: 58.19 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004366/3.524, allocations: 1.325 MB / 2.244 GB, free: 56.85 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/3.524, allocations: 7.984 kB / 2.244 GB, free: 56.84 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/3.524, allocations: 4 kB / 2.244 GB, free: 56.84 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003939/3.528, allocations: 1.213 MB / 2.245 GB, free: 55.59 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006691/3.534, allocations: 2.671 MB / 2.248 GB, free: 52.82 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/3.534, allocations: 7.953 kB / 2.248 GB, free: 52.81 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005056/3.535, allocations: 115.9 kB / 2.248 GB, free: 52.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004628/3.535, allocations: 144.9 kB / 2.248 GB, free: 52.55 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.684e-05/3.535, allocations: 19.98 kB / 2.248 GB, free: 52.54 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004306/3.54, allocations: 2.544 MB / 2.251 GB, free: 49.84 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/3.54, allocations: 4 kB / 2.251 GB, free: 49.83 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005235/3.545, allocations: 1.988 MB / 2.253 GB, free: 47.65 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000904/3.546, allocations: 331.1 kB / 2.253 GB, free: 47.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/3.546, allocations: 12.06 kB / 2.253 GB, free: 47.29 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008742/3.547, allocations: 95.77 kB / 2.253 GB, free: 47.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/3.547, allocations: 56.25 kB / 2.253 GB, free: 47.14 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/3.547, allocations: 36.08 kB / 2.253 GB, free: 47.11 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001275/3.548, allocations: 0.8979 MB / 2.254 GB, free: 46.21 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.8e-07/3.548, allocations: 4 kB / 2.254 GB, free: 46.21 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002282/3.551, allocations: 0.7993 MB / 2.255 GB, free: 45.41 MB / 1.167 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 () * Number of clocked 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.001282/3.552, allocations: 0.7821 MB / 2.256 GB, free: 44.64 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002361/3.554, allocations: 1.093 MB / 2.257 GB, free: 43.55 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/3.554, allocations: 0 / 2.257 GB, free: 43.55 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001331/3.556, allocations: 0.5878 MB / 2.257 GB, free: 42.95 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/3.559, allocations: 0.7583 MB / 2.258 GB, free: 42.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/3.563, allocations: 2.754 MB / 2.261 GB, free: 39.38 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/3.564, allocations: 1.202 MB / 2.262 GB, free: 38.15 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001298/3.565, allocations: 302.9 kB / 2.262 GB, free: 37.85 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/3.565, allocations: 107.4 kB / 2.262 GB, free: 37.75 MB / 1.167 GB Notification: Performance of SimCode: time 1.253e-06/3.565, allocations: 0 / 2.262 GB, free: 37.75 MB / 1.167 GB Notification: Performance of Templates: time 0.04977/3.615, allocations: 33.38 MB / 2.295 GB, free: 4.676 MB / 1.167 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