Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001063/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001181/0.001181, allocations: 190.8 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.468/1.468, allocations: 251.6 MB / 0.5088 GB, free: 3.305 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 0.6215 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5318/0.5331, allocations: 104.7 MB / 0.7238 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06688/0.6, allocations: 74.74 MB / 0.7968 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02258/0.6227, allocations: 15.07 MB / 0.8115 GB, free: 3.035 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005812/0.6286, allocations: 59.62 kB / 0.8116 GB, free: 2.977 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003817/0.6324, allocations: 0.6721 MB / 0.8122 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.00957/0.6421, allocations: 2.364 MB / 0.8145 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004338/0.6464, allocations: 1.24 MB / 0.8157 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007896/0.6543, allocations: 5.533 MB / 0.8211 GB, free: 9.156 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002247/0.6566, allocations: 1.167 MB / 0.8223 GB, free: 7.957 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.66, allocations: 1.373 MB / 0.8236 GB, free: 6.578 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.6623, allocations: 1.202 MB / 0.8248 GB, free: 5.371 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002214/0.6625, allocations: 72 kB / 0.8249 GB, free: 5.301 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003708/0.6662, allocations: 1.251 MB / 0.8261 GB, free: 4.047 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004819/0.6667, allocations: 318.5 kB / 0.8264 GB, free: 3.734 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.6681, allocations: 0.8084 MB / 0.8272 GB, free: 2.922 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004828/0.6729, allocations: 2.769 MB / 0.8299 GB, free: 148 kB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.6729, allocations: 4 kB / 0.8299 GB, free: 144 kB / 0.6387 GB Notification: Performance of FrontEnd: time 2.114e-06/0.673, allocations: 0 / 0.8299 GB, free: 144 kB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.579e-05/0.673, allocations: 0 / 0.8299 GB, free: 144 kB / 0.6387 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.005152/0.6782, allocations: 2.079 MB / 0.8319 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.6782, allocations: 8.031 kB / 0.8319 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009508/0.6792, allocations: 230.8 kB / 0.8321 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003002/0.6822, allocations: 1.485 MB / 0.8336 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.429e-05/0.6823, allocations: 78 kB / 0.8337 GB, free: 12.14 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.6825, allocations: 104 kB / 0.8338 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.6846, allocations: 1.092 MB / 0.8348 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.6846, allocations: 0 / 0.8348 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.719e-05/0.6847, allocations: 44 kB / 0.8349 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-05/0.6848, allocations: 27.98 kB / 0.8349 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.6867, allocations: 0.89 MB / 0.8358 GB, free: 9.949 MB / 0.6544 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.007161/0.6939, allocations: 4.903 MB / 0.8406 GB, free: 4.754 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.6955, allocations: 0.6233 MB / 0.8412 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/0.6962, allocations: 347.1 kB / 0.8415 GB, free: 3.785 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008304/0.697, allocations: 0.8277 MB / 0.8423 GB, free: 2.773 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.6971, allocations: 43.06 kB / 0.8423 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=61): time 2.956e-06/0.6971, allocations: 0 / 0.8423 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of matching and sorting (n=61): time 0.007588/0.7047, allocations: 1.685 MB / 0.844 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.7048, allocations: 59.97 kB / 0.844 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/0.7069, allocations: 1.218 MB / 0.8452 GB, free: 15.7 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.707, allocations: 37.7 kB / 0.8453 GB, free: 15.66 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006393/0.7077, allocations: 0.6065 MB / 0.8459 GB, free: 15.05 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.7079, allocations: 212.9 kB / 0.8461 GB, free: 14.84 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000257/0.7082, allocations: 158.5 kB / 0.8462 GB, free: 14.68 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.7083, allocations: 330 kB / 0.8465 GB, free: 14.35 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000688/0.709, allocations: 296.6 kB / 0.8468 GB, free: 14.05 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009091/0.71, allocations: 0.4929 MB / 0.8473 GB, free: 13.48 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.7114, allocations: 0.7128 MB / 0.848 GB, free: 12.72 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.7114, allocations: 0 / 0.848 GB, free: 12.72 MB / 0.67 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004857/0.7162, allocations: 1.277 MB / 0.8492 GB, free: 11.43 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.7163, allocations: 4 kB / 0.8492 GB, free: 11.43 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.7163, allocations: 4 kB / 0.8492 GB, free: 11.43 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/0.7169, allocations: 141 kB / 0.8494 GB, free: 11.29 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/0.7176, allocations: 159.7 kB / 0.8495 GB, free: 11.13 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009372/0.7185, allocations: 0.7046 MB / 0.8502 GB, free: 10.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.7199, allocations: 159 kB / 0.8504 GB, free: 10.24 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.423e-05/0.72, allocations: 28 kB / 0.8504 GB, free: 10.21 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001233/0.7212, allocations: 0.5565 MB / 0.8509 GB, free: 9.656 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009043/0.7222, allocations: 0.4929 MB / 0.8514 GB, free: 9.086 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001408/0.7236, allocations: 0.7087 MB / 0.8521 GB, free: 8.324 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.686e-06/0.7236, allocations: 3.938 kB / 0.8521 GB, free: 8.32 MB / 0.67 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004666/0.7283, allocations: 1.265 MB / 0.8534 GB, free: 7.043 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.7283, allocations: 8 kB / 0.8534 GB, free: 7.035 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.7283, allocations: 0 / 0.8534 GB, free: 7.035 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/0.7288, allocations: 141 kB / 0.8535 GB, free: 6.895 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005975/0.7295, allocations: 163.7 kB / 0.8537 GB, free: 6.734 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009138/0.7304, allocations: 0.7084 MB / 0.8543 GB, free: 6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.7318, allocations: 143.5 kB / 0.8545 GB, free: 5.859 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.992e-05/0.7319, allocations: 32 kB / 0.8545 GB, free: 5.828 MB / 0.67 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 (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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003046/0.7322, allocations: 228.1 kB / 0.8547 GB, free: 5.598 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002598/0.7324, allocations: 134.3 kB / 0.8549 GB, free: 5.465 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004667/0.7371, allocations: 1.264 MB / 0.8561 GB, free: 4.188 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-05/0.7372, allocations: 16 kB / 0.8561 GB, free: 4.172 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.7372, allocations: 0 / 0.8561 GB, free: 4.172 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004014/0.7412, allocations: 1.099 MB / 0.8572 GB, free: 3.035 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006888/0.7481, allocations: 2.598 MB / 0.8597 GB, free: 332 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.7482, allocations: 0 / 0.8597 GB, free: 332 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.7487, allocations: 116.2 kB / 0.8598 GB, free: 216 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005197/0.7492, allocations: 140.6 kB / 0.86 GB, free: 72 kB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.078e-05/0.7493, allocations: 20 kB / 0.86 GB, free: 52 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004906/0.7542, allocations: 2.38 MB / 0.8623 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7542, allocations: 4 kB / 0.8623 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/0.7597, allocations: 1.695 MB / 0.864 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000843/0.7605, allocations: 303.2 kB / 0.8643 GB, free: 11.44 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.7608, allocations: 16 kB / 0.8643 GB, free: 11.42 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009136/0.7617, allocations: 87.81 kB / 0.8644 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.7618, allocations: 64.23 kB / 0.8644 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.7619, allocations: 28.09 kB / 0.8644 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001302/0.7632, allocations: 0.8699 MB / 0.8653 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7632, allocations: 0 / 0.8653 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002123/0.7654, allocations: 0.7057 MB / 0.866 GB, free: 9.668 MB / 0.6856 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 (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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.7664, allocations: 445.6 kB / 0.8664 GB, free: 9.23 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002842/0.7693, allocations: 1.114 MB / 0.8675 GB, free: 8.113 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.7693, allocations: 0 / 0.8675 GB, free: 8.113 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.7708, allocations: 0.5604 MB / 0.868 GB, free: 7.543 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003712/0.7745, allocations: 0.7661 MB / 0.8688 GB, free: 6.793 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.7791, allocations: 2.767 MB / 0.8715 GB, free: 3.957 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.7799, allocations: 1.168 MB / 0.8726 GB, free: 2.758 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001452/0.7814, allocations: 299 kB / 0.8729 GB, free: 2.461 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.7816, allocations: 107.4 kB / 0.873 GB, free: 2.355 MB / 0.6856 GB Notification: Performance of SimCode: time 1.052e-06/0.7816, allocations: 4 kB / 0.873 GB, free: 2.352 MB / 0.6856 GB Notification: Performance of Templates: time 0.05301/0.8347, allocations: 30.61 MB / 0.9029 GB, free: 4.125 MB / 0.7169 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)