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.001038/0.001038, allocations: 182 kB / 13.64 MB, free: 1.676 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.634/1.634, allocations: 194.3 MB / 208.4 MB, free: 6.707 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.001614/0.001614, allocations: 108.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.248e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09441, allocations: 44.49 MB / 349.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.82/7.915, allocations: 2.661 GB / 3.002 GB, free: 56.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/7.915, allocations: 86.58 kB / 3.002 GB, free: 56.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.75/12.67, allocations: 1.022 GB / 4.024 GB, free: 6.242 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.714e-06/12.67, allocations: 0 / 4.024 GB, free: 6.242 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001931/12.67, allocations: 83.86 kB / 4.024 GB, free: 6.16 MB / 442.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.01521/12.68, allocations: 4.386 MB / 4.028 GB, free: 1.711 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/12.68, allocations: 12.02 kB / 4.028 GB, free: 1.699 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00849/12.69, allocations: 1.028 MB / 4.029 GB, free: 0.668 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006481/12.7, allocations: 2.207 MB / 4.032 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003336/12.7, allocations: 284.2 kB / 4.032 GB, free: 14.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007286/12.7, allocations: 251.9 kB / 4.032 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/12.71, allocations: 4.464 MB / 4.036 GB, free: 9.172 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.295e-05/12.71, allocations: 7.938 kB / 4.036 GB, free: 9.164 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003965/12.71, allocations: 112 kB / 4.037 GB, free: 9.055 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003012/12.71, allocations: 216.7 kB / 4.037 GB, free: 8.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00868/12.72, allocations: 4.048 MB / 4.041 GB, free: 4.777 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.3126/13.03, allocations: 18.99 MB / 4.059 GB, free: 15.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/13.04, allocations: 2.784 MB / 4.062 GB, free: 15 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002513/13.04, allocations: 1.477 MB / 4.063 GB, free: 14.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03094/13.07, allocations: 17.06 MB / 4.08 GB, free: 20.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.827e-05/13.07, allocations: 59.25 kB / 4.08 GB, free: 20.44 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001985/13.07, allocations: 236.7 kB / 4.08 GB, free: 20.39 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 5.64e-06/13.07, allocations: 0 / 4.08 GB, free: 20.39 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.0278/13.1, allocations: 11.19 MB / 4.091 GB, free: 19.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/13.1, allocations: 128.8 kB / 4.091 GB, free: 19.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/13.1, allocations: 1.658 MB / 4.093 GB, free: 19.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003332/13.1, allocations: 63.64 kB / 4.093 GB, free: 19.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006846/13.1, allocations: 1.148 MB / 4.094 GB, free: 18.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006761/13.1, allocations: 0.7293 MB / 4.095 GB, free: 18.36 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/13.1, allocations: 45.16 kB / 4.095 GB, free: 18.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001975/13.1, allocations: 406.3 kB / 4.095 GB, free: 18.06 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/13.11, allocations: 1.318 MB / 4.097 GB, free: 18.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/13.11, allocations: 1.823 MB / 4.098 GB, free: 17.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002294/13.11, allocations: 1.536 MB / 4.1 GB, free: 17.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/13.11, allocations: 5.922 kB / 4.1 GB, free: 17.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.007434/13.12, allocations: 4.6 MB / 4.104 GB, free: 17.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001938/13.12, allocations: 5.539 MB / 4.11 GB, free: 11.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/13.12, allocations: 13.69 kB / 4.11 GB, free: 11.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01283/13.13, allocations: 3.777 MB / 4.114 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/13.13, allocations: 313 kB / 4.114 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006825/13.14, allocations: 4.572 MB / 4.118 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/13.14, allocations: 317.8 kB / 4.119 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/13.14, allocations: 122.4 kB / 4.119 GB, free: 10.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/13.14, allocations: 3.531 kB / 4.119 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005945/13.15, allocations: 3.926 MB / 4.123 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/13.15, allocations: 13.66 kB / 4.123 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/13.16, allocations: 2.622 MB / 4.125 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/13.16, allocations: 381.8 kB / 4.126 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004775/13.17, allocations: 3.559 MB / 4.129 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003119/13.17, allocations: 307.9 kB / 4.129 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003377/13.17, allocations: 115.2 kB / 4.129 GB, free: 10.18 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 () * 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.0007079/13.17, allocations: 245.5 kB / 4.13 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005091/13.17, allocations: 234.8 kB / 4.13 GB, free: 9.949 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01224/13.18, allocations: 9.371 MB / 4.139 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.941e-05/13.18, allocations: 108.8 kB / 4.139 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/13.18, allocations: 5.438 kB / 4.139 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008943/13.19, allocations: 8.258 MB / 4.147 GB, free: 8.223 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/13.21, allocations: 13.61 MB / 4.16 GB, free: 7.254 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/13.21, allocations: 0.75 kB / 4.16 GB, free: 7.254 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/13.21, allocations: 408.8 kB / 4.161 GB, free: 7.254 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00563/13.22, allocations: 2.682 MB / 4.163 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005567/13.22, allocations: 72.03 kB / 4.164 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005753/13.22, allocations: 6.933 MB / 4.17 GB, free: 18.92 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/13.22, allocations: 2.938 kB / 4.17 GB, free: 18.92 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/13.24, allocations: 9.964 MB / 4.18 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002472/13.24, allocations: 0.8268 MB / 4.181 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006841/13.24, allocations: 59.41 kB / 4.181 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/13.24, allocations: 261 kB / 4.181 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004851/13.24, allocations: 204.7 kB / 4.181 GB, free: 13.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000221/13.24, allocations: 85.86 kB / 4.181 GB, free: 13.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002308/13.24, allocations: 1.319 MB / 4.183 GB, free: 13.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/13.24, allocations: 0 / 4.183 GB, free: 13.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01222/13.26, allocations: 3.062 MB / 4.186 GB, free: 13 MB / 490.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 () * 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.01239/13.27, allocations: 3.089 MB / 4.189 GB, free: 12.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01192/13.28, allocations: 6.201 MB / 4.195 GB, free: 10.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/13.28, allocations: 3.875 kB / 4.195 GB, free: 10.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005227/13.29, allocations: 2.98 MB / 4.198 GB, free: 9.004 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006224/13.29, allocations: 1.079 MB / 4.199 GB, free: 8.258 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/13.31, allocations: 7.345 MB / 4.206 GB, free: 1.973 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/13.31, allocations: 2.57 MB / 4.208 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005167/13.31, allocations: 2.143 MB / 4.211 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006157/13.32, allocations: 164.2 kB / 4.211 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of SimCode: time 1.703e-06/13.32, allocations: 0 / 4.211 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of Templates: time 0.4506/13.77, allocations: 117.8 MB / 4.326 GB, free: 63.56 MB / 0.4948 GB 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)