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.32/2.32, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.00127/0.001271, allocations: 176.9 kB / 496.1 MB, free: 12.88 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.64/1.64, allocations: 221.3 MB / 0.7915 GB, free: 5.461 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.001034/0.001034, allocations: 79.97 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.054e-05/3.056e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3266, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.314/1.64, allocations: 435.4 MB / 1.644 GB, free: 15.14 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003337/1.641, allocations: 91.94 kB / 1.644 GB, free: 15.05 MB / 1.104 GB Notification: Performance of FrontEnd - DAE generated: time 2.603/4.244, allocations: 0.6494 GB / 2.293 GB, free: 241.7 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.052e-06/4.244, allocations: 0 / 2.293 GB, free: 241.7 MB / 1.135 GB Notification: Performance of Transformations before backend: time 9.703e-05/4.244, allocations: 38.36 kB / 2.293 GB, free: 241.7 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002362/4.247, allocations: 1.482 MB / 2.295 GB, free: 240.6 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/4.247, allocations: 11.31 kB / 2.295 GB, free: 240.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/4.249, allocations: 437 kB / 2.295 GB, free: 240.4 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/4.251, allocations: 1.309 MB / 2.297 GB, free: 239.5 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003223/4.252, allocations: 123.3 kB / 2.297 GB, free: 239.4 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/4.252, allocations: 84.56 kB / 2.297 GB, free: 239.4 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/4.253, allocations: 0.868 MB / 2.298 GB, free: 238.9 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/4.253, allocations: 4.453 kB / 2.298 GB, free: 238.9 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.238e-05/4.253, allocations: 34.69 kB / 2.298 GB, free: 238.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/4.253, allocations: 30.83 kB / 2.298 GB, free: 238.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009793/4.254, allocations: 0.6519 MB / 2.298 GB, free: 238.5 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.005021/4.259, allocations: 4.715 MB / 2.303 GB, free: 234.4 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/4.261, allocations: 0.6849 MB / 2.304 GB, free: 234.1 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/4.262, allocations: 209.5 kB / 2.304 GB, free: 234.1 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004458/4.262, allocations: 0.908 MB / 2.305 GB, free: 233 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/4.262, allocations: 40.12 kB / 2.305 GB, free: 232.9 MB / 1.135 GB Notification: Performance of pre-optimization done (n=42): time 2.324e-06/4.262, allocations: 0 / 2.305 GB, free: 232.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=42): time 0.003263/4.266, allocations: 0.7506 MB / 2.305 GB, free: 232.6 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/4.266, allocations: 58.44 kB / 2.306 GB, free: 232.5 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/4.267, allocations: 0.9115 MB / 2.306 GB, free: 232.1 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001162/4.267, allocations: 45.05 kB / 2.306 GB, free: 232 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004041/4.268, allocations: 0.5361 MB / 2.307 GB, free: 231.5 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/4.268, allocations: 144.1 kB / 2.307 GB, free: 231.4 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/4.268, allocations: 11.78 kB / 2.307 GB, free: 231.4 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.249e-05/4.268, allocations: 325.8 kB / 2.307 GB, free: 231.1 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/4.269, allocations: 179.1 kB / 2.308 GB, free: 231 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/4.269, allocations: 424 kB / 2.308 GB, free: 230.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/4.27, allocations: 227.2 kB / 2.308 GB, free: 230.5 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/4.27, allocations: 0 / 2.308 GB, free: 230.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00362/4.273, allocations: 0.9324 MB / 2.309 GB, free: 230.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004617/4.274, allocations: 1.668 MB / 2.311 GB, free: 228.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/4.274, allocations: 6.719 kB / 2.311 GB, free: 228.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/4.275, allocations: 259.9 kB / 2.311 GB, free: 228.2 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/4.275, allocations: 121.8 kB / 2.311 GB, free: 228.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000746/4.276, allocations: 0.8211 MB / 2.312 GB, free: 227.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/4.277, allocations: 200.2 kB / 2.312 GB, free: 227.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.057e-05/4.277, allocations: 33.77 kB / 2.312 GB, free: 227.4 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/4.277, allocations: 3.594 kB / 2.312 GB, free: 227.4 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00252/4.28, allocations: 0.8053 MB / 2.313 GB, free: 227 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/4.28, allocations: 3.625 kB / 2.313 GB, free: 227 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009374/4.281, allocations: 252.2 kB / 2.313 GB, free: 226.9 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006863/4.282, allocations: 114.9 kB / 2.313 GB, free: 226.9 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009052/4.283, allocations: 0.8153 MB / 2.314 GB, free: 226.2 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/4.284, allocations: 177.1 kB / 2.314 GB, free: 226.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.822e-05/4.284, allocations: 36.94 kB / 2.314 GB, free: 226.1 MB / 1.135 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.0002356/4.285, allocations: 138.9 kB / 2.314 GB, free: 226 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/4.285, allocations: 109.7 kB / 2.315 GB, free: 225.9 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/4.288, allocations: 0.9448 MB / 2.315 GB, free: 225.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/4.288, allocations: 7.719 kB / 2.316 GB, free: 225.5 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/4.289, allocations: 2.719 kB / 2.316 GB, free: 225.5 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/4.289, allocations: 0 / 2.316 GB, free: 225.5 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005734/4.294, allocations: 2.003 MB / 2.317 GB, free: 224.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/4.294, allocations: 3.844 kB / 2.317 GB, free: 224.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/4.295, allocations: 63.39 kB / 2.318 GB, free: 224.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009847/4.296, allocations: 254.2 kB / 2.318 GB, free: 224 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/4.296, allocations: 19.77 kB / 2.318 GB, free: 224 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/4.297, allocations: 0.8562 MB / 2.319 GB, free: 223.3 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/4.297, allocations: 3.5 kB / 2.319 GB, free: 223.3 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/4.3, allocations: 1.144 MB / 2.32 GB, free: 222.5 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005863/4.301, allocations: 283.7 kB / 2.32 GB, free: 222.3 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/4.301, allocations: 6.312 kB / 2.32 GB, free: 222.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008754/4.302, allocations: 111.7 kB / 2.32 GB, free: 222.2 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/4.302, allocations: 36.55 kB / 2.32 GB, free: 222.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/4.302, allocations: 25.27 kB / 2.32 GB, free: 222.2 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.0009062/4.303, allocations: 0.7003 MB / 2.321 GB, free: 221.8 MB / 1.135 GB Notification: Performance of sort global known variables: time 2.51e-07/4.303, allocations: 0 / 2.321 GB, free: 221.8 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001695/4.305, allocations: 0.6313 MB / 2.321 GB, free: 221.7 MB / 1.135 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.001015/4.306, allocations: 0.6638 MB / 2.322 GB, free: 221.4 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001727/4.307, allocations: 0.8584 MB / 2.323 GB, free: 220.9 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/4.307, allocations: 0 / 2.323 GB, free: 220.9 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0005125/4.308, allocations: 291.8 kB / 2.323 GB, free: 220.6 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/4.31, allocations: 0.5061 MB / 2.324 GB, free: 220.2 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003985/4.314, allocations: 1.58 MB / 2.325 GB, free: 218.5 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/4.315, allocations: 1.087 MB / 2.326 GB, free: 217.4 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.00123/4.316, allocations: 261 kB / 2.327 GB, free: 217.2 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/4.316, allocations: 55.42 kB / 2.327 GB, free: 217.2 MB / 1.135 GB Notification: Performance of SimCode: time 6.11e-07/4.316, allocations: 0 / 2.327 GB, free: 217.2 MB / 1.135 GB Notification: Performance of Templates: time 0.03983/4.356, allocations: 29.33 MB / 2.355 GB, free: 188.9 MB / 1.135 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