Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Annex60.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.001547/0.001547, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00206/0.00206, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.506/1.506, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3832/0.3832, allocations: 54.95 MB / 324.7 MB, free: 32 kB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 71.91 kB / 395.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1374, allocations: 59.6 MB / 455 MB, free: 160 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.2747/0.4121, allocations: 60.46 MB / 0.5034 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01777/0.4299, allocations: 11.24 MB / 0.5143 GB, free: 6.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002403/0.4324, allocations: 52.06 kB / 0.5144 GB, free: 6.234 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.4347, allocations: 0.7284 MB / 0.5151 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005961/0.4407, allocations: 1.926 MB / 0.517 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003116/0.4438, allocations: 1.011 MB / 0.518 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007921/0.4517, allocations: 3.022 MB / 0.5209 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/0.4543, allocations: 1.083 MB / 0.522 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005722/0.46, allocations: 1.433 MB / 0.5234 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.4627, allocations: 0.9673 MB / 0.5243 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007153/0.4634, allocations: 118.9 kB / 0.5244 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004322/0.4678, allocations: 1.193 MB / 0.5256 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008037/0.4686, allocations: 297 kB / 0.5259 GB, free: 356 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002349/0.471, allocations: 0.735 MB / 0.5266 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005387/0.4764, allocations: 2.204 MB / 0.5287 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4764, allocations: 0 / 0.5287 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4764, allocations: 0 / 0.5287 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.981e-05/0.4765, allocations: 0 / 0.5287 GB, free: 14.77 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.005008/0.4815, allocations: 1.735 MB / 0.5304 GB, free: 13.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4816, allocations: 9.25 kB / 0.5304 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002899/0.4845, allocations: 461.5 kB / 0.5309 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/0.487, allocations: 1.093 MB / 0.532 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/0.4873, allocations: 124.8 kB / 0.5321 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.4875, allocations: 83.5 kB / 0.5322 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002775/0.4903, allocations: 1.251 MB / 0.5334 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.4903, allocations: 5.312 kB / 0.5334 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.4904, allocations: 40.38 kB / 0.5334 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.985e-05/0.4905, allocations: 30.11 kB / 0.5334 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002967/0.4935, allocations: 0.9882 MB / 0.5344 GB, free: 10.89 MB / 414.1 MB 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.008037/0.5015, allocations: 6.278 MB / 0.5405 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.5039, allocations: 0.677 MB / 0.5412 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007264/0.5047, allocations: 265.3 kB / 0.5415 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003961/0.5051, allocations: 417.8 kB / 0.5419 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.5051, allocations: 38.89 kB / 0.5419 GB, free: 3.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 4.117e-06/0.5051, allocations: 3.984 kB / 0.5419 GB, free: 3.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=39): time 0.008306/0.5135, allocations: 1.744 MB / 0.5436 GB, free: 1.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.071e-05/0.5136, allocations: 158.2 kB / 0.5438 GB, free: 1.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/0.5154, allocations: 1.165 MB / 0.5449 GB, free: 15.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.5155, allocations: 33.7 kB / 0.5449 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004742/0.516, allocations: 0.6005 MB / 0.5455 GB, free: 15.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.5162, allocations: 142 kB / 0.5456 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.5164, allocations: 158.5 kB / 0.5458 GB, free: 15.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.5166, allocations: 337.9 kB / 0.5461 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.5176, allocations: 348.6 kB / 0.5464 GB, free: 14.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.519, allocations: 0.6706 MB / 0.5471 GB, free: 13.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.5211, allocations: 0.861 MB / 0.5479 GB, free: 12.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.5211, allocations: 0 / 0.5479 GB, free: 12.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0056/0.5267, allocations: 1.462 MB / 0.5494 GB, free: 11.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.5268, allocations: 8 kB / 0.5494 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.5268, allocations: 8 kB / 0.5494 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.5278, allocations: 265.4 kB / 0.5496 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007103/0.5286, allocations: 175.7 kB / 0.5498 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.5301, allocations: 0.8547 MB / 0.5506 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.5321, allocations: 190.9 kB / 0.5508 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-05/0.5322, allocations: 35.98 kB / 0.5509 GB, free: 9.523 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001502/0.5337, allocations: 0.5253 MB / 0.5514 GB, free: 8.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001193/0.5349, allocations: 0.6511 MB / 0.552 GB, free: 8.191 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001745/0.5367, allocations: 0.8147 MB / 0.5528 GB, free: 7.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.494e-06/0.5367, allocations: 7.938 kB / 0.5528 GB, free: 7.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.005583/0.5423, allocations: 1.404 MB / 0.5542 GB, free: 5.848 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.5423, allocations: 8 kB / 0.5542 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.5424, allocations: 11.94 kB / 0.5542 GB, free: 5.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009358/0.5433, allocations: 261.5 kB / 0.5545 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006564/0.544, allocations: 167.7 kB / 0.5546 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.5454, allocations: 0.8496 MB / 0.5554 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.547, allocations: 163.6 kB / 0.5556 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.691e-05/0.5471, allocations: 35.98 kB / 0.5556 GB, free: 4.336 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (77): * Single equations (assignments): 76 * 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,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002889/0.5474, allocations: 228 kB / 0.5558 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.5476, allocations: 118.6 kB / 0.556 GB, free: 3.988 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.5524, allocations: 1.121 MB / 0.5571 GB, free: 2.855 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.5524, allocations: 8 kB / 0.5571 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.5524, allocations: 2.938 kB / 0.5571 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.5524, allocations: 7.922 kB / 0.5571 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003814/0.5563, allocations: 1.872 MB / 0.5589 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.5563, allocations: 4 kB / 0.5589 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.5567, allocations: 80.17 kB / 0.559 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008648/0.5575, allocations: 257.7 kB / 0.5592 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.5576, allocations: 11.98 kB / 0.5592 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.5589, allocations: 0.8403 MB / 0.5601 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.5589, allocations: 7.969 kB / 0.5601 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.5612, allocations: 0.9501 MB / 0.561 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005115/0.5617, allocations: 263.5 kB / 0.5612 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.5619, allocations: 12 kB / 0.5613 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5629, allocations: 83.89 kB / 0.5613 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.563, allocations: 39.83 kB / 0.5614 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-05/0.5631, allocations: 23.98 kB / 0.5614 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001352/0.5644, allocations: 0.7958 MB / 0.5622 GB, free: 13.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5645, allocations: 0 / 0.5622 GB, free: 13.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001658/0.5661, allocations: 0.5615 MB / 0.5627 GB, free: 12.87 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006237/0.5667, allocations: 268.9 kB / 0.563 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003762/0.5705, allocations: 1.248 MB / 0.5642 GB, free: 11.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5705, allocations: 320 / 0.5642 GB, free: 11.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000912/0.5715, allocations: 320.7 kB / 0.5645 GB, free: 11.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/0.5742, allocations: 0.5719 MB / 0.5651 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005435/0.5797, allocations: 2.037 MB / 0.5671 GB, free: 8.445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.5803, allocations: 1.062 MB / 0.5681 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001288/0.5816, allocations: 237.6 kB / 0.5683 GB, free: 7.125 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.5819, allocations: 91.41 kB / 0.5684 GB, free: 7.035 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5819, allocations: 0 / 0.5684 GB, free: 7.035 MB / 446.1 MB Notification: Performance of Templates: time 0.0442/0.6261, allocations: 24.64 MB / 0.5925 GB, free: 14.61 MB / 478.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)