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.001504/0.001504, allocations: 108.3 kB / 15.99 MB, free: 6.359 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.001795/0.001795, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.327/1.327, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7428/0.7428, allocations: 132.2 MB / 422.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001538, allocations: 59.91 kB / 0.5019 GB, free: 12.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4032, allocations: 80.2 MB / 0.5802 GB, free: 27.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05017/0.4534, allocations: 60.67 MB / 0.6395 GB, free: 1.676 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.4703, allocations: 11.9 MB / 0.6511 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002741/0.473, allocations: 55.62 kB / 0.6511 GB, free: 5.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.4754, allocations: 0.5789 MB / 0.6517 GB, free: 5.109 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005516/0.481, allocations: 1.823 MB / 0.6535 GB, free: 3.281 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.484, allocations: 1.089 MB / 0.6545 GB, free: 2.207 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004248/0.4882, allocations: 3.11 MB / 0.6576 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.4898, allocations: 1.1 MB / 0.6586 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.493, allocations: 1.329 MB / 0.6599 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001496/0.4945, allocations: 0.9295 MB / 0.6609 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.4947, allocations: 116 kB / 0.661 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002774/0.4975, allocations: 1.454 MB / 0.6624 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.4978, allocations: 286.9 kB / 0.6627 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008819/0.4987, allocations: 0.6959 MB / 0.6633 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002559/0.5013, allocations: 1.766 MB / 0.6651 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5013, allocations: 0 / 0.6651 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5013, allocations: 0 / 0.6651 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.157e-05/0.5013, allocations: 4 kB / 0.6651 GB, free: 7.363 MB / 0.4981 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.003159/0.5045, allocations: 1.715 MB / 0.6667 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.5046, allocations: 12.02 kB / 0.6667 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002144/0.5067, allocations: 406.9 kB / 0.6671 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.5088, allocations: 1.128 MB / 0.6682 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/0.5092, allocations: 121.9 kB / 0.6684 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.5093, allocations: 87.92 kB / 0.6684 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.5114, allocations: 0.9778 MB / 0.6694 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.5114, allocations: 0 / 0.6694 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/0.5115, allocations: 35.98 kB / 0.6694 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.5115, allocations: 20 kB / 0.6694 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.5138, allocations: 0.8625 MB / 0.6703 GB, free: 1.844 MB / 0.4981 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.006837/0.5206, allocations: 4.844 MB / 0.675 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00331/0.524, allocations: 0.7936 MB / 0.6758 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000712/0.5247, allocations: 304.6 kB / 0.6761 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007171/0.5254, allocations: 0.9025 MB / 0.677 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/0.5255, allocations: 38.52 kB / 0.677 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 2.284e-06/0.5255, allocations: 0 / 0.677 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.008416/0.5339, allocations: 1.918 MB / 0.6789 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.534, allocations: 55.41 kB / 0.6789 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.5358, allocations: 1.055 MB / 0.68 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.5359, allocations: 37.7 kB / 0.68 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004102/0.5363, allocations: 0.5157 MB / 0.6805 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.5365, allocations: 153.8 kB / 0.6806 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.5367, allocations: 126 kB / 0.6808 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5368, allocations: 330 kB / 0.6811 GB, free: 6.129 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008645/0.5377, allocations: 306.9 kB / 0.6814 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.5387, allocations: 0.5064 MB / 0.6819 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.5403, allocations: 0.6888 MB / 0.6825 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.5403, allocations: 4 kB / 0.6825 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002713/0.5431, allocations: 0.9772 MB / 0.6835 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.5431, allocations: 11.92 kB / 0.6835 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.5431, allocations: 8 kB / 0.6835 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.5444, allocations: 324.3 kB / 0.6838 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/0.5449, allocations: 115.8 kB / 0.6839 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.5464, allocations: 0.9229 MB / 0.6848 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.5478, allocations: 171.3 kB / 0.685 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.859e-05/0.5479, allocations: 27.98 kB / 0.685 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001163/0.549, allocations: 0.5088 MB / 0.6855 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009952/0.55, allocations: 0.5061 MB / 0.686 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001516/0.5516, allocations: 0.6641 MB / 0.6867 GB, free: 72 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.24e-06/0.5516, allocations: 4 kB / 0.6867 GB, free: 68 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002685/0.5543, allocations: 0.9845 MB / 0.6876 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5543, allocations: 6.5 kB / 0.6876 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5543, allocations: 11.94 kB / 0.6877 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.5554, allocations: 313 kB / 0.6879 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005206/0.556, allocations: 115.9 kB / 0.6881 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.5574, allocations: 0.9113 MB / 0.689 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.5588, allocations: 151.6 kB / 0.6891 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-05/0.5589, allocations: 31.92 kB / 0.6891 GB, free: 13.52 MB / 0.5294 GB 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.0002784/0.5591, allocations: 212.1 kB / 0.6893 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.5594, allocations: 110.7 kB / 0.6894 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.5631, allocations: 1.109 MB / 0.6905 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.5631, allocations: 4 kB / 0.6905 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5632, allocations: 0 / 0.6905 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.5632, allocations: 3.984 kB / 0.6905 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00529/0.5685, allocations: 2.163 MB / 0.6926 GB, free: 9.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.5685, allocations: 4 kB / 0.6926 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.5688, allocations: 59.89 kB / 0.6927 GB, free: 9.746 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.5699, allocations: 304.8 kB / 0.693 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.57, allocations: 19.98 kB / 0.693 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.5714, allocations: 0.9347 MB / 0.6939 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.5715, allocations: 8.062 kB / 0.6939 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/0.575, allocations: 1.166 MB / 0.6951 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005339/0.5755, allocations: 267.5 kB / 0.6953 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.5756, allocations: 11.98 kB / 0.6953 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008583/0.5765, allocations: 103.8 kB / 0.6954 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.5766, allocations: 35.89 kB / 0.6955 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.5767, allocations: 23.98 kB / 0.6955 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00117/0.5778, allocations: 0.7389 MB / 0.6962 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5778, allocations: 0 / 0.6962 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001533/0.5794, allocations: 0.5613 MB / 0.6968 GB, free: 5.48 MB / 0.5294 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.0008086/0.5802, allocations: 383.5 kB / 0.6971 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003108/0.5833, allocations: 1.114 MB / 0.6982 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.5833, allocations: 0 / 0.6982 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00087/0.5842, allocations: 350.4 kB / 0.6985 GB, free: 3.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.5866, allocations: 0.5104 MB / 0.699 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005597/0.5922, allocations: 2.456 MB / 0.7014 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006694/0.5929, allocations: 1.065 MB / 0.7025 GB, free: 15.56 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.5932, allocations: 83.36 kB / 0.7026 GB, free: 15.48 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.5932, allocations: 0 / 0.7026 GB, free: 15.48 MB / 0.545 GB Notification: Performance of Templates: time 0.03213/0.6253, allocations: 23.77 MB / 0.7258 GB, free: 7.883 MB / 0.5606 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)