Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.001445/0.001445, allocations: 108.6 kB / 15.73 MB, free: 72 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.001764/0.001765, allocations: 182.9 kB / 16.66 MB, free: 6.602 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.281/1.281, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7145/0.7145, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 63.36 kB / 0.5813 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1712, allocations: 80.2 MB / 0.6597 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06523/0.2365, allocations: 75.18 MB / 0.7331 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02006/0.2566, allocations: 15.12 MB / 0.7479 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003439/0.2601, allocations: 71.62 kB / 0.7479 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002509/0.2626, allocations: 0.8306 MB / 0.7487 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008342/0.271, allocations: 2.583 MB / 0.7513 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004047/0.2751, allocations: 1.399 MB / 0.7526 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006242/0.2813, allocations: 4.403 MB / 0.7569 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002298/0.2837, allocations: 1.441 MB / 0.7583 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003498/0.2872, allocations: 1.64 MB / 0.7599 GB, free: 6.527 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002058/0.2893, allocations: 1.221 MB / 0.7611 GB, free: 5.301 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005032/0.2898, allocations: 164 kB / 0.7613 GB, free: 5.141 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003313/0.2931, allocations: 1.408 MB / 0.7627 GB, free: 3.73 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.2936, allocations: 394.6 kB / 0.763 GB, free: 3.344 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.2947, allocations: 0.9099 MB / 0.7639 GB, free: 2.43 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003863/0.2986, allocations: 2.893 MB / 0.7667 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.2986, allocations: 4 kB / 0.7667 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2986, allocations: 0 / 0.7667 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.456e-05/0.2987, allocations: 0 / 0.7667 GB, free: 15.52 MB / 0.6075 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.003668/0.3023, allocations: 2.143 MB / 0.7688 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3024, allocations: 8.031 kB / 0.7688 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007634/0.3032, allocations: 239.7 kB / 0.7691 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.3054, allocations: 1.541 MB / 0.7706 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.3055, allocations: 78 kB / 0.7707 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.3056, allocations: 100 kB / 0.7708 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.3075, allocations: 1.1 MB / 0.7718 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.3075, allocations: 0 / 0.7718 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.484e-05/0.3076, allocations: 44 kB / 0.7719 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.3076, allocations: 27.94 kB / 0.7719 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3094, allocations: 0.8939 MB / 0.7728 GB, free: 9.199 MB / 0.6075 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.005479/0.3149, allocations: 4.916 MB / 0.7776 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.3162, allocations: 0.6126 MB / 0.7782 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006629/0.3169, allocations: 354.8 kB / 0.7785 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005964/0.3175, allocations: 0.8277 MB / 0.7793 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3175, allocations: 43.12 kB / 0.7794 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=61): time 4.118e-06/0.3176, allocations: 0 / 0.7794 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61): time 0.006677/0.3242, allocations: 1.702 MB / 0.781 GB, free: 244 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.3243, allocations: 59.97 kB / 0.7811 GB, free: 172 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.3258, allocations: 1.226 MB / 0.7823 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.055e-05/0.3259, allocations: 37.7 kB / 0.7823 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005184/0.3264, allocations: 0.623 MB / 0.7829 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.3266, allocations: 226 kB / 0.7831 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.3268, allocations: 162.5 kB / 0.7833 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.327, allocations: 337.9 kB / 0.7836 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.3276, allocations: 284.7 kB / 0.7839 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.3284, allocations: 0.489 MB / 0.7844 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.3297, allocations: 0.7051 MB / 0.785 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3298, allocations: 0 / 0.785 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004412/0.3342, allocations: 1.282 MB / 0.7863 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.3342, allocations: 8 kB / 0.7863 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3342, allocations: 4 kB / 0.7863 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005745/0.3348, allocations: 141 kB / 0.7864 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005699/0.3354, allocations: 151.8 kB / 0.7866 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008026/0.3362, allocations: 0.7119 MB / 0.7873 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3373, allocations: 119.4 kB / 0.7874 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-05/0.3373, allocations: 35.98 kB / 0.7874 GB, free: 9.457 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001096/0.3384, allocations: 0.5487 MB / 0.788 GB, free: 8.902 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007552/0.3392, allocations: 0.4937 MB / 0.7884 GB, free: 8.332 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001345/0.3406, allocations: 0.7051 MB / 0.7891 GB, free: 7.578 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.708e-06/0.3406, allocations: 4 kB / 0.7891 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004446/0.345, allocations: 1.274 MB / 0.7904 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3451, allocations: 11.94 kB / 0.7904 GB, free: 6.277 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3451, allocations: 4 kB / 0.7904 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/0.3456, allocations: 140.7 kB / 0.7905 GB, free: 6.133 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.3462, allocations: 155.8 kB / 0.7907 GB, free: 5.98 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007665/0.347, allocations: 0.6968 MB / 0.7914 GB, free: 5.258 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.3481, allocations: 103.6 kB / 0.7915 GB, free: 5.156 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-05/0.3482, allocations: 35.94 kB / 0.7915 GB, free: 5.121 MB / 0.6231 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.0002471/0.3485, allocations: 230 kB / 0.7917 GB, free: 4.891 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.3489, allocations: 143.1 kB / 0.7919 GB, free: 4.75 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/0.3534, allocations: 1.267 MB / 0.7931 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.3535, allocations: 4 kB / 0.7931 GB, free: 3.461 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.3535, allocations: 0 / 0.7931 GB, free: 3.461 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00393/0.3574, allocations: 1.111 MB / 0.7942 GB, free: 2.316 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007227/0.3646, allocations: 2.61 MB / 0.7967 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.3647, allocations: 8 kB / 0.7967 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.3652, allocations: 112.2 kB / 0.7968 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/0.3657, allocations: 136.7 kB / 0.797 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.3657, allocations: 23.98 kB / 0.797 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005237/0.371, allocations: 2.635 MB / 0.7996 GB, free: 12.53 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.371, allocations: 8.062 kB / 0.7996 GB, free: 12.52 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005413/0.3764, allocations: 1.704 MB / 0.8012 GB, free: 10.75 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007191/0.3772, allocations: 319.9 kB / 0.8015 GB, free: 10.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000326/0.3775, allocations: 16 kB / 0.8016 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009616/0.3785, allocations: 51.92 kB / 0.8016 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3786, allocations: 68.3 kB / 0.8017 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.3787, allocations: 31.98 kB / 0.8017 GB, free: 10.25 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001561/0.3803, allocations: 0.8818 MB / 0.8026 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3803, allocations: 0 / 0.8026 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00209/0.3824, allocations: 0.7251 MB / 0.8033 GB, free: 8.641 MB / 0.6387 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.0009883/0.3834, allocations: 464.5 kB / 0.8037 GB, free: 8.191 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0028/0.3862, allocations: 1.114 MB / 0.8048 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3862, allocations: 0 / 0.8048 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.3877, allocations: 0.5604 MB / 0.8054 GB, free: 6.508 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004046/0.3918, allocations: 0.8114 MB / 0.8061 GB, free: 5.734 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.3962, allocations: 2.316 MB / 0.8084 GB, free: 3.336 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.3973, allocations: 1.179 MB / 0.8096 GB, free: 2.129 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001279/0.3986, allocations: 302.9 kB / 0.8098 GB, free: 1.832 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.3989, allocations: 107.4 kB / 0.8099 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of SimCode: time 8.01e-07/0.3989, allocations: 0 / 0.8099 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of Templates: time 0.3407/0.7396, allocations: 32.41 MB / 0.8416 GB, free: 131.5 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)