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.244/2.244, allocations: 390.5 MB / 398 MB, free: 11 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.001501/0.001501, allocations: 176.9 kB / 491.2 MB, free: 1.617 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.663/1.663, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009472/0.0009472, allocations: 99.52 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.707e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3286, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.426/1.754, allocations: 430.6 MB / 1.633 GB, free: 0.7969 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/1.754, allocations: 90.94 kB / 1.633 GB, free: 0.75 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.933/3.688, allocations: 0.5638 GB / 2.197 GB, free: 0.9609 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.076e-06/3.688, allocations: 3.938 kB / 2.197 GB, free: 0.957 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003769/3.688, allocations: 39.98 kB / 2.197 GB, free: 0.918 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.8275/4.516, allocations: 1.718 MB / 2.198 GB, free: 234.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/4.516, allocations: 12.28 kB / 2.198 GB, free: 234.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/4.517, allocations: 241.7 kB / 2.199 GB, free: 234.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004435/4.522, allocations: 1.704 MB / 2.2 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/4.522, allocations: 33.83 kB / 2.2 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/4.522, allocations: 59.84 kB / 2.2 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001762/4.524, allocations: 0.6959 MB / 2.201 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/4.525, allocations: 0.8775 MB / 2.202 GB, free: 234.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/4.525, allocations: 9.391 kB / 2.202 GB, free: 234.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.759e-05/4.526, allocations: 0.8125 kB / 2.202 GB, free: 234.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.108e-05/4.526, allocations: 38.25 kB / 2.202 GB, free: 234.2 MB / 1.151 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.007464/4.533, allocations: 4.503 MB / 2.206 GB, free: 232.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/4.534, allocations: 0.4938 MB / 2.207 GB, free: 232.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004162/4.535, allocations: 249.3 kB / 2.207 GB, free: 232.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006081/4.535, allocations: 0.8289 MB / 2.208 GB, free: 231.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/4.535, allocations: 42.97 kB / 2.208 GB, free: 231.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=59): time 2.855e-06/4.535, allocations: 0 / 2.208 GB, free: 231.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=59): time 0.004489/4.54, allocations: 1.001 MB / 2.209 GB, free: 231.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/4.54, allocations: 61.89 kB / 2.209 GB, free: 231.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/4.541, allocations: 0.8833 MB / 2.21 GB, free: 231 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001161/4.542, allocations: 27.39 kB / 2.21 GB, free: 231 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005162/4.542, allocations: 0.6335 MB / 2.211 GB, free: 230.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/4.542, allocations: 204.5 kB / 2.211 GB, free: 230.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/4.542, allocations: 0.5625 kB / 2.211 GB, free: 230.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.144e-05/4.542, allocations: 329.5 kB / 2.211 GB, free: 230.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/4.543, allocations: 187.2 kB / 2.211 GB, free: 230.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004704/4.543, allocations: 421.3 kB / 2.212 GB, free: 230.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/4.544, allocations: 273.4 kB / 2.212 GB, free: 230.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/4.544, allocations: 1.375 kB / 2.212 GB, free: 230.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004457/4.548, allocations: 1.135 MB / 2.213 GB, free: 230 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003164/4.549, allocations: 1.416 MB / 2.214 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/4.549, allocations: 7.906 kB / 2.214 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/4.549, allocations: 105.1 kB / 2.214 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006618/4.55, allocations: 161.7 kB / 2.215 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/4.551, allocations: 0.7548 MB / 2.215 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/4.553, allocations: 124 kB / 2.215 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.382e-05/4.553, allocations: 33.06 kB / 2.215 GB, free: 228 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/4.553, allocations: 6.156 kB / 2.216 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004201/4.557, allocations: 0.9777 MB / 2.216 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/4.557, allocations: 4.188 kB / 2.216 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/4.557, allocations: 110.8 kB / 2.217 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/4.558, allocations: 159.4 kB / 2.217 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/4.559, allocations: 0.7539 MB / 2.217 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/4.561, allocations: 108.9 kB / 2.218 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.559e-05/4.561, allocations: 34.73 kB / 2.218 GB, free: 227.5 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.0003384/4.561, allocations: 120.1 kB / 2.218 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003058/4.561, allocations: 121.4 kB / 2.218 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004907/4.566, allocations: 1.109 MB / 2.219 GB, free: 227.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.769e-05/4.566, allocations: 10.47 kB / 2.219 GB, free: 227.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/4.566, allocations: 4.516 kB / 2.219 GB, free: 227.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004149/4.57, allocations: 1.03 MB / 2.22 GB, free: 227 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007341/4.578, allocations: 2.317 MB / 2.222 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/4.578, allocations: 3.625 kB / 2.222 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005702/4.578, allocations: 124.9 kB / 2.222 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003567/4.579, allocations: 106.8 kB / 2.222 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/4.579, allocations: 16.44 kB / 2.222 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/4.582, allocations: 2.164 MB / 2.225 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/4.582, allocations: 4.219 kB / 2.225 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005206/4.588, allocations: 1.682 MB / 2.226 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/4.589, allocations: 308.6 kB / 2.226 GB, free: 224.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/4.589, allocations: 10.06 kB / 2.226 GB, free: 224.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008767/4.59, allocations: 64.14 kB / 2.227 GB, free: 224.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/4.59, allocations: 57.39 kB / 2.227 GB, free: 224.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-05/4.59, allocations: 31.95 kB / 2.227 GB, free: 224.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001306/4.591, allocations: 0.6828 MB / 2.227 GB, free: 224.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.91e-07/4.591, allocations: 0 / 2.227 GB, free: 224.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003883/4.595, allocations: 0.7803 MB / 2.228 GB, free: 224.4 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.001955/4.597, allocations: 0.7915 MB / 2.229 GB, free: 224.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003131/4.6, allocations: 1.02 MB / 2.23 GB, free: 224.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/4.6, allocations: 0.9688 kB / 2.23 GB, free: 224.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001294/4.602, allocations: 0.4915 MB / 2.23 GB, free: 224.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003285/4.605, allocations: 0.5581 MB / 2.231 GB, free: 224.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004685/4.61, allocations: 1.694 MB / 2.233 GB, free: 223.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/4.611, allocations: 1.205 MB / 2.234 GB, free: 222.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002066/4.613, allocations: 345.7 kB / 2.234 GB, free: 222.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/4.613, allocations: 72.31 kB / 2.234 GB, free: 222.8 MB / 1.151 GB Notification: Performance of SimCode: time 9.32e-07/4.613, allocations: 3.75 kB / 2.234 GB, free: 222.8 MB / 1.151 GB Notification: Performance of Templates: time 0.05033/4.664, allocations: 27.53 MB / 2.261 GB, free: 222.4 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