Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001433/0.001433, allocations: 106.9 kB / 15.99 MB, free: 6.352 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.001664/0.001664, allocations: 191.3 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.452/1.452, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7481/0.7481, allocations: 122.9 MB / 413.6 MB, free: 68 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.91 kB / 0.4906 GB, free: 7.809 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3112, allocations: 77.92 MB / 0.5667 GB, free: 32.17 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05011/0.3613, allocations: 60.65 MB / 0.6259 GB, free: 14.26 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01616/0.3775, allocations: 11.9 MB / 0.6375 GB, free: 2.324 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.3794, allocations: 55.62 kB / 0.6376 GB, free: 2.27 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.3811, allocations: 0.579 MB / 0.6381 GB, free: 1.688 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004698/0.3858, allocations: 1.83 MB / 0.6399 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002714/0.3885, allocations: 1.098 MB / 0.641 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003692/0.3922, allocations: 3.106 MB / 0.644 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001423/0.3937, allocations: 1.098 MB / 0.6451 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002779/0.3965, allocations: 1.333 MB / 0.6464 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.3976, allocations: 0.9295 MB / 0.6473 GB, free: 8.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.3978, allocations: 120 kB / 0.6474 GB, free: 8.137 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.4002, allocations: 1.45 MB / 0.6489 GB, free: 6.684 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.4005, allocations: 294.8 kB / 0.6491 GB, free: 6.395 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006748/0.4012, allocations: 0.692 MB / 0.6498 GB, free: 5.699 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.404, allocations: 2.279 MB / 0.652 GB, free: 3.414 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.404, allocations: 0 / 0.652 GB, free: 3.414 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.404, allocations: 0 / 0.652 GB, free: 3.414 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.4041, allocations: 0 / 0.652 GB, free: 3.414 MB / 494.1 MB 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.002841/0.4069, allocations: 1.719 MB / 0.6537 GB, free: 1.633 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.407, allocations: 8.625 kB / 0.6537 GB, free: 1.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002203/0.4092, allocations: 414.8 kB / 0.6541 GB, free: 1.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.4111, allocations: 1.124 MB / 0.6552 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003629/0.4115, allocations: 117.9 kB / 0.6553 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.4116, allocations: 87.98 kB / 0.6554 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.4136, allocations: 0.9778 MB / 0.6564 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.4137, allocations: 3.938 kB / 0.6564 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.237e-05/0.4137, allocations: 32 kB / 0.6564 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.4138, allocations: 20 kB / 0.6564 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002272/0.416, allocations: 0.8587 MB / 0.6573 GB, free: 13.9 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.006281/0.4223, allocations: 4.857 MB / 0.662 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003423/0.4258, allocations: 0.7959 MB / 0.6628 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007025/0.4265, allocations: 300.7 kB / 0.6631 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000655/0.4272, allocations: 0.9024 MB / 0.6639 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4272, allocations: 38.5 kB / 0.664 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.4272, allocations: 0 / 0.664 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.008524/0.4358, allocations: 1.918 MB / 0.6659 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.4358, allocations: 55.41 kB / 0.6659 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.4375, allocations: 1.048 MB / 0.6669 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.4376, allocations: 37.7 kB / 0.667 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.438, allocations: 0.5195 MB / 0.6675 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.4382, allocations: 157.8 kB / 0.6676 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.4384, allocations: 126.1 kB / 0.6677 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4385, allocations: 330 kB / 0.6681 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.4395, allocations: 302.9 kB / 0.6683 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.4405, allocations: 0.5091 MB / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.4421, allocations: 0.6967 MB / 0.6695 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4422, allocations: 0 / 0.6695 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00273/0.4449, allocations: 0.9926 MB / 0.6705 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.4449, allocations: 8 kB / 0.6705 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4449, allocations: 4.438 kB / 0.6705 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.4462, allocations: 312.7 kB / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.4468, allocations: 115.8 kB / 0.6709 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.4483, allocations: 0.919 MB / 0.6718 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.4495, allocations: 163.3 kB / 0.672 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.05e-05/0.4496, allocations: 39.92 kB / 0.672 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001188/0.4508, allocations: 0.5058 MB / 0.6725 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001012/0.4518, allocations: 0.5022 MB / 0.673 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001576/0.4534, allocations: 0.6677 MB / 0.6736 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.544e-06/0.4534, allocations: 3.938 kB / 0.6736 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002693/0.4561, allocations: 0.9809 MB / 0.6746 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4562, allocations: 11.94 kB / 0.6746 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4562, allocations: 4 kB / 0.6746 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.4573, allocations: 313 kB / 0.6749 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005299/0.4578, allocations: 119.8 kB / 0.675 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.4592, allocations: 0.9063 MB / 0.6759 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.4605, allocations: 157.5 kB / 0.6761 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.4606, allocations: 27.98 kB / 0.6761 GB, free: 9.578 MB / 0.5137 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.000216/0.4608, allocations: 220 kB / 0.6763 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.461, allocations: 106.7 kB / 0.6764 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/0.4648, allocations: 1.101 MB / 0.6775 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.4648, allocations: 7.984 kB / 0.6775 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.4648, allocations: 3.938 kB / 0.6775 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4648, allocations: 4 kB / 0.6775 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005006/0.4698, allocations: 2.167 MB / 0.6796 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4699, allocations: 4.281 kB / 0.6796 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.4702, allocations: 67.89 kB / 0.6797 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009995/0.4712, allocations: 303.1 kB / 0.68 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.4712, allocations: 12 kB / 0.68 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.4727, allocations: 0.9463 MB / 0.6809 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4727, allocations: 7.984 kB / 0.6809 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/0.4762, allocations: 1.163 MB / 0.682 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004115/0.4766, allocations: 263.5 kB / 0.6823 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.4768, allocations: 12 kB / 0.6823 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008943/0.4777, allocations: 99.8 kB / 0.6824 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4778, allocations: 39.83 kB / 0.6824 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.4779, allocations: 19.98 kB / 0.6825 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001181/0.479, allocations: 0.7389 MB / 0.6832 GB, free: 2.105 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.61e-07/0.479, allocations: 3.938 kB / 0.6832 GB, free: 2.102 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001524/0.4806, allocations: 0.5613 MB / 0.6837 GB, free: 1.539 MB / 0.5137 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.0007451/0.4813, allocations: 372.5 kB / 0.6841 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003349/0.4847, allocations: 1.125 MB / 0.6852 GB, free: 56 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4847, allocations: 0 / 0.6852 GB, free: 56 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008879/0.4856, allocations: 351.2 kB / 0.6855 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.4878, allocations: 0.5018 MB / 0.686 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005116/0.4929, allocations: 2.427 MB / 0.6884 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.4935, allocations: 1.069 MB / 0.6894 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0008259/0.4944, allocations: 207.5 kB / 0.6896 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.4945, allocations: 79.41 kB / 0.6897 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/0.4945, allocations: 3.938 kB / 0.6897 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of Templates: time 0.0376/0.5322, allocations: 24.52 MB / 0.7137 GB, free: 3.148 MB / 0.545 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)