Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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_TCon,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.TSet|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_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,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.TSet|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_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.266/2.266, allocations: 393.5 MB / 408.4 MB, free: 11.13 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.001505/0.001505, allocations: 172 kB / 0.4902 GB, free: 2.324 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.665/1.665, allocations: 223.2 MB / 0.7992 GB, free: 14.7 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.001073/0.001073, allocations: 92.33 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.000403, allocations: 7.688 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3951, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.23/1.625, allocations: 435.4 MB / 1.654 GB, free: 10.91 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004134/1.626, allocations: 96.06 kB / 1.655 GB, free: 10.86 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.1/3.726, allocations: 0.6515 GB / 2.306 GB, free: 14.21 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.412e-06/3.726, allocations: 0 / 2.306 GB, free: 14.21 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002177/3.726, allocations: 31.98 kB / 2.306 GB, free: 14.18 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005282/3.732, allocations: 1.712 MB / 2.308 GB, free: 12.41 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/3.732, allocations: 12.03 kB / 2.308 GB, free: 12.39 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002376/3.734, allocations: 438 kB / 2.308 GB, free: 11.96 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003622/3.738, allocations: 1.32 MB / 2.309 GB, free: 10.59 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003556/3.738, allocations: 130.1 kB / 2.31 GB, free: 10.46 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/3.739, allocations: 80 kB / 2.31 GB, free: 10.38 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/3.741, allocations: 1.002 MB / 2.311 GB, free: 9.336 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/3.741, allocations: 0 / 2.311 GB, free: 9.336 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-05/3.741, allocations: 32 kB / 2.311 GB, free: 9.305 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/3.741, allocations: 30 kB / 2.311 GB, free: 9.273 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/3.743, allocations: 0.9055 MB / 2.312 GB, free: 8.367 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.005856/3.749, allocations: 4.719 MB / 2.316 GB, free: 3.32 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003222/3.752, allocations: 0.882 MB / 2.317 GB, free: 2.43 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004735/3.753, allocations: 0.9064 MB / 2.318 GB, free: 1.32 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/3.753, allocations: 42.56 kB / 2.318 GB, free: 1.27 MB / 1.167 GB Notification: Performance of pre-optimization done (n=42): time 3.065e-06/3.753, allocations: 0 / 2.318 GB, free: 1.27 MB / 1.167 GB Notification: Performance of matching and sorting (n=42): time 0.8092/4.562, allocations: 2.001 MB / 2.32 GB, free: 252.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/4.562, allocations: 59.59 kB / 2.32 GB, free: 252.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/4.564, allocations: 0.9519 MB / 2.321 GB, free: 252.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/4.564, allocations: 37.08 kB / 2.321 GB, free: 252.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/4.564, allocations: 0.5346 MB / 2.321 GB, free: 252.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/4.564, allocations: 144.2 kB / 2.322 GB, free: 252.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/4.564, allocations: 14.84 kB / 2.322 GB, free: 252.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.549e-05/4.565, allocations: 325.6 kB / 2.322 GB, free: 251.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007851/4.565, allocations: 297.9 kB / 2.322 GB, free: 251.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000925/4.566, allocations: 0.5455 MB / 2.323 GB, free: 251.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008729/4.567, allocations: 341.4 kB / 2.323 GB, free: 251.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/4.567, allocations: 4.781 kB / 2.323 GB, free: 251.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004114/4.571, allocations: 1.218 MB / 2.324 GB, free: 251.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003866/4.572, allocations: 1.673 MB / 2.326 GB, free: 249.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/4.572, allocations: 3.844 kB / 2.326 GB, free: 249.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/4.573, allocations: 356.8 kB / 2.326 GB, free: 249.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005455/4.574, allocations: 119.4 kB / 2.326 GB, free: 249.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/4.575, allocations: 0.9765 MB / 2.327 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/4.577, allocations: 191 kB / 2.327 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.202e-05/4.577, allocations: 35.56 kB / 2.328 GB, free: 249.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/4.577, allocations: 3.875 kB / 2.328 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003962/4.581, allocations: 1.094 MB / 2.329 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/4.581, allocations: 5.188 kB / 2.329 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/4.582, allocations: 358.5 kB / 2.329 GB, free: 249.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/4.583, allocations: 119.7 kB / 2.329 GB, free: 249.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/4.584, allocations: 0.9621 MB / 2.33 GB, free: 248.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/4.586, allocations: 170.1 kB / 2.33 GB, free: 248.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.489e-05/4.586, allocations: 35.38 kB / 2.33 GB, free: 248.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (46): * Single equations (assignments): 45 * 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 {2 15} Notification: Performance of prepare postOptimizeDAE: time 0.000866/4.586, allocations: 357.1 kB / 2.331 GB, free: 248.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/4.587, allocations: 111.5 kB / 2.331 GB, free: 248.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004331/4.591, allocations: 1.168 MB / 2.332 GB, free: 248.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/4.591, allocations: 5.891 kB / 2.332 GB, free: 248.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/4.591, allocations: 1.875 kB / 2.332 GB, free: 248.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/4.591, allocations: 5.969 kB / 2.332 GB, free: 248.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005764/4.597, allocations: 2.226 MB / 2.334 GB, free: 247.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/4.597, allocations: 3.281 kB / 2.334 GB, free: 247.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/4.597, allocations: 65.75 kB / 2.334 GB, free: 247.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/4.598, allocations: 356.2 kB / 2.334 GB, free: 247.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/4.599, allocations: 16.03 kB / 2.334 GB, free: 247.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/4.6, allocations: 0.9996 MB / 2.335 GB, free: 247.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/4.6, allocations: 6.219 kB / 2.335 GB, free: 247.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003814/4.604, allocations: 1.363 MB / 2.337 GB, free: 246.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/4.605, allocations: 283.3 kB / 2.337 GB, free: 246.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/4.605, allocations: 14.81 kB / 2.337 GB, free: 246.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000915/4.606, allocations: 117.1 kB / 2.337 GB, free: 246.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/4.606, allocations: 34.19 kB / 2.337 GB, free: 246.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-05/4.606, allocations: 22.88 kB / 2.337 GB, free: 246.8 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001454/4.607, allocations: 0.748 MB / 2.338 GB, free: 246.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/4.607, allocations: 0 / 2.338 GB, free: 246.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002266/4.61, allocations: 0.6225 MB / 2.338 GB, free: 246.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 simulation (31): * Single equations (assignments): 26 * 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 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/4.611, allocations: 0.668 MB / 2.339 GB, free: 246.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003691/4.615, allocations: 1.155 MB / 2.34 GB, free: 246.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/4.615, allocations: 0 / 2.34 GB, free: 246.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00115/4.616, allocations: 379.5 kB / 2.341 GB, free: 246.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/4.619, allocations: 0.5051 MB / 2.341 GB, free: 246.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006396/4.625, allocations: 2.464 MB / 2.344 GB, free: 245.5 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008681/4.626, allocations: 1.085 MB / 2.345 GB, free: 244.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001249/4.627, allocations: 207.9 kB / 2.345 GB, free: 244.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/4.627, allocations: 78.84 kB / 2.345 GB, free: 244.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.583e-06/4.627, allocations: 0 / 2.345 GB, free: 244.7 MB / 1.167 GB Notification: Performance of Templates: time 0.0415/4.669, allocations: 26.7 MB / 2.371 GB, free: 244.3 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches