Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009908/0.0009908, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.179/1.179, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001523/0.001523, allocations: 113 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004121/0.0004122, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07582/0.07625, allocations: 44.49 MB / 355 MB, free: 2.355 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.763/4.84, allocations: 2.661 GB / 3.008 GB, free: 108.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/4.84, allocations: 80.41 kB / 3.008 GB, free: 108.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.013/7.854, allocations: 1.025 GB / 4.032 GB, free: 27.85 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.604e-06/7.854, allocations: 2.078 kB / 4.032 GB, free: 27.85 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002113/7.854, allocations: 69.59 kB / 4.033 GB, free: 27.84 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01551/7.869, allocations: 4.69 MB / 4.037 GB, free: 25.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/7.869, allocations: 16.88 kB / 4.037 GB, free: 25.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007763/7.877, allocations: 1.025 MB / 4.038 GB, free: 25.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00617/7.883, allocations: 2.223 MB / 4.04 GB, free: 24.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/7.884, allocations: 282.4 kB / 4.041 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006991/7.884, allocations: 252.3 kB / 4.041 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008071/7.892, allocations: 4.5 MB / 4.045 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.896e-05/7.893, allocations: 9.75 kB / 4.045 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/7.893, allocations: 109.6 kB / 4.045 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000219/7.893, allocations: 221.6 kB / 4.046 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00791/7.901, allocations: 4.2 MB / 4.05 GB, free: 24.22 MB / 458.7 MB 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.02144/7.922, allocations: 19.01 MB / 4.068 GB, free: 13.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005696/7.928, allocations: 2.881 MB / 4.071 GB, free: 13.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02655/7.955, allocations: 16.99 MB / 4.088 GB, free: 18.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/7.955, allocations: 58.47 kB / 4.088 GB, free: 18.07 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001972/7.957, allocations: 245.8 kB / 4.088 GB, free: 17.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 4.197e-06/7.957, allocations: 0 / 4.088 GB, free: 17.96 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.03742/7.994, allocations: 15.93 MB / 4.103 GB, free: 13.03 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.096e-05/7.994, allocations: 128.8 kB / 4.104 GB, free: 12.88 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/7.997, allocations: 1.682 MB / 4.105 GB, free: 11.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002349/7.997, allocations: 66.83 kB / 4.105 GB, free: 11.35 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009464/7.998, allocations: 1.144 MB / 4.106 GB, free: 10.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007846/7.999, allocations: 0.725 MB / 4.107 GB, free: 9.656 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/7.999, allocations: 48 kB / 4.107 GB, free: 9.609 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002128/7.999, allocations: 406.7 kB / 4.108 GB, free: 9.238 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002497/8.002, allocations: 1.441 MB / 4.109 GB, free: 8.043 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003056/8.005, allocations: 1.947 MB / 4.111 GB, free: 6.176 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/8.008, allocations: 1.652 MB / 4.112 GB, free: 4.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/8.008, allocations: 4 kB / 4.112 GB, free: 4.727 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.00859/8.016, allocations: 4.952 MB / 4.117 GB, free: 452 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2544/8.271, allocations: 5.531 MB / 4.123 GB, free: 37.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.315e-05/8.271, allocations: 13 kB / 4.123 GB, free: 37.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01548/8.286, allocations: 4 MB / 4.127 GB, free: 37.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/8.288, allocations: 313.4 kB / 4.127 GB, free: 37.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/8.296, allocations: 4.841 MB / 4.132 GB, free: 36.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/8.299, allocations: 316.6 kB / 4.132 GB, free: 36.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/8.299, allocations: 119.3 kB / 4.132 GB, free: 36.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/8.299, allocations: 4.75 kB / 4.132 GB, free: 36.55 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007105/8.306, allocations: 4.255 MB / 4.136 GB, free: 36.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-05/8.306, allocations: 16.41 kB / 4.136 GB, free: 36.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009356/8.316, allocations: 2.845 MB / 4.139 GB, free: 36.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/8.317, allocations: 381.1 kB / 4.139 GB, free: 36.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005782/8.323, allocations: 3.779 MB / 4.143 GB, free: 35.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003229/8.326, allocations: 310.6 kB / 4.143 GB, free: 35.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003134/8.327, allocations: 113.2 kB / 4.144 GB, free: 35.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.001858/8.329, allocations: 0.7993 MB / 4.144 GB, free: 35.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006614/8.329, allocations: 235.2 kB / 4.145 GB, free: 35.73 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/8.341, allocations: 9.454 MB / 4.154 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.865e-05/8.342, allocations: 112.4 kB / 4.154 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/8.342, allocations: 1.25 kB / 4.154 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01074/8.352, allocations: 8.337 MB / 4.162 GB, free: 34.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02065/8.373, allocations: 13.73 MB / 4.175 GB, free: 33.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/8.373, allocations: 1.844 kB / 4.175 GB, free: 33.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/8.375, allocations: 405.6 kB / 4.176 GB, free: 33.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006214/8.381, allocations: 2.317 MB / 4.178 GB, free: 33.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004158/8.382, allocations: 74.97 kB / 4.178 GB, free: 33.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004629/8.386, allocations: 7.009 MB / 4.185 GB, free: 29.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/8.387, allocations: 0 / 4.185 GB, free: 29.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/8.399, allocations: 10.35 MB / 4.195 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/8.402, allocations: 0.8255 MB / 4.196 GB, free: 28.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005654/8.402, allocations: 59.06 kB / 4.196 GB, free: 28.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/8.404, allocations: 261.5 kB / 4.196 GB, free: 28.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/8.405, allocations: 197 kB / 4.196 GB, free: 28.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/8.405, allocations: 86.08 kB / 4.196 GB, free: 28.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001741/8.407, allocations: 1.337 MB / 4.198 GB, free: 27.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/8.407, allocations: 0 / 4.198 GB, free: 27.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01225/8.419, allocations: 3.07 MB / 4.201 GB, free: 27.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01542/8.434, allocations: 3.075 MB / 4.204 GB, free: 27.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01272/8.447, allocations: 6.503 MB / 4.21 GB, free: 27.35 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/8.447, allocations: 2.906 kB / 4.21 GB, free: 27.35 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004615/8.452, allocations: 3.06 MB / 4.213 GB, free: 27.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004901/8.457, allocations: 1.078 MB / 4.214 GB, free: 27.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/8.47, allocations: 10.58 MB / 4.224 GB, free: 23.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/8.471, allocations: 2.573 MB / 4.227 GB, free: 22.66 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003865/8.475, allocations: 1.91 MB / 4.229 GB, free: 22.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000568/8.476, allocations: 190 kB / 4.229 GB, free: 22.62 MB / 474.7 MB Notification: Performance of SimCode: time 1.302e-06/8.476, allocations: 0 / 4.229 GB, free: 22.62 MB / 474.7 MB Notification: Performance of Templates: time 0.3987/8.875, allocations: 111.2 MB / 4.338 GB, free: 47.96 MB / 490.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)