Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005779/0.005779, allocations: 164.7 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.328/1.328, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001579/0.001579, allocations: 110.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005127, allocations: 12 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.254, allocations: 38.77 MB / 312.9 MB, free: 38.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.219/6.473, allocations: 2.551 GB / 2.857 GB, free: 17.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/6.473, allocations: 78.59 kB / 2.857 GB, free: 17.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.811/10.28, allocations: 0.9991 GB / 3.856 GB, free: 24.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/10.28, allocations: 0 / 3.856 GB, free: 24.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002614/10.28, allocations: 76.41 kB / 3.856 GB, free: 24.17 MB / 410.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.02248/10.31, allocations: 4.574 MB / 3.861 GB, free: 21.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.126e-05/10.31, allocations: 7.656 kB / 3.861 GB, free: 21.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009421/10.32, allocations: 0.9839 MB / 3.862 GB, free: 21.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009105/10.33, allocations: 2.219 MB / 3.864 GB, free: 21.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005144/10.33, allocations: 283.8 kB / 3.864 GB, free: 21.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001614/10.33, allocations: 254.3 kB / 3.864 GB, free: 21.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009531/10.34, allocations: 4.512 MB / 3.869 GB, free: 20.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.556e-05/10.34, allocations: 6.219 kB / 3.869 GB, free: 20.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003497/10.34, allocations: 109.8 kB / 3.869 GB, free: 20.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002893/10.34, allocations: 219.2 kB / 3.869 GB, free: 20.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008933/10.35, allocations: 4.203 MB / 3.873 GB, free: 20.37 MB / 410.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.02928/10.38, allocations: 19 MB / 3.892 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006184/10.38, allocations: 2.881 MB / 3.895 GB, free: 5.652 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03267/10.42, allocations: 17 MB / 3.911 GB, free: 3.824 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.477e-05/10.42, allocations: 60.55 kB / 3.911 GB, free: 3.758 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003082/10.42, allocations: 241.7 kB / 3.911 GB, free: 3.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 1.147e-05/10.42, allocations: 4 kB / 3.911 GB, free: 3.516 MB / 426.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.4147/10.83, allocations: 15.91 MB / 3.927 GB, free: 39.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/10.83, allocations: 124.7 kB / 3.927 GB, free: 38.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/10.84, allocations: 1.683 MB / 3.929 GB, free: 38.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005619/10.84, allocations: 65.8 kB / 3.929 GB, free: 38.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/10.84, allocations: 1.143 MB / 3.93 GB, free: 38.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/10.84, allocations: 0.7251 MB / 3.931 GB, free: 38.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/10.84, allocations: 49.47 kB / 3.931 GB, free: 38.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/10.84, allocations: 401.6 kB / 3.931 GB, free: 37.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/10.84, allocations: 1.445 MB / 3.932 GB, free: 37.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/10.85, allocations: 1.951 MB / 3.934 GB, free: 37.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/10.85, allocations: 1.651 MB / 3.936 GB, free: 37.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.995e-05/10.85, allocations: 3.938 kB / 3.936 GB, free: 37.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01062/10.86, allocations: 4.951 MB / 3.941 GB, free: 36.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001506/10.86, allocations: 5.535 MB / 3.946 GB, free: 31.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-05/10.86, allocations: 17.92 kB / 3.946 GB, free: 31.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01529/10.88, allocations: 3.995 MB / 3.95 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/10.88, allocations: 316.7 kB / 3.95 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009075/10.89, allocations: 4.843 MB / 3.955 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/10.89, allocations: 318.5 kB / 3.955 GB, free: 30.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/10.89, allocations: 115.7 kB / 3.956 GB, free: 30.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/10.89, allocations: 3.438 kB / 3.956 GB, free: 30.53 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007885/10.9, allocations: 4.254 MB / 3.96 GB, free: 30.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/10.9, allocations: 12.88 kB / 3.96 GB, free: 30.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009828/10.91, allocations: 2.848 MB / 3.963 GB, free: 30.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/10.91, allocations: 384.9 kB / 3.963 GB, free: 30.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/10.92, allocations: 3.775 MB / 3.967 GB, free: 29.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0037/10.92, allocations: 315.2 kB / 3.967 GB, free: 29.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/10.92, allocations: 112.9 kB / 3.967 GB, free: 29.84 MB / 426.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.002399/10.93, allocations: 0.7975 MB / 3.968 GB, free: 29.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007479/10.93, allocations: 235.4 kB / 3.968 GB, free: 29.53 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/10.94, allocations: 9.457 MB / 3.977 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/10.94, allocations: 103.7 kB / 3.977 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/10.94, allocations: 3.25 kB / 3.977 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01257/10.95, allocations: 8.34 MB / 3.985 GB, free: 27.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02334/10.98, allocations: 13.73 MB / 3.999 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-05/10.98, allocations: 6.656 kB / 3.999 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/10.98, allocations: 407.2 kB / 3.999 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005856/10.98, allocations: 2.308 MB / 4.002 GB, free: 26.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005943/10.98, allocations: 76.53 kB / 4.002 GB, free: 26.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005118/10.99, allocations: 7.007 MB / 4.008 GB, free: 22.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/10.99, allocations: 6.172 kB / 4.008 GB, free: 22.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/11.01, allocations: 10.33 MB / 4.019 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/11.01, allocations: 0.8318 MB / 4.019 GB, free: 17.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008868/11.01, allocations: 55.66 kB / 4.019 GB, free: 17.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002525/11.01, allocations: 260.6 kB / 4.02 GB, free: 17.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004179/11.01, allocations: 202.9 kB / 4.02 GB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/11.01, allocations: 82.61 kB / 4.02 GB, free: 17.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002204/11.01, allocations: 1.342 MB / 4.021 GB, free: 16.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/11.01, allocations: 0 / 4.021 GB, free: 16.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0155/11.03, allocations: 3.046 MB / 4.024 GB, free: 16.55 MB / 426.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.01437/11.04, allocations: 3.059 MB / 4.027 GB, free: 16.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01326/11.06, allocations: 6.497 MB / 4.034 GB, free: 14.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/11.06, allocations: 3.594 kB / 4.034 GB, free: 14.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00492/11.06, allocations: 3.06 MB / 4.037 GB, free: 12.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005957/11.07, allocations: 1.083 MB / 4.038 GB, free: 12.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/11.09, allocations: 10.57 MB / 4.048 GB, free: 2.887 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/11.09, allocations: 2.569 MB / 4.05 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005823/11.09, allocations: 2.025 MB / 4.052 GB, free: 0 / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/11.09, allocations: 239.9 kB / 4.053 GB, free: 15.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/11.09, allocations: 0 / 4.053 GB, free: 15.91 MB / 442.7 MB Notification: Performance of Templates: time 0.5784/11.67, allocations: 111 MB / 4.161 GB, free: 41.55 MB / 442.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)