Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001535/0.001535, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001304/0.001304, allocations: 193.9 kB / 16.25 MB, free: 6.633 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.489/1.489, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.714/1.714, allocations: 292.2 MB / 0.5485 GB, free: 13.65 MB / 462.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.00143/0.00143, allocations: 64.67 kB / 0.671 GB, free: 26.5 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2642, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.07329/0.3376, allocations: 74.56 MB / 0.8557 GB, free: 3.113 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01969/0.3573, allocations: 14.95 MB / 0.8703 GB, free: 4.121 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003515/0.3608, allocations: 59.62 kB / 0.8703 GB, free: 4.062 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002575/0.3635, allocations: 0.7189 MB / 0.871 GB, free: 3.34 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006962/0.3705, allocations: 2.387 MB / 0.8733 GB, free: 0.9453 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003239/0.3737, allocations: 1.298 MB / 0.8746 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.005836/0.3796, allocations: 4.392 MB / 0.8789 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002156/0.3818, allocations: 1.425 MB / 0.8803 GB, free: 9.789 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004094/0.3859, allocations: 1.652 MB / 0.8819 GB, free: 8.137 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.3878, allocations: 1.245 MB / 0.8831 GB, free: 6.887 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.3881, allocations: 164 kB / 0.8833 GB, free: 6.727 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002832/0.3909, allocations: 1.419 MB / 0.8847 GB, free: 5.305 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0005357/0.3915, allocations: 406.6 kB / 0.8851 GB, free: 4.906 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.3926, allocations: 0.906 MB / 0.8859 GB, free: 3.996 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.004174/0.3967, allocations: 2.859 MB / 0.8887 GB, free: 1.129 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3968, allocations: 4 kB / 0.8887 GB, free: 1.125 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3968, allocations: 0 / 0.8887 GB, free: 1.125 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.814e-05/0.3968, allocations: 0 / 0.8887 GB, free: 1.125 MB / 0.7012 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.003689/0.4005, allocations: 2.083 MB / 0.8908 GB, free: 14.98 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4005, allocations: 12.03 kB / 0.8908 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007769/0.4013, allocations: 230.8 kB / 0.891 GB, free: 14.74 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.4036, allocations: 1.489 MB / 0.8925 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.504e-05/0.4036, allocations: 78 kB / 0.8925 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.4038, allocations: 104 kB / 0.8926 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/0.406, allocations: 1.092 MB / 0.8937 GB, free: 11.89 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.406, allocations: 3.984 kB / 0.8937 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.4062, allocations: 47.94 kB / 0.8937 GB, free: 11.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.422e-05/0.4062, allocations: 24 kB / 0.8938 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.408, allocations: 0.8977 MB / 0.8946 GB, free: 10.92 MB / 0.7169 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.006736/0.4148, allocations: 4.93 MB / 0.8995 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.4161, allocations: 0.6117 MB / 0.9001 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006605/0.4168, allocations: 350.2 kB / 0.9004 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007914/0.4176, allocations: 0.8277 MB / 0.9012 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.4177, allocations: 39.12 kB / 0.9012 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=61): time 2.124e-06/0.4177, allocations: 0 / 0.9012 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61): time 0.006816/0.4245, allocations: 1.693 MB / 0.9029 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.4246, allocations: 59.97 kB / 0.9029 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.4263, allocations: 1.214 MB / 0.9041 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4264, allocations: 41.7 kB / 0.9042 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006096/0.427, allocations: 0.6026 MB / 0.9048 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.4274, allocations: 216.9 kB / 0.905 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.4276, allocations: 150.6 kB / 0.9051 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002497/0.4279, allocations: 337.9 kB / 0.9054 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006283/0.4285, allocations: 288.7 kB / 0.9057 GB, free: 15 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008613/0.4294, allocations: 0.4957 MB / 0.9062 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.4307, allocations: 0.7129 MB / 0.9069 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.4307, allocations: 0 / 0.9069 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004994/0.4357, allocations: 1.273 MB / 0.9081 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.4358, allocations: 8 kB / 0.9081 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4358, allocations: 7.828 kB / 0.9081 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005558/0.4363, allocations: 141 kB / 0.9083 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.4369, allocations: 159.8 kB / 0.9084 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009108/0.4379, allocations: 0.7083 MB / 0.9091 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.4392, allocations: 161.8 kB / 0.9093 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.991e-05/0.4393, allocations: 39.98 kB / 0.9093 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001078/0.4404, allocations: 0.5448 MB / 0.9098 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008454/0.4413, allocations: 496.8 kB / 0.9103 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001417/0.4427, allocations: 0.705 MB / 0.911 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.889e-06/0.4427, allocations: 4 kB / 0.911 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004768/0.4475, allocations: 1.261 MB / 0.9122 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4475, allocations: 4 kB / 0.9122 GB, free: 7.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4475, allocations: 8.312 kB / 0.9123 GB, free: 7.984 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005209/0.4481, allocations: 144.7 kB / 0.9124 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/0.4487, allocations: 155.8 kB / 0.9125 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007832/0.4495, allocations: 0.7045 MB / 0.9132 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.4508, allocations: 143.5 kB / 0.9134 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.362e-05/0.4509, allocations: 35.98 kB / 0.9134 GB, free: 6.781 MB / 0.7325 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.0002664/0.4511, allocations: 224 kB / 0.9136 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004711/0.4516, allocations: 130.4 kB / 0.9137 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004685/0.4563, allocations: 1.267 MB / 0.915 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.4563, allocations: 8 kB / 0.915 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4564, allocations: 3.984 kB / 0.915 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003931/0.4603, allocations: 1.103 MB / 0.9161 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007117/0.4674, allocations: 2.598 MB / 0.9186 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.4675, allocations: 12 kB / 0.9186 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004878/0.468, allocations: 115.7 kB / 0.9187 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004987/0.4685, allocations: 136.7 kB / 0.9189 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/0.4685, allocations: 16 kB / 0.9189 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3853/0.8539, allocations: 2.621 MB / 0.9214 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.8539, allocations: 8.453 kB / 0.9214 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006116/0.8601, allocations: 1.694 MB / 0.9231 GB, free: 134.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007941/0.8609, allocations: 303.3 kB / 0.9234 GB, free: 134.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.8611, allocations: 23.02 kB / 0.9234 GB, free: 134.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009266/0.862, allocations: 84.11 kB / 0.9235 GB, free: 134.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.8622, allocations: 60.59 kB / 0.9235 GB, free: 134.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.281e-05/0.8623, allocations: 35.12 kB / 0.9236 GB, free: 134.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001343/0.8636, allocations: 0.8674 MB / 0.9244 GB, free: 134.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8636, allocations: 0 / 0.9244 GB, free: 134.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002135/0.8658, allocations: 0.716 MB / 0.9251 GB, free: 134.3 MB / 0.7325 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.0008982/0.8667, allocations: 446.5 kB / 0.9255 GB, free: 134.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002599/0.8693, allocations: 1.159 MB / 0.9267 GB, free: 134.1 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.8693, allocations: 0 / 0.9267 GB, free: 134.1 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.8707, allocations: 0.5637 MB / 0.9272 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003484/0.8742, allocations: 0.8217 MB / 0.928 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004314/0.8785, allocations: 2.764 MB / 0.9307 GB, free: 132.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.8795, allocations: 1.172 MB / 0.9319 GB, free: 131.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001562/0.8811, allocations: 309 kB / 0.9322 GB, free: 131.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/0.8814, allocations: 105.7 kB / 0.9323 GB, free: 131.3 MB / 0.7325 GB Notification: Performance of SimCode: time 1.283e-06/0.8814, allocations: 0 / 0.9323 GB, free: 131.3 MB / 0.7325 GB Notification: Performance of Templates: time 0.05367/0.9351, allocations: 31.86 MB / 0.9634 GB, free: 117.7 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)