Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001487, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000849/0.0008491, allocations: 78.72 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.752e-05/1.752e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.09961, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.266/8.366, allocations: 3.154 GB / 3.508 GB, free: 46.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/8.366, allocations: 75.97 kB / 3.508 GB, free: 46.92 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.09/18.46, allocations: 3.067 GB / 6.575 GB, free: 30.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.004e-06/18.46, allocations: 1.688 kB / 6.575 GB, free: 30.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002855/18.46, allocations: 72.41 kB / 6.575 GB, free: 30.54 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: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01453/18.47, allocations: 3.592 MB / 6.578 GB, free: 28.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/18.48, allocations: 11.12 kB / 6.578 GB, free: 28.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002244/18.48, allocations: 305.1 kB / 6.579 GB, free: 28.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006196/18.48, allocations: 2.032 MB / 6.581 GB, free: 28.17 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/18.48, allocations: 151.6 kB / 6.581 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009228/18.48, allocations: 113.5 kB / 6.581 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005353/18.49, allocations: 2.853 MB / 6.584 GB, free: 28.09 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006375/18.5, allocations: 3.032 MB / 6.587 GB, free: 27.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.966e-05/18.5, allocations: 13.25 kB / 6.587 GB, free: 27.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005455/18.5, allocations: 4.625 kB / 6.587 GB, free: 27.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002675/18.5, allocations: 207.6 kB / 6.587 GB, free: 27.6 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.01992/18.52, allocations: 11.92 MB / 6.598 GB, free: 22.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003434/18.52, allocations: 2.159 MB / 6.601 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001737/18.52, allocations: 1.309 MB / 6.602 GB, free: 22.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00843/18.53, allocations: 5.858 MB / 6.608 GB, free: 19.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/18.53, allocations: 58.27 kB / 6.608 GB, free: 19.7 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001092/18.53, allocations: 127.9 kB / 6.608 GB, free: 19.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=172): time 4.408e-06/18.53, allocations: 0 / 6.608 GB, free: 19.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=198): time 0.0243/18.56, allocations: 8.568 MB / 6.616 GB, free: 18.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/18.56, allocations: 124.7 kB / 6.616 GB, free: 18.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/18.56, allocations: 1.213 MB / 6.617 GB, free: 18.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002681/18.56, allocations: 25.7 kB / 6.617 GB, free: 18.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000724/18.56, allocations: 1.041 MB / 6.618 GB, free: 17.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006177/18.56, allocations: 0.6589 MB / 6.619 GB, free: 17.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/18.56, allocations: 0 / 6.619 GB, free: 17.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/18.56, allocations: 401 kB / 6.619 GB, free: 17.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/18.56, allocations: 1.16 MB / 6.621 GB, free: 17.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/18.56, allocations: 1.653 MB / 6.622 GB, free: 16.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01362/18.58, allocations: 3.798 MB / 6.626 GB, free: 16.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.48e-05/18.58, allocations: 3.844 kB / 6.626 GB, free: 16.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.02148/18.6, allocations: 6.314 MB / 6.632 GB, free: 16.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00135/18.6, allocations: 5.786 MB / 6.638 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.585e-05/18.6, allocations: 14.44 kB / 6.638 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008336/18.61, allocations: 2.581 MB / 6.64 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/18.61, allocations: 317.3 kB / 6.641 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008013/18.62, allocations: 4.552 MB / 6.645 GB, free: 25.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/18.62, allocations: 144.5 kB / 6.645 GB, free: 25.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003244/18.62, allocations: 112.5 kB / 6.645 GB, free: 25.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/18.62, allocations: 3.375 kB / 6.645 GB, free: 25.84 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01621/18.64, allocations: 5.73 MB / 6.651 GB, free: 25.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.882e-05/18.64, allocations: 13.31 kB / 6.651 GB, free: 25.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007348/18.65, allocations: 2.279 MB / 6.653 GB, free: 25.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/18.65, allocations: 365.2 kB / 6.653 GB, free: 25.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006093/18.65, allocations: 3.825 MB / 6.657 GB, free: 25.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002354/18.66, allocations: 143.1 kB / 6.657 GB, free: 25.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003804/18.66, allocations: 108 kB / 6.657 GB, free: 25.12 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0007499/18.66, allocations: 151.5 kB / 6.658 GB, free: 25.01 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005972/18.66, allocations: 205.7 kB / 6.658 GB, free: 24.91 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009515/18.67, allocations: 4.072 MB / 6.662 GB, free: 24.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/18.67, allocations: 21.03 kB / 6.662 GB, free: 24.68 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/18.67, allocations: 6.719 kB / 6.662 GB, free: 24.68 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006914/18.67, allocations: 3.548 MB / 6.665 GB, free: 24.21 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/18.69, allocations: 6.25 MB / 6.671 GB, free: 23.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/18.69, allocations: 0 / 6.671 GB, free: 23.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/18.69, allocations: 320.4 kB / 6.672 GB, free: 23.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002893/18.69, allocations: 1.015 MB / 6.673 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002457/18.69, allocations: 46.11 kB / 6.673 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009567/18.7, allocations: 10.34 MB / 6.683 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/18.7, allocations: 3.219 kB / 6.683 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/18.71, allocations: 5.283 MB / 6.688 GB, free: 14.74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/18.71, allocations: 0.5962 MB / 6.689 GB, free: 14.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006202/18.71, allocations: 18.91 kB / 6.689 GB, free: 14.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001931/18.72, allocations: 110.8 kB / 6.689 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/18.72, allocations: 179.1 kB / 6.689 GB, free: 14.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/18.72, allocations: 80.45 kB / 6.689 GB, free: 14.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001455/18.72, allocations: 0.8808 MB / 6.69 GB, free: 13.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.71e-07/18.72, allocations: 0 / 6.69 GB, free: 13.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006447/18.72, allocations: 1.801 MB / 6.692 GB, free: 13.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003776/18.73, allocations: 1.358 MB / 6.693 GB, free: 13.26 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009444/18.74, allocations: 4.731 MB / 6.697 GB, free: 11.76 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/18.74, allocations: 0 / 6.697 GB, free: 11.76 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004248/18.74, allocations: 2.136 MB / 6.7 GB, free: 10.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004824/18.75, allocations: 0.8039 MB / 6.7 GB, free: 10.56 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/18.76, allocations: 4.513 MB / 6.705 GB, free: 9.062 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/18.76, allocations: 1.933 MB / 6.707 GB, free: 8.203 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004935/18.76, allocations: 1.036 MB / 6.708 GB, free: 8.121 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000688/18.77, allocations: 153.3 kB / 6.708 GB, free: 8.105 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/18.77, allocations: 3.938 kB / 6.708 GB, free: 8.102 MB / 474.7 MB Notification: Performance of Templates: time 0.4173/19.18, allocations: 68.05 MB / 6.774 GB, free: 36.97 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)