Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y") translateModel(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008076/0.0008075, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008407/0.0008407, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001897/0.001897, allocations: 275.1 kB / 291.4 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9353/0.9353, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003957, allocations: 11.69 kB / 0.598 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.133, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y): time 0.06362/0.1967, allocations: 69.4 MB / 0.7522 GB, free: 9.898 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.2858/0.4825, allocations: 14.17 MB / 0.7661 GB, free: 31.05 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.4843, allocations: 56.66 kB / 0.7661 GB, free: 31.05 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.4858, allocations: 0.5708 MB / 0.7667 GB, free: 31.05 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004779/0.4906, allocations: 1.982 MB / 0.7686 GB, free: 31.02 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.4931, allocations: 0.975 MB / 0.7696 GB, free: 30.99 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005636/0.4988, allocations: 4.809 MB / 0.7743 GB, free: 30.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.5004, allocations: 1.031 MB / 0.7753 GB, free: 30.87 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002582/0.503, allocations: 1.276 MB / 0.7765 GB, free: 30.64 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001887/0.5049, allocations: 1.076 MB / 0.7776 GB, free: 30.4 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001974/0.5051, allocations: 55.28 kB / 0.7776 GB, free: 30.4 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.5076, allocations: 0.9247 MB / 0.7785 GB, free: 30.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.5079, allocations: 273.7 kB / 0.7788 GB, free: 30.23 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004838/0.5084, allocations: 357.5 kB / 0.7791 GB, free: 30.15 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.5105, allocations: 2.076 MB / 0.7812 GB, free: 30 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.5105, allocations: 0 / 0.7812 GB, free: 30 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5105, allocations: 0 / 0.7812 GB, free: 30 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.123e-05/0.5105, allocations: 0 / 0.7812 GB, free: 30 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002785/0.5133, allocations: 1.804 MB / 0.7829 GB, free: 28.98 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.5133, allocations: 9.25 kB / 0.7829 GB, free: 28.98 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006909/0.514, allocations: 249.6 kB / 0.7832 GB, free: 28.88 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.516, allocations: 1.439 MB / 0.7846 GB, free: 28.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.083e-05/0.5161, allocations: 78.78 kB / 0.7847 GB, free: 28.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.5162, allocations: 100 kB / 0.7848 GB, free: 28.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.5181, allocations: 1.114 MB / 0.7858 GB, free: 28.35 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.5181, allocations: 3.375 kB / 0.7858 GB, free: 28.35 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-05/0.5182, allocations: 40.3 kB / 0.7859 GB, free: 28.35 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/0.5182, allocations: 28.56 kB / 0.7859 GB, free: 28.35 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.52, allocations: 0.9256 MB / 0.7868 GB, free: 28.33 MB / 0.545 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.00479/0.5248, allocations: 4.923 MB / 0.7916 GB, free: 26.08 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5263, allocations: 0.6323 MB / 0.7922 GB, free: 26.04 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/0.527, allocations: 373.2 kB / 0.7926 GB, free: 26.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004016/0.5274, allocations: 0.8244 MB / 0.7934 GB, free: 25.08 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.5274, allocations: 40.06 kB / 0.7934 GB, free: 25.04 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 1.934e-06/0.5274, allocations: 0 / 0.7934 GB, free: 25.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.006343/0.5338, allocations: 1.895 MB / 0.7953 GB, free: 24.76 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/0.5338, allocations: 58.19 kB / 0.7953 GB, free: 24.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.5353, allocations: 1.201 MB / 0.7965 GB, free: 24.53 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.5354, allocations: 43.98 kB / 0.7966 GB, free: 24.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/0.5358, allocations: 0.6052 MB / 0.7972 GB, free: 24.29 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.5359, allocations: 208.4 kB / 0.7974 GB, free: 24.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/0.536, allocations: 18.09 kB / 0.7974 GB, free: 24.15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.311e-05/0.536, allocations: 335.1 kB / 0.7977 GB, free: 23.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006058/0.5366, allocations: 297.1 kB / 0.798 GB, free: 23.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.5374, allocations: 0.5012 MB / 0.7985 GB, free: 23.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.538, allocations: 360.1 kB / 0.7988 GB, free: 23.47 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.5381, allocations: 5.062 kB / 0.7988 GB, free: 23.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004144/0.5422, allocations: 1.39 MB / 0.8002 GB, free: 23.06 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.447e-05/0.5423, allocations: 206.1 kB / 0.8004 GB, free: 22.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.5423, allocations: 4.688 kB / 0.8004 GB, free: 22.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/0.5428, allocations: 143.8 kB / 0.8005 GB, free: 22.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005875/0.5434, allocations: 167.3 kB / 0.8007 GB, free: 22.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006487/0.5441, allocations: 0.7119 MB / 0.8014 GB, free: 22.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.5451, allocations: 169.8 kB / 0.8015 GB, free: 22.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-05/0.5452, allocations: 32.73 kB / 0.8016 GB, free: 22.11 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.513e-06/0.5452, allocations: 2.75 kB / 0.8016 GB, free: 22.11 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003866/0.5491, allocations: 1.253 MB / 0.8028 GB, free: 21.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.5491, allocations: 3.938 kB / 0.8028 GB, free: 21.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004352/0.5496, allocations: 149.5 kB / 0.8029 GB, free: 21.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.5501, allocations: 164.2 kB / 0.8031 GB, free: 21.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006089/0.5507, allocations: 0.7128 MB / 0.8038 GB, free: 21.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009236/0.5517, allocations: 157.7 kB / 0.8039 GB, free: 21.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.036e-05/0.5518, allocations: 38.83 kB / 0.804 GB, free: 21.07 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005477/0.5523, allocations: 422.5 kB / 0.8044 GB, free: 20.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.5525, allocations: 138 kB / 0.8045 GB, free: 20.79 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/0.5565, allocations: 1.393 MB / 0.8059 GB, free: 20.35 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.5565, allocations: 10.66 kB / 0.8059 GB, free: 20.35 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.5565, allocations: 0 / 0.8059 GB, free: 20.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003498/0.56, allocations: 1.234 MB / 0.8071 GB, free: 19.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/0.5654, allocations: 2.737 MB / 0.8097 GB, free: 18.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.5654, allocations: 2.938 kB / 0.8098 GB, free: 18.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.5658, allocations: 122.7 kB / 0.8099 GB, free: 18.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003994/0.5662, allocations: 143.1 kB / 0.81 GB, free: 18.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.5663, allocations: 18.36 kB / 0.81 GB, free: 18.65 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003788/0.5701, allocations: 2.478 MB / 0.8124 GB, free: 16.96 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.5701, allocations: 2.594 kB / 0.8124 GB, free: 16.96 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/0.5745, allocations: 1.852 MB / 0.8143 GB, free: 16.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005678/0.5751, allocations: 332.8 kB / 0.8146 GB, free: 16.04 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.5753, allocations: 19.77 kB / 0.8146 GB, free: 16.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00081/0.5761, allocations: 100.7 kB / 0.8147 GB, free: 16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.5762, allocations: 59.5 kB / 0.8147 GB, free: 15.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.5763, allocations: 39.97 kB / 0.8148 GB, free: 15.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001094/0.5774, allocations: 0.8559 MB / 0.8156 GB, free: 15.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5774, allocations: 0 / 0.8156 GB, free: 15.73 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001668/0.5791, allocations: 0.7078 MB / 0.8163 GB, free: 15.63 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006814/0.5798, allocations: 422.1 kB / 0.8167 GB, free: 15.43 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002177/0.582, allocations: 1.164 MB / 0.8178 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.582, allocations: 0 / 0.8178 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.5832, allocations: 0.5978 MB / 0.8184 GB, free: 14.98 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/0.5862, allocations: 0.7671 MB / 0.8192 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.5893, allocations: 2.755 MB / 0.8219 GB, free: 13.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.5898, allocations: 1.189 MB / 0.823 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001076/0.5909, allocations: 304.3 kB / 0.8233 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.5911, allocations: 103.1 kB / 0.8234 GB, free: 12.02 MB / 0.545 GB Notification: Performance of SimCode: time 4.4e-07/0.5911, allocations: 0 / 0.8234 GB, free: 12.02 MB / 0.545 GB Notification: Performance of Templates: time 0.03999/0.6311, allocations: 29.42 MB / 0.8521 GB, free: 15.24 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)