Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001199/0.001199, allocations: 108.1 kB / 17.03 MB, free: 5.656 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.0011/0.0011, allocations: 190.9 kB / 17.97 MB, free: 5.062 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.26/1.26, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6792/0.6792, allocations: 115.1 MB / 406.9 MB, free: 6.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 64.09 kB / 494.8 MB, free: 15.9 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3321, allocations: 76.14 MB / 0.5576 GB, free: 36.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.04811/0.3802, allocations: 61.15 MB / 0.6173 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.3977, allocations: 11.97 MB / 0.629 GB, free: 11.29 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002107/0.3999, allocations: 59.62 kB / 0.629 GB, free: 11.23 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001848/0.4018, allocations: 0.683 MB / 0.6297 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006259/0.408, allocations: 1.966 MB / 0.6316 GB, free: 8.57 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.4111, allocations: 1.209 MB / 0.6328 GB, free: 7.371 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004656/0.4157, allocations: 3.076 MB / 0.6358 GB, free: 4.289 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.4173, allocations: 1.107 MB / 0.6369 GB, free: 3.148 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0034/0.4207, allocations: 1.331 MB / 0.6382 GB, free: 1.816 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.4223, allocations: 0.8867 MB / 0.639 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.4224, allocations: 115.9 kB / 0.6391 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00256/0.425, allocations: 1.443 MB / 0.6406 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.4253, allocations: 298.8 kB / 0.6408 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007093/0.426, allocations: 0.6919 MB / 0.6415 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002839/0.4288, allocations: 2.3 MB / 0.6438 GB, free: 12.08 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4289, allocations: 0 / 0.6438 GB, free: 12.08 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4289, allocations: 0 / 0.6438 GB, free: 12.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.4289, allocations: 0 / 0.6438 GB, free: 12.08 MB / 494.1 MB 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.002638/0.4315, allocations: 1.719 MB / 0.6454 GB, free: 10.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.4316, allocations: 8.031 kB / 0.6454 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001965/0.4336, allocations: 410.8 kB / 0.6458 GB, free: 9.887 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.4356, allocations: 1.156 MB / 0.647 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.596e-05/0.4357, allocations: 66 kB / 0.647 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.4358, allocations: 80 kB / 0.6471 GB, free: 8.531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.4377, allocations: 1.005 MB / 0.6481 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.4377, allocations: 0 / 0.6481 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-05/0.4378, allocations: 32 kB / 0.6481 GB, free: 7.438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.4378, allocations: 24 kB / 0.6481 GB, free: 7.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.4399, allocations: 0.8586 MB / 0.649 GB, free: 6.555 MB / 494.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.006175/0.446, allocations: 5.24 MB / 0.6541 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003013/0.4491, allocations: 0.7893 MB / 0.6549 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006445/0.4497, allocations: 296.6 kB / 0.6552 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006815/0.4504, allocations: 0.9102 MB / 0.656 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.4505, allocations: 38.56 kB / 0.6561 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 2.104e-06/0.4505, allocations: 0 / 0.6561 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.00765/0.4581, allocations: 1.845 MB / 0.6579 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.4582, allocations: 55.41 kB / 0.6579 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.4597, allocations: 1.076 MB / 0.659 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.761e-05/0.4597, allocations: 37.7 kB / 0.659 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00039/0.4601, allocations: 0.535 MB / 0.6595 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.4603, allocations: 149.8 kB / 0.6597 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.4605, allocations: 138.2 kB / 0.6598 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4606, allocations: 326 kB / 0.6601 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008089/0.4614, allocations: 307.3 kB / 0.6604 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000951/0.4624, allocations: 0.5346 MB / 0.6609 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4638, allocations: 0.7211 MB / 0.6616 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.4639, allocations: 4 kB / 0.6617 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002393/0.4663, allocations: 1.016 MB / 0.6626 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4663, allocations: 8 kB / 0.6627 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.4663, allocations: 7.984 kB / 0.6627 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.4674, allocations: 307.1 kB / 0.663 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.468, allocations: 127.8 kB / 0.6631 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.4693, allocations: 0.9035 MB / 0.664 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.4704, allocations: 147.2 kB / 0.6641 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.738e-05/0.4705, allocations: 35.98 kB / 0.6641 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001087/0.4716, allocations: 0.5129 MB / 0.6646 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009423/0.4726, allocations: 0.519 MB / 0.6651 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001492/0.4741, allocations: 0.7102 MB / 0.6658 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.399e-06/0.4741, allocations: 0 / 0.6658 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002422/0.4765, allocations: 1.012 MB / 0.6668 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.4765, allocations: 11.94 kB / 0.6668 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4765, allocations: 7.938 kB / 0.6668 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.4776, allocations: 296.7 kB / 0.6671 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.4781, allocations: 127.8 kB / 0.6672 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.4793, allocations: 0.8903 MB / 0.6681 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.4805, allocations: 143.5 kB / 0.6682 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.4805, allocations: 31.98 kB / 0.6683 GB, free: 1.688 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0002329/0.4808, allocations: 220.7 kB / 0.6685 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.481, allocations: 110.7 kB / 0.6686 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003412/0.4844, allocations: 1.085 MB / 0.6697 GB, free: 260 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.4845, allocations: 4.094 kB / 0.6697 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4845, allocations: 3.938 kB / 0.6697 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4845, allocations: 7.969 kB / 0.6697 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004919/0.4894, allocations: 2.146 MB / 0.6718 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4894, allocations: 8.219 kB / 0.6718 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.4897, allocations: 63.89 kB / 0.6718 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009035/0.4906, allocations: 286.6 kB / 0.6721 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.4907, allocations: 16 kB / 0.6721 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.492, allocations: 0.9286 MB / 0.673 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.492, allocations: 4.031 kB / 0.673 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/0.4953, allocations: 1.152 MB / 0.6742 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004786/0.4958, allocations: 259.5 kB / 0.6744 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.496, allocations: 12 kB / 0.6744 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008236/0.4968, allocations: 71.91 kB / 0.6745 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.4969, allocations: 43.77 kB / 0.6745 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.497, allocations: 23.98 kB / 0.6746 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001232/0.4982, allocations: 0.7473 MB / 0.6753 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4982, allocations: 0 / 0.6753 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001568/0.4998, allocations: 0.5692 MB / 0.6758 GB, free: 9.738 MB / 0.5137 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.000795/0.5006, allocations: 396.7 kB / 0.6762 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002965/0.5036, allocations: 1.122 MB / 0.6773 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5036, allocations: 0 / 0.6773 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008489/0.5045, allocations: 354.5 kB / 0.6776 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.5066, allocations: 0.5053 MB / 0.6781 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/0.5119, allocations: 1.992 MB / 0.6801 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007446/0.5127, allocations: 1.069 MB / 0.6811 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0008496/0.5135, allocations: 227.3 kB / 0.6813 GB, free: 4.035 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.5137, allocations: 75.42 kB / 0.6814 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of SimCode: time 6.21e-07/0.5137, allocations: 0 / 0.6814 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of Templates: time 0.03787/0.5516, allocations: 24.92 MB / 0.7058 GB, free: 11.32 MB / 0.545 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)