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.001349/0.001356, allocations: 107.1 kB / 16.41 MB, free: 6.449 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.001428/0.001428, allocations: 187 kB / 17.34 MB, free: 5.719 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7742/0.7742, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 62.72 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.141, allocations: 80.21 MB / 0.6603 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05749/0.1985, allocations: 61.17 MB / 0.7201 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0166/0.2152, allocations: 11.97 MB / 0.7318 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.2175, allocations: 59.62 kB / 0.7318 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.2197, allocations: 0.6752 MB / 0.7325 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005735/0.2254, allocations: 1.959 MB / 0.7344 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003191/0.2287, allocations: 1.211 MB / 0.7356 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004509/0.2332, allocations: 3.083 MB / 0.7386 GB, free: 9.84 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001987/0.2352, allocations: 1.096 MB / 0.7397 GB, free: 8.715 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003662/0.2389, allocations: 1.364 MB / 0.741 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.2407, allocations: 0.8984 MB / 0.7419 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004047/0.2412, allocations: 112 kB / 0.742 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.2444, allocations: 1.439 MB / 0.7434 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004775/0.2449, allocations: 294.9 kB / 0.7437 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.2462, allocations: 0.692 MB / 0.7443 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004437/0.2507, allocations: 2.302 MB / 0.7466 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.2507, allocations: 0 / 0.7466 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2507, allocations: 0 / 0.7466 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.091e-05/0.2508, allocations: 0 / 0.7466 GB, free: 1.602 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.3095/0.5603, allocations: 1.724 MB / 0.7483 GB, free: 86.62 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5604, allocations: 9.844 kB / 0.7483 GB, free: 86.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002501/0.5629, allocations: 409.1 kB / 0.7487 GB, free: 86.56 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.5653, allocations: 1.156 MB / 0.7498 GB, free: 86.19 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.79e-05/0.5654, allocations: 62.75 kB / 0.7498 GB, free: 86.19 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.5655, allocations: 80.19 kB / 0.7499 GB, free: 86.19 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.5675, allocations: 1.004 MB / 0.7509 GB, free: 85.94 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.5675, allocations: 5.219 kB / 0.7509 GB, free: 85.94 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.5676, allocations: 32.41 kB / 0.7509 GB, free: 85.91 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.5676, allocations: 19.69 kB / 0.751 GB, free: 85.91 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.5698, allocations: 0.8597 MB / 0.7518 GB, free: 85.64 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.006248/0.576, allocations: 5.219 MB / 0.7569 GB, free: 81.64 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.5794, allocations: 0.7827 MB / 0.7577 GB, free: 81.43 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007104/0.5801, allocations: 298.1 kB / 0.7579 GB, free: 81.34 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004963/0.5806, allocations: 0.9016 MB / 0.7588 GB, free: 80.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.5807, allocations: 44.89 kB / 0.7589 GB, free: 80.25 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.855e-06/0.5807, allocations: 0 / 0.7589 GB, free: 80.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.008496/0.5892, allocations: 1.84 MB / 0.7607 GB, free: 79.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.5893, allocations: 56.64 kB / 0.7607 GB, free: 79.75 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002091/0.5914, allocations: 1.078 MB / 0.7618 GB, free: 79.31 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.5915, allocations: 34.11 kB / 0.7618 GB, free: 79.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.5919, allocations: 0.5349 MB / 0.7623 GB, free: 78.85 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.592, allocations: 148.2 kB / 0.7625 GB, free: 78.74 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.5922, allocations: 137.3 kB / 0.7626 GB, free: 78.67 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.368e-05/0.5923, allocations: 334.2 kB / 0.7629 GB, free: 78.35 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008362/0.5932, allocations: 310.2 kB / 0.7632 GB, free: 78.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.5942, allocations: 0.5329 MB / 0.7637 GB, free: 77.87 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.5957, allocations: 0.7178 MB / 0.7644 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.353e-06/0.5958, allocations: 2.156 kB / 0.7644 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002578/0.5984, allocations: 1.013 MB / 0.7654 GB, free: 77.09 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.5984, allocations: 7.297 kB / 0.7654 GB, free: 77.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.5984, allocations: 4.75 kB / 0.7654 GB, free: 77.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.5997, allocations: 313.3 kB / 0.7657 GB, free: 77.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/0.6002, allocations: 131.5 kB / 0.7659 GB, free: 77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.6015, allocations: 0.9024 MB / 0.7667 GB, free: 76.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.6029, allocations: 146.9 kB / 0.7669 GB, free: 76.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.368e-05/0.603, allocations: 35.88 kB / 0.7669 GB, free: 76.29 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001185/0.6042, allocations: 0.5092 MB / 0.7674 GB, free: 76.04 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009519/0.6051, allocations: 0.5321 MB / 0.7679 GB, free: 75.67 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001569/0.6067, allocations: 0.7078 MB / 0.7686 GB, free: 75.27 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.419e-06/0.6067, allocations: 1.312 kB / 0.7686 GB, free: 75.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002524/0.6093, allocations: 1.012 MB / 0.7696 GB, free: 74.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.6093, allocations: 6.719 kB / 0.7696 GB, free: 74.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.6093, allocations: 5.656 kB / 0.7696 GB, free: 74.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.6103, allocations: 296.2 kB / 0.7699 GB, free: 74.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005428/0.6109, allocations: 127.8 kB / 0.77 GB, free: 74.81 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.612, allocations: 0.892 MB / 0.7709 GB, free: 74.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.6134, allocations: 146 kB / 0.771 GB, free: 74.05 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.6135, allocations: 25.75 kB / 0.7711 GB, free: 74.04 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.0002505/0.6137, allocations: 224.9 kB / 0.7713 GB, free: 73.83 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.614, allocations: 112.1 kB / 0.7714 GB, free: 73.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/0.6174, allocations: 1.09 MB / 0.7725 GB, free: 73.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.6174, allocations: 5.25 kB / 0.7725 GB, free: 73.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.6174, allocations: 1.125 kB / 0.7725 GB, free: 73.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.6174, allocations: 3.984 kB / 0.7725 GB, free: 73.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.6222, allocations: 2.149 MB / 0.7746 GB, free: 71.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.6222, allocations: 4.703 kB / 0.7746 GB, free: 71.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.6225, allocations: 68.64 kB / 0.7746 GB, free: 71.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009484/0.6235, allocations: 293.8 kB / 0.7749 GB, free: 71.54 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.6235, allocations: 15.22 kB / 0.7749 GB, free: 71.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.6247, allocations: 0.9283 MB / 0.7758 GB, free: 70.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.6247, allocations: 1.938 kB / 0.7758 GB, free: 70.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003202/0.6279, allocations: 1.15 MB / 0.777 GB, free: 70.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005083/0.6285, allocations: 263.5 kB / 0.7772 GB, free: 69.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.6286, allocations: 13.5 kB / 0.7772 GB, free: 69.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007747/0.6294, allocations: 69.03 kB / 0.7773 GB, free: 69.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.241e-05/0.6295, allocations: 45.31 kB / 0.7773 GB, free: 69.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.6296, allocations: 19.12 kB / 0.7773 GB, free: 69.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001083/0.6306, allocations: 0.7512 MB / 0.7781 GB, free: 69.37 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6307, allocations: 1.375 kB / 0.7781 GB, free: 69.37 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001728/0.6324, allocations: 0.5644 MB / 0.7786 GB, free: 69.27 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.0007469/0.6332, allocations: 383.5 kB / 0.779 GB, free: 69.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002884/0.636, allocations: 1.115 MB / 0.7801 GB, free: 68.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6361, allocations: 3.938 kB / 0.7801 GB, free: 68.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.6368, allocations: 356 kB / 0.7804 GB, free: 68.43 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/0.639, allocations: 0.5139 MB / 0.7809 GB, free: 68.18 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004685/0.6437, allocations: 2.053 MB / 0.7829 GB, free: 66.94 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.6441, allocations: 1.058 MB / 0.784 GB, free: 66.07 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.6444, allocations: 82.7 kB / 0.7841 GB, free: 66.06 MB / 0.5762 GB Notification: Performance of SimCode: time 9.11e-07/0.6444, allocations: 0 / 0.7841 GB, free: 66.06 MB / 0.5762 GB Notification: Performance of Templates: time 0.02567/0.6701, allocations: 24.29 MB / 0.8078 GB, free: 43.08 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)