Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.007151/0.00715, allocations: 96.31 kB / 15.73 MB, free: 6.035 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.001711/0.001711, allocations: 195.6 kB / 16.67 MB, free: 5.961 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9469/0.9469, allocations: 135.1 MB / 425.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 0.5856 GB, free: 3.328 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4122/0.4136, allocations: 80.91 MB / 0.6646 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06643/0.4801, allocations: 61.18 MB / 0.7244 GB, free: 4.23 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01996/0.5001, allocations: 11.97 MB / 0.7361 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002992/0.5031, allocations: 59.62 kB / 0.7361 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002539/0.5057, allocations: 0.6791 MB / 0.7368 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006798/0.5126, allocations: 1.959 MB / 0.7387 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003305/0.5159, allocations: 1.218 MB / 0.7399 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004586/0.5205, allocations: 3.075 MB / 0.7429 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001987/0.5225, allocations: 1.096 MB / 0.744 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003504/0.526, allocations: 1.354 MB / 0.7453 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001898/0.5279, allocations: 0.8828 MB / 0.7462 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.5283, allocations: 116 kB / 0.7463 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003408/0.5318, allocations: 1.439 MB / 0.7477 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000386/0.5322, allocations: 286.9 kB / 0.7479 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008764/0.533, allocations: 0.6958 MB / 0.7486 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003329/0.5364, allocations: 2.314 MB / 0.7509 GB, free: 9.012 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5364, allocations: 0 / 0.7509 GB, free: 9.012 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5364, allocations: 0 / 0.7509 GB, free: 9.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.5364, allocations: 4 kB / 0.7509 GB, free: 9.008 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.002825/0.5393, allocations: 1.767 MB / 0.7526 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.5393, allocations: 16.02 kB / 0.7526 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.5416, allocations: 411.4 kB / 0.753 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.5436, allocations: 1.168 MB / 0.7542 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.5437, allocations: 66 kB / 0.7542 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.5438, allocations: 80 kB / 0.7543 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.5458, allocations: 0.9976 MB / 0.7553 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.5458, allocations: 4 kB / 0.7553 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.5459, allocations: 32 kB / 0.7553 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.5459, allocations: 20 kB / 0.7553 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.5481, allocations: 0.8546 MB / 0.7562 GB, free: 3.422 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.007114/0.5552, allocations: 5.24 MB / 0.7613 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004305/0.5595, allocations: 0.7841 MB / 0.762 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000946/0.5605, allocations: 300.6 kB / 0.7623 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000898/0.5614, allocations: 0.9063 MB / 0.7632 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.5615, allocations: 38.56 kB / 0.7633 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 3.136e-06/0.5615, allocations: 4 kB / 0.7633 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.01068/0.5722, allocations: 1.854 MB / 0.7651 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.5723, allocations: 55.41 kB / 0.7651 GB, free: 9.609 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/0.5748, allocations: 1.072 MB / 0.7662 GB, free: 8.523 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.5749, allocations: 37.7 kB / 0.7662 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006208/0.5755, allocations: 0.5398 MB / 0.7667 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.5758, allocations: 158.6 kB / 0.7669 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000375/0.5762, allocations: 134.2 kB / 0.767 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.5764, allocations: 330 kB / 0.7673 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.5776, allocations: 307.3 kB / 0.7676 GB, free: 7.012 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.5792, allocations: 0.5346 MB / 0.7681 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.5811, allocations: 0.7174 MB / 0.7688 GB, free: 5.594 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.5811, allocations: 4 kB / 0.7688 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003333/0.5845, allocations: 1.012 MB / 0.7698 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.5845, allocations: 11.98 kB / 0.7698 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.5845, allocations: 4 kB / 0.7698 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.5863, allocations: 316.7 kB / 0.7701 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008163/0.5871, allocations: 123.8 kB / 0.7703 GB, free: 4.117 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.5892, allocations: 0.9068 MB / 0.7712 GB, free: 3.188 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.5911, allocations: 155.4 kB / 0.7713 GB, free: 3.035 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.5913, allocations: 31.98 kB / 0.7713 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001747/0.593, allocations: 0.509 MB / 0.7718 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001481/0.5945, allocations: 0.5268 MB / 0.7723 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002315/0.5969, allocations: 0.7098 MB / 0.773 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.492e-06/0.5969, allocations: 0 / 0.773 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.00388/0.6008, allocations: 1.017 MB / 0.774 GB, free: 60 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.6008, allocations: 10.19 kB / 0.774 GB, free: 52 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.6008, allocations: 4 kB / 0.774 GB, free: 48 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.6024, allocations: 300.7 kB / 0.7743 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007918/0.6032, allocations: 123.8 kB / 0.7744 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/0.6053, allocations: 0.8996 MB / 0.7753 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.6071, allocations: 139.7 kB / 0.7755 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.6072, allocations: 31.92 kB / 0.7755 GB, free: 14.54 MB / 0.6075 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.0003439/0.6075, allocations: 225.6 kB / 0.7757 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/0.608, allocations: 111.3 kB / 0.7758 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005092/0.6131, allocations: 1.09 MB / 0.7769 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.6131, allocations: 8 kB / 0.7769 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.6131, allocations: 0 / 0.7769 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.6131, allocations: 3.984 kB / 0.7769 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006188/0.6193, allocations: 2.15 MB / 0.779 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.6194, allocations: 4 kB / 0.779 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.6197, allocations: 63.89 kB / 0.7791 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.6209, allocations: 300.7 kB / 0.7793 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.6209, allocations: 16 kB / 0.7794 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.6225, allocations: 0.927 MB / 0.7803 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6225, allocations: 0 / 0.7803 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003566/0.6261, allocations: 1.161 MB / 0.7814 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.6267, allocations: 272.1 kB / 0.7817 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.6269, allocations: 8 kB / 0.7817 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/0.6279, allocations: 71.91 kB / 0.7817 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.628, allocations: 43.83 kB / 0.7818 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.6281, allocations: 23.98 kB / 0.7818 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001386/0.6295, allocations: 0.7512 MB / 0.7825 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6295, allocations: 0 / 0.7825 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002018/0.6315, allocations: 0.5653 MB / 0.7831 GB, free: 6.555 MB / 0.6075 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.001028/0.6326, allocations: 394.2 kB / 0.7835 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00333/0.6359, allocations: 1.12 MB / 0.7845 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.6359, allocations: 1 kB / 0.7845 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009101/0.6369, allocations: 338.8 kB / 0.7849 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002577/0.6394, allocations: 0.5129 MB / 0.7854 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005182/0.6446, allocations: 2.044 MB / 0.7874 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.6453, allocations: 1.061 MB / 0.7884 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0008429/0.6462, allocations: 228.8 kB / 0.7886 GB, free: 0.7891 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.6464, allocations: 75.42 kB / 0.7887 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of SimCode: time 2.164e-06/0.6464, allocations: 0 / 0.7887 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of Templates: time 0.0427/0.6891, allocations: 25.1 MB / 0.8132 GB, free: 7.891 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)