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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009977/0.0009976, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.522/2.522, allocations: 436.5 MB / 0.7104 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 8 kB / 0.8707 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6258/0.6261, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06442/0.6906, allocations: 62.99 MB / 1.082 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01839/0.709, allocations: 13 MB / 1.095 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002407/0.7115, allocations: 51.62 kB / 1.095 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.7143, allocations: 0.7424 MB / 1.096 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007506/0.7218, allocations: 2.407 MB / 1.098 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004421/0.7263, allocations: 1.529 MB / 1.1 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004847/0.7311, allocations: 2.53 MB / 1.102 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.7332, allocations: 1.043 MB / 1.103 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.7359, allocations: 1.16 MB / 1.104 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001622/0.7376, allocations: 0.7895 MB / 1.105 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003687/0.738, allocations: 56 kB / 1.105 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.7408, allocations: 0.8308 MB / 1.106 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004871/0.7413, allocations: 266.9 kB / 1.106 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006939/0.7421, allocations: 360.9 kB / 1.106 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002813/0.7449, allocations: 2.015 MB / 1.108 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.7449, allocations: 0 / 1.108 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.906e-06/0.7449, allocations: 0 / 1.108 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.881e-05/0.745, allocations: 0 / 1.108 GB, free: 7.191 MB / 0.8575 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.004049/0.7491, allocations: 1.783 MB / 1.11 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.7491, allocations: 11.98 kB / 1.11 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.7501, allocations: 241.9 kB / 1.11 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002845/0.753, allocations: 1.377 MB / 1.112 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.95e-05/0.7531, allocations: 74 kB / 1.112 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/0.7533, allocations: 108 kB / 1.112 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.7554, allocations: 1.1 MB / 1.113 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.7555, allocations: 4 kB / 1.113 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-05/0.7556, allocations: 40 kB / 1.113 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.916e-05/0.7556, allocations: 31.94 kB / 1.113 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.7577, allocations: 0.9213 MB / 1.114 GB, free: 1.355 MB / 0.8575 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.006528/0.7643, allocations: 4.954 MB / 1.119 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.7657, allocations: 0.638 MB / 1.119 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/0.7664, allocations: 0.8238 MB / 1.12 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.7664, allocations: 39.12 kB / 1.12 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=61): time 2.354e-06/0.7664, allocations: 0 / 1.12 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of matching and sorting (n=61): time 0.007499/0.7739, allocations: 1.889 MB / 1.122 GB, free: 8.504 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.774, allocations: 59.91 kB / 1.122 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.7758, allocations: 1.257 MB / 1.123 GB, free: 7.16 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.7759, allocations: 37.7 kB / 1.123 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005027/0.7765, allocations: 0.6065 MB / 1.124 GB, free: 6.504 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000224/0.7767, allocations: 212.9 kB / 1.124 GB, free: 6.293 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.7767, allocations: 12 kB / 1.124 GB, free: 6.281 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.7769, allocations: 341.8 kB / 1.125 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007191/0.7776, allocations: 293.8 kB / 1.125 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000833/0.7784, allocations: 0.5007 MB / 1.125 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000765/0.7792, allocations: 359 kB / 1.126 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.7792, allocations: 0 / 1.126 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004925/0.7841, allocations: 1.394 MB / 1.127 GB, free: 3.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004665/0.7846, allocations: 1.427 MB / 1.128 GB, free: 1.809 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.7847, allocations: 4 kB / 1.128 GB, free: 1.805 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006326/0.7853, allocations: 148.7 kB / 1.129 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006515/0.786, allocations: 159.8 kB / 1.129 GB, free: 1.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008311/0.7868, allocations: 0.7123 MB / 1.129 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.7881, allocations: 175 kB / 1.13 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.062e-05/0.7882, allocations: 27.98 kB / 1.13 GB, free: 0.5625 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.7882, allocations: 4 kB / 1.13 GB, free: 0.5586 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00459/0.7928, allocations: 1.257 MB / 1.131 GB, free: 15.3 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.7928, allocations: 4 kB / 1.131 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005423/0.7934, allocations: 145.1 kB / 1.131 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.794, allocations: 163.8 kB / 1.131 GB, free: 14.99 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008089/0.7948, allocations: 0.7162 MB / 1.132 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.7961, allocations: 164.7 kB / 1.132 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.344e-05/0.7962, allocations: 32 kB / 1.132 GB, free: 14.05 MB / 0.8887 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 (78): * Single equations (assignments): 77 * 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.0006645/0.7969, allocations: 424.9 kB / 1.132 GB, free: 13.63 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003312/0.7972, allocations: 130.4 kB / 1.133 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00486/0.8021, allocations: 1.408 MB / 1.134 GB, free: 12.07 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/0.8022, allocations: 8 kB / 1.134 GB, free: 12.06 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.8022, allocations: 4 kB / 1.134 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00434/0.8065, allocations: 1.232 MB / 1.135 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007219/0.8138, allocations: 2.766 MB / 1.138 GB, free: 7.906 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.8138, allocations: 7.953 kB / 1.138 GB, free: 7.898 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005125/0.8143, allocations: 120.3 kB / 1.138 GB, free: 7.781 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005216/0.8149, allocations: 132.8 kB / 1.138 GB, free: 7.648 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.196e-05/0.8149, allocations: 27.98 kB / 1.138 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/0.82, allocations: 2.548 MB / 1.141 GB, free: 4.93 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.82, allocations: 4 kB / 1.141 GB, free: 4.926 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005616/0.8256, allocations: 2.058 MB / 1.143 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007219/0.8264, allocations: 343.1 kB / 1.143 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/0.8266, allocations: 19.95 kB / 1.143 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.8276, allocations: 95.91 kB / 1.143 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.8278, allocations: 52.31 kB / 1.143 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.106e-05/0.8279, allocations: 31.97 kB / 1.143 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001322/0.8292, allocations: 0.8974 MB / 1.144 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8292, allocations: 4 kB / 1.144 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001997/0.8312, allocations: 0.7213 MB / 1.145 GB, free: 480 kB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.0008493/0.832, allocations: 456.8 kB / 1.145 GB, free: 16 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00279/0.8349, allocations: 1.161 MB / 1.146 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.8349, allocations: 0 / 1.146 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.8366, allocations: 0.5995 MB / 1.147 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/0.8405, allocations: 0.7369 MB / 1.148 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004309/0.8448, allocations: 2.762 MB / 1.15 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008286/0.8457, allocations: 1.206 MB / 1.152 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001306/0.847, allocations: 311 kB / 1.152 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.8473, allocations: 103.4 kB / 1.152 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of SimCode: time 1.673e-06/0.8473, allocations: 0 / 1.152 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of Templates: time 0.04624/0.8935, allocations: 30.04 MB / 1.181 GB, free: 11.36 MB / 0.9356 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