Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001131/0.001131, allocations: 192.3 kB / 16.25 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.794/2.794, allocations: 472.6 MB / 0.7448 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 66.77 kB / 0.9115 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3121, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05662/0.3687, allocations: 60.72 MB / 1.127 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01593/0.3847, allocations: 11.92 MB / 1.139 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002066/0.3868, allocations: 59.62 kB / 1.139 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.3885, allocations: 0.5829 MB / 1.139 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0049/0.3935, allocations: 1.82 MB / 1.141 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.3962, allocations: 1.095 MB / 1.142 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003796/0.4, allocations: 3.102 MB / 1.145 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.4015, allocations: 1.108 MB / 1.146 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002676/0.4042, allocations: 1.337 MB / 1.148 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.4053, allocations: 0.9217 MB / 1.148 GB, free: 7.879 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.4055, allocations: 116 kB / 1.149 GB, free: 7.766 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.408, allocations: 1.458 MB / 1.15 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002792/0.4083, allocations: 286.9 kB / 1.15 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007039/0.409, allocations: 0.6958 MB / 1.151 GB, free: 5.324 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003361/0.4124, allocations: 2.279 MB / 1.153 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4124, allocations: 0 / 1.153 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4124, allocations: 0 / 1.153 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.691e-05/0.4124, allocations: 0 / 1.153 GB, free: 3.039 MB / 0.9044 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.002854/0.4153, allocations: 1.73 MB / 1.155 GB, free: 1.246 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4153, allocations: 8.031 kB / 1.155 GB, free: 1.238 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.4176, allocations: 414.8 kB / 1.155 GB, free: 0.832 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.4195, allocations: 1.124 MB / 1.156 GB, free: 15.65 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003571/0.4199, allocations: 113.9 kB / 1.156 GB, free: 15.54 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.4201, allocations: 84 kB / 1.156 GB, free: 15.45 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.4221, allocations: 0.9778 MB / 1.157 GB, free: 14.43 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.4221, allocations: 3.938 kB / 1.157 GB, free: 14.43 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.091e-05/0.4222, allocations: 32 kB / 1.157 GB, free: 14.4 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.4222, allocations: 20 kB / 1.158 GB, free: 14.38 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002295/0.4245, allocations: 0.8626 MB / 1.158 GB, free: 13.52 MB / 0.92 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.00626/0.4308, allocations: 4.836 MB / 1.163 GB, free: 8.328 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003506/0.4343, allocations: 0.7926 MB / 1.164 GB, free: 7.523 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007222/0.4351, allocations: 316.5 kB / 1.164 GB, free: 7.211 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000628/0.4357, allocations: 0.8986 MB / 1.165 GB, free: 6.109 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.4357, allocations: 42.48 kB / 1.165 GB, free: 6.059 MB / 0.92 GB Notification: Performance of pre-optimization done (n=43): time 2.275e-06/0.4357, allocations: 0 / 1.165 GB, free: 6.059 MB / 0.92 GB Notification: Performance of matching and sorting (n=43): time 0.008798/0.4445, allocations: 1.91 MB / 1.167 GB, free: 4.117 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.4446, allocations: 59.34 kB / 1.167 GB, free: 4.047 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.4463, allocations: 1.051 MB / 1.168 GB, free: 2.98 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.4465, allocations: 37.7 kB / 1.168 GB, free: 2.938 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004817/0.4469, allocations: 0.5195 MB / 1.169 GB, free: 2.414 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.4471, allocations: 153.8 kB / 1.169 GB, free: 2.262 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.4474, allocations: 122.1 kB / 1.169 GB, free: 2.137 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4476, allocations: 326 kB / 1.169 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009178/0.4485, allocations: 306.9 kB / 1.169 GB, free: 1.512 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.4496, allocations: 0.5064 MB / 1.17 GB, free: 0.918 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.4513, allocations: 0.685 MB / 1.171 GB, free: 180 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.4513, allocations: 4 kB / 1.171 GB, free: 176 kB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002807/0.4541, allocations: 0.981 MB / 1.172 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.4542, allocations: 5.406 kB / 1.172 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.4542, allocations: 11.94 kB / 1.172 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4556, allocations: 323.2 kB / 1.172 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/0.4562, allocations: 111.9 kB / 1.172 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.4577, allocations: 0.9191 MB / 1.173 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.4591, allocations: 167.3 kB / 1.173 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-05/0.4592, allocations: 27.98 kB / 1.173 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001272/0.4605, allocations: 0.5127 MB / 1.174 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001054/0.4616, allocations: 0.5099 MB / 1.174 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001608/0.4632, allocations: 0.6679 MB / 1.175 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.958e-06/0.4632, allocations: 4 kB / 1.175 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002794/0.466, allocations: 0.9846 MB / 1.176 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.4661, allocations: 11.94 kB / 1.176 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4661, allocations: 4 kB / 1.176 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.4674, allocations: 305 kB / 1.176 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.4679, allocations: 123.8 kB / 1.176 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.4695, allocations: 0.9132 MB / 1.177 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.4709, allocations: 159.5 kB / 1.177 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.471, allocations: 31.98 kB / 1.177 GB, free: 9.195 MB / 0.9356 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003403/0.4713, allocations: 216.1 kB / 1.177 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000334/0.4717, allocations: 106.7 kB / 1.177 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.4757, allocations: 1.098 MB / 1.179 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.4758, allocations: 7.984 kB / 1.179 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4758, allocations: 3.938 kB / 1.179 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.4758, allocations: 0 / 1.179 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005754/0.4816, allocations: 2.171 MB / 1.181 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.4816, allocations: 4 kB / 1.181 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.4819, allocations: 60.17 kB / 1.181 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.483, allocations: 304.6 kB / 1.181 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/0.483, allocations: 12 kB / 1.181 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/0.4846, allocations: 0.9482 MB / 1.182 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.4846, allocations: 7.938 kB / 1.182 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003781/0.4884, allocations: 1.159 MB / 1.183 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000553/0.4889, allocations: 263.5 kB / 1.183 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/0.4892, allocations: 8 kB / 1.183 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.4902, allocations: 103.8 kB / 1.183 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.425e-05/0.4903, allocations: 35.83 kB / 1.184 GB, free: 2.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.73e-05/0.4904, allocations: 23.98 kB / 1.184 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001407/0.4918, allocations: 0.7428 MB / 1.184 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.4918, allocations: 0 / 1.184 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001756/0.4936, allocations: 0.5535 MB / 1.185 GB, free: 1.176 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000875/0.4944, allocations: 387.1 kB / 1.185 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00333/0.4978, allocations: 1.122 MB / 1.186 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4978, allocations: 0 / 1.186 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0009105/0.4987, allocations: 346.5 kB / 1.187 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/0.5012, allocations: 0.4987 MB / 1.187 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005707/0.5069, allocations: 2.426 MB / 1.189 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000738/0.5077, allocations: 1.065 MB / 1.19 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001062/0.5088, allocations: 216.7 kB / 1.191 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.509, allocations: 83.41 kB / 1.191 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of SimCode: time 9.62e-07/0.509, allocations: 0 / 1.191 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of Templates: time 0.04297/0.552, allocations: 24.53 MB / 1.215 GB, free: 2.727 MB / 0.9669 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)