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.344/2.344, allocations: 390.5 MB / 398 MB, free: 10.94 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.001317/0.001317, allocations: 184.8 kB / 491.2 MB, free: 1.551 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.765/1.765, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.001024/0.001024, allocations: 95.56 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.603e-05/1.638e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3259, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.312/1.638, allocations: 434.7 MB / 1.637 GB, free: 12.52 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/1.639, allocations: 90.94 kB / 1.637 GB, free: 12.47 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.789/4.428, allocations: 0.6464 GB / 2.283 GB, free: 267.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.344e-06/4.428, allocations: 0 / 2.283 GB, free: 267.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001772/4.428, allocations: 33.95 kB / 2.283 GB, free: 267.3 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003644/4.432, allocations: 1.484 MB / 2.285 GB, free: 266.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/4.432, allocations: 7.875 kB / 2.285 GB, free: 266.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/4.434, allocations: 447 kB / 2.285 GB, free: 266.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/4.438, allocations: 1.301 MB / 2.287 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003553/4.438, allocations: 98.25 kB / 2.287 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/4.438, allocations: 51.53 kB / 2.287 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001425/4.44, allocations: 0.6308 MB / 2.287 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/4.441, allocations: 0.7588 MB / 2.288 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/4.441, allocations: 0 / 2.288 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.572e-05/4.441, allocations: 3.953 kB / 2.288 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.676e-05/4.441, allocations: 30.89 kB / 2.288 GB, free: 266.1 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.005746/4.447, allocations: 4.536 MB / 2.292 GB, free: 263.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/4.449, allocations: 0.6618 MB / 2.293 GB, free: 263.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/4.45, allocations: 194.5 kB / 2.293 GB, free: 263.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004695/4.45, allocations: 0.917 MB / 2.294 GB, free: 262.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/4.45, allocations: 37.86 kB / 2.294 GB, free: 262.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=42): time 2.274e-06/4.45, allocations: 0 / 2.294 GB, free: 262.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=42): time 0.002767/4.453, allocations: 0.7492 MB / 2.295 GB, free: 262.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.132e-05/4.453, allocations: 55.22 kB / 2.295 GB, free: 262.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/4.454, allocations: 0.7413 MB / 2.296 GB, free: 262.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.087e-05/4.454, allocations: 31.83 kB / 2.296 GB, free: 262.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/4.454, allocations: 0.5409 MB / 2.296 GB, free: 262 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/4.454, allocations: 139.1 kB / 2.296 GB, free: 262 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.164e-05/4.455, allocations: 0 / 2.296 GB, free: 262 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.817e-05/4.455, allocations: 325.8 kB / 2.297 GB, free: 261.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/4.455, allocations: 171.3 kB / 2.297 GB, free: 261.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/4.455, allocations: 414.4 kB / 2.297 GB, free: 261.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/4.456, allocations: 261.4 kB / 2.298 GB, free: 261.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/4.456, allocations: 0 / 2.298 GB, free: 261.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002861/4.459, allocations: 0.9229 MB / 2.298 GB, free: 261.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000341/4.459, allocations: 1.662 MB / 2.3 GB, free: 259.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/4.459, allocations: 3.938 kB / 2.3 GB, free: 259.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006498/4.46, allocations: 230.9 kB / 2.3 GB, free: 259.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000477/4.46, allocations: 121.7 kB / 2.3 GB, free: 259.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009074/4.461, allocations: 0.8744 MB / 2.301 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/4.463, allocations: 168.5 kB / 2.301 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.156e-05/4.463, allocations: 34.16 kB / 2.301 GB, free: 259 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/4.463, allocations: 3.688 kB / 2.301 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002636/4.465, allocations: 0.7733 MB / 2.302 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/4.465, allocations: 9.578 kB / 2.302 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006419/4.466, allocations: 234.2 kB / 2.302 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/4.467, allocations: 120.9 kB / 2.303 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008506/4.467, allocations: 0.8521 MB / 2.303 GB, free: 258.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/4.469, allocations: 141.9 kB / 2.304 GB, free: 258.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/4.469, allocations: 33.52 kB / 2.304 GB, free: 258.4 MB / 1.151 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 () * 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.0002702/4.469, allocations: 122.1 kB / 2.304 GB, free: 258.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003784/4.47, allocations: 100.1 kB / 2.304 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/4.473, allocations: 0.9043 MB / 2.305 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/4.473, allocations: 7.734 kB / 2.305 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/4.473, allocations: 3.594 kB / 2.305 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/4.473, allocations: 3.953 kB / 2.305 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004863/4.478, allocations: 1.885 MB / 2.307 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/4.478, allocations: 3.531 kB / 2.307 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/4.478, allocations: 69.92 kB / 2.307 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000592/4.479, allocations: 240.9 kB / 2.307 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/4.479, allocations: 6.906 kB / 2.307 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008696/4.48, allocations: 0.8971 MB / 2.308 GB, free: 257.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/4.48, allocations: 4.188 kB / 2.308 GB, free: 257.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/4.482, allocations: 1.111 MB / 2.309 GB, free: 256.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005636/4.483, allocations: 259.3 kB / 2.309 GB, free: 256.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/4.483, allocations: 7.828 kB / 2.309 GB, free: 256.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009241/4.484, allocations: 100.2 kB / 2.309 GB, free: 256.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/4.484, allocations: 37.88 kB / 2.309 GB, free: 256.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/4.484, allocations: 22.56 kB / 2.309 GB, free: 256.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008999/4.485, allocations: 0.5724 MB / 2.31 GB, free: 256.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/4.485, allocations: 0 / 2.31 GB, free: 256.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002264/4.487, allocations: 0.6093 MB / 2.31 GB, free: 256.5 MB / 1.151 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 () * 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.001293/4.489, allocations: 0.682 MB / 2.311 GB, free: 256.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001649/4.49, allocations: 0.7895 MB / 2.312 GB, free: 256.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/4.49, allocations: 0 / 2.312 GB, free: 256.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004348/4.491, allocations: 270.8 kB / 2.312 GB, free: 256.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/4.493, allocations: 386.9 kB / 2.312 GB, free: 256.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/4.497, allocations: 1.529 MB / 2.314 GB, free: 255.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/4.498, allocations: 1.09 MB / 2.315 GB, free: 255.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001231/4.499, allocations: 234.2 kB / 2.315 GB, free: 255.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/4.499, allocations: 51.8 kB / 2.315 GB, free: 255.1 MB / 1.151 GB Notification: Performance of SimCode: time 5.72e-07/4.499, allocations: 2.969 kB / 2.315 GB, free: 255.1 MB / 1.151 GB Notification: Performance of Templates: time 0.03693/4.536, allocations: 23.09 MB / 2.338 GB, free: 254.3 MB / 1.151 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