Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7367/0.7367, allocations: 132.2 MB / 148.9 MB, free: 12.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 222.9 MB / 403.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000999/0.000999, allocations: 111.4 kB / 484.4 MB, free: 8.73 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009764/0.0009765, allocations: 55.92 kB / 0.5618 GB, free: 71.08 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1206, allocations: 80.21 MB / 0.6402 GB, free: 6.805 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.3116/0.4322, allocations: 60.79 MB / 0.6995 GB, free: 26 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.4463, allocations: 12.05 MB / 0.7113 GB, free: 25.76 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002019/0.4484, allocations: 57.84 kB / 0.7114 GB, free: 25.76 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.4501, allocations: 0.5463 MB / 0.7119 GB, free: 25.75 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006089/0.4563, allocations: 1.801 MB / 0.7137 GB, free: 25.44 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.4597, allocations: 1.074 MB / 0.7147 GB, free: 25.31 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.005003/0.4647, allocations: 3.915 MB / 0.7185 GB, free: 23.86 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.4661, allocations: 0.9372 MB / 0.7194 GB, free: 23.45 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002288/0.4684, allocations: 1.174 MB / 0.7206 GB, free: 22.97 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.4696, allocations: 0.8855 MB / 0.7215 GB, free: 22.66 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.4698, allocations: 60.72 kB / 0.7215 GB, free: 22.66 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002799/0.4726, allocations: 1.338 MB / 0.7228 GB, free: 22.28 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.4728, allocations: 237.9 kB / 0.723 GB, free: 22.15 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006152/0.4734, allocations: 0.6336 MB / 0.7237 GB, free: 21.79 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002692/0.4761, allocations: 2.229 MB / 0.7258 GB, free: 21.06 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.4762, allocations: 0 / 0.7258 GB, free: 21.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.4762, allocations: 0 / 0.7258 GB, free: 21.06 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.4762, allocations: 0 / 0.7258 GB, free: 21.06 MB / 490.7 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.002841/0.479, allocations: 1.723 MB / 0.7275 GB, free: 19.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4791, allocations: 13.25 kB / 0.7275 GB, free: 19.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.4812, allocations: 403.8 kB / 0.7279 GB, free: 19.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001934/0.4832, allocations: 1.129 MB / 0.729 GB, free: 19.13 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003697/0.4835, allocations: 114.2 kB / 0.7291 GB, free: 19.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.4837, allocations: 83.16 kB / 0.7292 GB, free: 19.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.4855, allocations: 0.9775 MB / 0.7302 GB, free: 18.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.4855, allocations: 5.219 kB / 0.7302 GB, free: 18.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-05/0.4856, allocations: 30.97 kB / 0.7302 GB, free: 18.46 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-05/0.4856, allocations: 22.94 kB / 0.7302 GB, free: 18.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002411/0.4881, allocations: 0.8597 MB / 0.7311 GB, free: 18.03 MB / 490.7 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.005229/0.4933, allocations: 4.848 MB / 0.7358 GB, free: 13.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.4966, allocations: 0.7965 MB / 0.7366 GB, free: 13.33 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007018/0.4974, allocations: 307.5 kB / 0.7369 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004055/0.4978, allocations: 0.9005 MB / 0.7377 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.4978, allocations: 49.16 kB / 0.7378 GB, free: 12.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=43): time 2.665e-06/0.4978, allocations: 0 / 0.7378 GB, free: 12.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=43): time 0.008602/0.5064, allocations: 1.911 MB / 0.7397 GB, free: 11.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.5065, allocations: 55.31 kB / 0.7397 GB, free: 11.03 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.508, allocations: 1.049 MB / 0.7407 GB, free: 10.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.234e-05/0.5081, allocations: 39.17 kB / 0.7408 GB, free: 10.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/0.5084, allocations: 0.5237 MB / 0.7413 GB, free: 9.945 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.5085, allocations: 155.2 kB / 0.7414 GB, free: 9.812 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.5087, allocations: 131.5 kB / 0.7416 GB, free: 9.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.621e-05/0.5087, allocations: 325.8 kB / 0.7419 GB, free: 9.414 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008304/0.5096, allocations: 301.8 kB / 0.7422 GB, free: 9.266 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009511/0.5105, allocations: 0.5121 MB / 0.7427 GB, free: 8.852 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.5121, allocations: 0.6852 MB / 0.7433 GB, free: 8.406 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5121, allocations: 0 / 0.7433 GB, free: 8.406 MB / 490.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002561/0.5147, allocations: 0.9827 MB / 0.7443 GB, free: 7.906 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.5147, allocations: 13.09 kB / 0.7443 GB, free: 7.902 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.5147, allocations: 2.375 kB / 0.7443 GB, free: 7.902 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.516, allocations: 324.2 kB / 0.7446 GB, free: 7.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.5165, allocations: 113.2 kB / 0.7447 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.5178, allocations: 0.9169 MB / 0.7456 GB, free: 6.992 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.5191, allocations: 169.2 kB / 0.7458 GB, free: 6.906 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.74e-05/0.5192, allocations: 31.05 kB / 0.7458 GB, free: 6.898 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001112/0.5203, allocations: 0.5111 MB / 0.7463 GB, free: 6.59 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009208/0.5212, allocations: 0.5057 MB / 0.7468 GB, free: 6.176 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001465/0.5227, allocations: 0.6684 MB / 0.7475 GB, free: 5.738 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.5227, allocations: 2.844 kB / 0.7475 GB, free: 5.738 MB / 490.7 MB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.00247/0.5252, allocations: 0.9847 MB / 0.7484 GB, free: 4.988 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.5252, allocations: 8 kB / 0.7484 GB, free: 4.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.5252, allocations: 4 kB / 0.7484 GB, free: 4.977 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.5262, allocations: 311.1 kB / 0.7487 GB, free: 4.672 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004671/0.5267, allocations: 123.8 kB / 0.7488 GB, free: 4.551 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.5279, allocations: 0.8996 MB / 0.7497 GB, free: 3.625 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.5292, allocations: 159.6 kB / 0.7499 GB, free: 3.469 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.527e-05/0.5293, allocations: 27.98 kB / 0.7499 GB, free: 3.441 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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.0001706/0.5295, allocations: 220 kB / 0.7501 GB, free: 3.219 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.5296, allocations: 110.6 kB / 0.7502 GB, free: 3.109 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.5331, allocations: 1.098 MB / 0.7513 GB, free: 1.996 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.5332, allocations: 11.94 kB / 0.7513 GB, free: 1.984 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5332, allocations: 0 / 0.7513 GB, free: 1.984 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5332, allocations: 7.922 kB / 0.7513 GB, free: 1.977 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004548/0.5377, allocations: 2.164 MB / 0.7534 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.5377, allocations: 4 kB / 0.7534 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.538, allocations: 63.89 kB / 0.7535 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.5391, allocations: 300.9 kB / 0.7538 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.5391, allocations: 15.98 kB / 0.7538 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.5406, allocations: 0.9442 MB / 0.7547 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.5406, allocations: 8.016 kB / 0.7547 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004938/0.5455, allocations: 2.252 MB / 0.7569 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004436/0.546, allocations: 263.5 kB / 0.7572 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.5461, allocations: 16 kB / 0.7572 GB, free: 11.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008758/0.547, allocations: 91.89 kB / 0.7573 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.5471, allocations: 39.89 kB / 0.7573 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.326e-05/0.5472, allocations: 23.98 kB / 0.7573 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001164/0.5483, allocations: 0.735 MB / 0.758 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5484, allocations: 3.938 kB / 0.758 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001782/0.5501, allocations: 0.5769 MB / 0.7586 GB, free: 10.28 MB / 0.4948 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.0007533/0.5509, allocations: 377.9 kB / 0.759 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003145/0.5541, allocations: 1.083 MB / 0.76 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5541, allocations: 4 kB / 0.76 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009098/0.555, allocations: 358.4 kB / 0.7604 GB, free: 8.496 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.5575, allocations: 0.5033 MB / 0.7609 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005388/0.5629, allocations: 2.715 MB / 0.7635 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.5635, allocations: 1.073 MB / 0.7646 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000915/0.5644, allocations: 224.6 kB / 0.7648 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.5646, allocations: 71.42 kB / 0.7648 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of SimCode: time 8.02e-07/0.5646, allocations: 0 / 0.7648 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of Templates: time 0.03565/0.6002, allocations: 24.43 MB / 0.7887 GB, free: 11.69 MB / 0.5261 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)