Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006204/0.006204, allocations: 99.8 kB / 15.73 MB, free: 5.555 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.001247/0.001247, allocations: 196 kB / 16.68 MB, free: 5.484 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7105/0.7105, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 74.17 kB / 0.5814 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1574, allocations: 80.2 MB / 0.6597 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.0549/0.2123, allocations: 61.2 MB / 0.7194 GB, free: 80 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01509/0.2275, allocations: 11.97 MB / 0.7311 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.2296, allocations: 55.69 kB / 0.7312 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002213/0.2319, allocations: 0.6829 MB / 0.7319 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006172/0.2381, allocations: 1.969 MB / 0.7338 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003199/0.2413, allocations: 1.216 MB / 0.735 GB, free: 156 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004402/0.2457, allocations: 3.071 MB / 0.738 GB, free: 13.07 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.2472, allocations: 1.131 MB / 0.7391 GB, free: 11.91 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.2499, allocations: 1.327 MB / 0.7404 GB, free: 10.57 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.2511, allocations: 0.9101 MB / 0.7413 GB, free: 9.66 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0001646/0.2512, allocations: 120 kB / 0.7414 GB, free: 9.543 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002515/0.2538, allocations: 1.447 MB / 0.7428 GB, free: 8.094 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.254, allocations: 302.8 kB / 0.7431 GB, free: 7.797 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0006332/0.2547, allocations: 0.7075 MB / 0.7438 GB, free: 7.086 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.002861/0.2575, allocations: 2.34 MB / 0.746 GB, free: 4.738 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2575, allocations: 0 / 0.746 GB, free: 4.738 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2576, allocations: 0 / 0.746 GB, free: 4.738 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 1.517e-05/0.2576, allocations: 0 / 0.746 GB, free: 4.738 MB / 0.5763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.002758/0.2603, allocations: 1.79 MB / 0.7478 GB, free: 2.887 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.2604, allocations: 8.031 kB / 0.7478 GB, free: 2.879 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002272/0.2627, allocations: 471.3 kB / 0.7483 GB, free: 2.418 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.2646, allocations: 1.18 MB / 0.7494 GB, free: 1.18 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.915e-05/0.2646, allocations: 62 kB / 0.7495 GB, free: 1.121 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.2648, allocations: 84 kB / 0.7495 GB, free: 1.039 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.2667, allocations: 1.002 MB / 0.7505 GB, free: 4 kB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.2667, allocations: 0 / 0.7505 GB, free: 4 kB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.99e-05/0.2668, allocations: 32.08 kB / 0.7506 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.2668, allocations: 16 kB / 0.7506 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.2692, allocations: 0.9523 MB / 0.7515 GB, free: 15 MB / 0.5919 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.005251/0.2744, allocations: 4.666 MB / 0.7561 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003713/0.2782, allocations: 0.9886 MB / 0.757 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009764/0.2792, allocations: 411.9 kB / 0.7574 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008831/0.28, allocations: 1.017 MB / 0.7584 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.2801, allocations: 39 kB / 0.7584 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=53): time 1.773e-06/0.2801, allocations: 0 / 0.7584 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53): time 0.008685/0.2888, allocations: 2.182 MB / 0.7606 GB, free: 5.09 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.2888, allocations: 55.84 kB / 0.7606 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.2899, allocations: 0.9393 MB / 0.7615 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.671e-05/0.29, allocations: 37.7 kB / 0.7616 GB, free: 4.023 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.2904, allocations: 0.5125 MB / 0.7621 GB, free: 3.508 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.2905, allocations: 194.3 kB / 0.7623 GB, free: 3.316 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.2907, allocations: 130.1 kB / 0.7624 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.2908, allocations: 330 kB / 0.7627 GB, free: 2.855 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009573/0.2918, allocations: 354.9 kB / 0.763 GB, free: 2.504 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.2929, allocations: 0.5077 MB / 0.7635 GB, free: 1.938 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/0.2948, allocations: 0.758 MB / 0.7643 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2948, allocations: 0 / 0.7643 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002625/0.2974, allocations: 1.065 MB / 0.7653 GB, free: 76 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2974, allocations: 4 kB / 0.7653 GB, free: 72 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.2974, allocations: 8.312 kB / 0.7653 GB, free: 64 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.2986, allocations: 300.6 kB / 0.7656 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.2992, allocations: 135.7 kB / 0.7657 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.3005, allocations: 0.9024 MB / 0.7666 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008913/0.3014, allocations: 131.5 kB / 0.7668 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.3016, allocations: 27.98 kB / 0.7668 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001226/0.3028, allocations: 0.5485 MB / 0.7673 GB, free: 14 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001069/0.3039, allocations: 0.5116 MB / 0.7678 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001913/0.3058, allocations: 0.7501 MB / 0.7685 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.3058, allocations: 0 / 0.7685 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00281/0.3086, allocations: 1.053 MB / 0.7696 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.3087, allocations: 7.938 kB / 0.7696 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.3087, allocations: 7.938 kB / 0.7696 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.3097, allocations: 296.9 kB / 0.7699 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.3103, allocations: 131.8 kB / 0.77 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3116, allocations: 0.8915 MB / 0.7709 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.3126, allocations: 111.7 kB / 0.771 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.867e-05/0.3127, allocations: 31.98 kB / 0.771 GB, free: 10.08 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * 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.0002374/0.3129, allocations: 216.1 kB / 0.7712 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.3131, allocations: 111.3 kB / 0.7713 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004274/0.3174, allocations: 1.307 MB / 0.7726 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.3174, allocations: 8 kB / 0.7726 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3175, allocations: 0 / 0.7726 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.3175, allocations: 7.922 kB / 0.7726 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005805/0.3233, allocations: 2.416 MB / 0.775 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.3233, allocations: 0 / 0.775 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000524/0.3238, allocations: 108 kB / 0.7751 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009666/0.3248, allocations: 292.5 kB / 0.7754 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.098e-05/0.3249, allocations: 15.98 kB / 0.7754 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.3264, allocations: 0.9253 MB / 0.7763 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3264, allocations: 4.031 kB / 0.7763 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.3306, allocations: 1.332 MB / 0.7776 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005255/0.3311, allocations: 288.1 kB / 0.7779 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.3313, allocations: 15.95 kB / 0.7779 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007831/0.332, allocations: 75.91 kB / 0.7779 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.3321, allocations: 36.33 kB / 0.778 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.823e-05/0.3322, allocations: 27.98 kB / 0.778 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000891/0.3331, allocations: 0.6674 MB / 0.7787 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3331, allocations: 0 / 0.7787 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00139/0.3345, allocations: 0.5769 MB / 0.7792 GB, free: 1.492 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0007591/0.3353, allocations: 385 kB / 0.7796 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003494/0.3388, allocations: 1.307 MB / 0.7809 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3388, allocations: 4 kB / 0.7809 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.34, allocations: 452.8 kB / 0.7813 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.3419, allocations: 0.4941 MB / 0.7818 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003437/0.3454, allocations: 1.908 MB / 0.7836 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.346, allocations: 1.062 MB / 0.7847 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0007918/0.3468, allocations: 246.6 kB / 0.7849 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.347, allocations: 83.36 kB / 0.785 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of SimCode: time 2.61e-07/0.347, allocations: 0 / 0.785 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of Templates: time 0.03595/0.3829, allocations: 24.86 MB / 0.8093 GB, free: 2.988 MB / 0.6388 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)