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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 105.7 kB / 16.41 MB, free: 6.512 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.001411/0.001411, allocations: 187 kB / 17.34 MB, free: 5.734 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7893/0.7893, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 62.78 kB / 0.582 GB, free: 23.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1519, allocations: 80.21 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06521/0.2171, allocations: 61.18 MB / 0.7201 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01758/0.2348, allocations: 11.97 MB / 0.7318 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002355/0.2372, allocations: 59.62 kB / 0.7318 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.2395, allocations: 0.6829 MB / 0.7325 GB, free: 132 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006208/0.2458, allocations: 1.955 MB / 0.7344 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.2494, allocations: 1.207 MB / 0.7356 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0048/0.2542, allocations: 3.083 MB / 0.7386 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002081/0.2563, allocations: 1.096 MB / 0.7396 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003762/0.2601, allocations: 1.366 MB / 0.741 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.262, allocations: 0.8867 MB / 0.7418 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004484/0.2625, allocations: 116 kB / 0.742 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003565/0.2661, allocations: 1.439 MB / 0.7434 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005557/0.2666, allocations: 294.9 kB / 0.7436 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.2681, allocations: 0.692 MB / 0.7443 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004553/0.2727, allocations: 2.306 MB / 0.7466 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2727, allocations: 4 kB / 0.7466 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2727, allocations: 0 / 0.7466 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.811e-05/0.2728, allocations: 0 / 0.7466 GB, free: 1.637 MB / 0.5762 GB 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.3572/0.63, allocations: 1.721 MB / 0.7483 GB, free: 86.47 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.6301, allocations: 8.844 kB / 0.7483 GB, free: 86.47 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002749/0.6328, allocations: 408.8 kB / 0.7487 GB, free: 86.4 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00303/0.6359, allocations: 1.158 MB / 0.7498 GB, free: 86.03 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.636, allocations: 69.72 kB / 0.7499 GB, free: 86.03 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002438/0.6363, allocations: 84.25 kB / 0.7499 GB, free: 86.03 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002603/0.6389, allocations: 0.9926 MB / 0.7509 GB, free: 85.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.6389, allocations: 14.62 kB / 0.7509 GB, free: 85.79 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.639, allocations: 31.67 kB / 0.7509 GB, free: 85.77 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.6391, allocations: 19.03 kB / 0.751 GB, free: 85.77 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.6415, allocations: 0.856 MB / 0.7518 GB, free: 85.49 MB / 0.5762 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.007509/0.6491, allocations: 5.212 MB / 0.7569 GB, free: 81.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/0.6527, allocations: 0.7852 MB / 0.7577 GB, free: 81.29 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/0.6535, allocations: 293.4 kB / 0.7579 GB, free: 81.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005223/0.654, allocations: 0.9059 MB / 0.7588 GB, free: 80.15 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.6541, allocations: 41.17 kB / 0.7589 GB, free: 80.11 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.495e-06/0.6541, allocations: 0 / 0.7589 GB, free: 80.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.009294/0.6634, allocations: 1.846 MB / 0.7607 GB, free: 79.67 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.6635, allocations: 56 kB / 0.7607 GB, free: 79.61 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.6661, allocations: 1.08 MB / 0.7618 GB, free: 79.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.6662, allocations: 36.78 kB / 0.7618 GB, free: 79.12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004475/0.6667, allocations: 0.5334 MB / 0.7623 GB, free: 78.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.6668, allocations: 150.2 kB / 0.7625 GB, free: 78.59 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.6671, allocations: 140.7 kB / 0.7626 GB, free: 78.52 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.6672, allocations: 330.1 kB / 0.7629 GB, free: 78.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009451/0.6682, allocations: 310.4 kB / 0.7632 GB, free: 78.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.6693, allocations: 0.5329 MB / 0.7637 GB, free: 77.72 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.6711, allocations: 0.7174 MB / 0.7644 GB, free: 77.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.6711, allocations: 1.812 kB / 0.7644 GB, free: 77.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002942/0.674, allocations: 1.009 MB / 0.7654 GB, free: 76.94 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.6741, allocations: 9.188 kB / 0.7654 GB, free: 76.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.6741, allocations: 5.594 kB / 0.7654 GB, free: 76.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.6755, allocations: 312 kB / 0.7657 GB, free: 76.87 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005964/0.6761, allocations: 128.1 kB / 0.7659 GB, free: 76.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.6775, allocations: 0.8997 MB / 0.7667 GB, free: 76.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.679, allocations: 151.6 kB / 0.7669 GB, free: 76.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.6791, allocations: 34.53 kB / 0.7669 GB, free: 76.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001293/0.6804, allocations: 0.5061 MB / 0.7674 GB, free: 75.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001021/0.6814, allocations: 0.532 MB / 0.7679 GB, free: 75.52 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001816/0.6832, allocations: 0.7078 MB / 0.7686 GB, free: 75.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.173e-05/0.6833, allocations: 1.156 kB / 0.7686 GB, free: 75.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002821/0.6861, allocations: 1.005 MB / 0.7696 GB, free: 74.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.6861, allocations: 7.25 kB / 0.7696 GB, free: 74.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.6861, allocations: 9.734 kB / 0.7696 GB, free: 74.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.6872, allocations: 300.5 kB / 0.7699 GB, free: 74.67 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005473/0.6878, allocations: 129.3 kB / 0.77 GB, free: 74.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.6891, allocations: 0.8947 MB / 0.7709 GB, free: 74 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.6905, allocations: 135.3 kB / 0.771 GB, free: 73.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/0.6906, allocations: 32.83 kB / 0.7711 GB, free: 73.93 MB / 0.5762 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.0002703/0.6908, allocations: 225.1 kB / 0.7713 GB, free: 73.71 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.6912, allocations: 112.8 kB / 0.7714 GB, free: 73.65 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003785/0.695, allocations: 1.084 MB / 0.7724 GB, free: 73.05 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.695, allocations: 5.25 kB / 0.7724 GB, free: 73.05 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.6951, allocations: 0 / 0.7724 GB, free: 73.05 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.6951, allocations: 8.953 kB / 0.7725 GB, free: 73.05 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005348/0.7004, allocations: 2.152 MB / 0.7746 GB, free: 71.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.7005, allocations: 2.688 kB / 0.7746 GB, free: 71.58 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.7008, allocations: 63.92 kB / 0.7746 GB, free: 71.56 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009676/0.7017, allocations: 292.4 kB / 0.7749 GB, free: 71.42 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/0.7018, allocations: 14.81 kB / 0.7749 GB, free: 71.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.7031, allocations: 0.9274 MB / 0.7758 GB, free: 70.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.7032, allocations: 9.812 kB / 0.7758 GB, free: 70.68 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003622/0.7068, allocations: 1.146 MB / 0.777 GB, free: 69.98 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005643/0.7074, allocations: 261.1 kB / 0.7772 GB, free: 69.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002937/0.7077, allocations: 16.34 kB / 0.7772 GB, free: 69.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009867/0.7087, allocations: 69.5 kB / 0.7773 GB, free: 69.71 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.009e-05/0.7088, allocations: 45.16 kB / 0.7773 GB, free: 69.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.539e-05/0.7089, allocations: 22.89 kB / 0.7773 GB, free: 69.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001425/0.7103, allocations: 0.7482 MB / 0.7781 GB, free: 69.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7103, allocations: 3.938 kB / 0.7781 GB, free: 69.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001967/0.7123, allocations: 0.5649 MB / 0.7786 GB, free: 69.15 MB / 0.5762 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.0009113/0.7132, allocations: 393.3 kB / 0.779 GB, free: 68.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003331/0.7165, allocations: 1.115 MB / 0.7801 GB, free: 68.48 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/0.7166, allocations: 2.188 kB / 0.7801 GB, free: 68.48 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.7174, allocations: 351.1 kB / 0.7804 GB, free: 68.31 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.7204, allocations: 0.5072 MB / 0.7809 GB, free: 68.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005574/0.726, allocations: 2.04 MB / 0.7829 GB, free: 66.83 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.7265, allocations: 1.058 MB / 0.784 GB, free: 65.97 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.7268, allocations: 86.75 kB / 0.784 GB, free: 65.95 MB / 0.5762 GB Notification: Performance of SimCode: time 9.22e-07/0.7269, allocations: 0 / 0.784 GB, free: 65.95 MB / 0.5762 GB Notification: Performance of Templates: time 0.02658/0.7534, allocations: 24.13 MB / 0.8076 GB, free: 43.11 MB / 0.5762 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)