Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 181.1 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.2 MB / 240.3 MB, free: 11.85 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008414/0.0008415, allocations: 102 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002536, allocations: 7.938 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2363, allocations: 50.39 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.367/6.604, allocations: 3.161 GB / 3.553 GB, free: 110.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/6.604, allocations: 84.52 kB / 3.553 GB, free: 110.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.65/17.26, allocations: 3.11 GB / 6.663 GB, free: 46.69 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.515e-06/17.26, allocations: 0 / 6.663 GB, free: 46.69 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004332/17.26, allocations: 66.81 kB / 6.663 GB, free: 46.68 MB / 490.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.02192/17.28, allocations: 3.902 MB / 6.667 GB, free: 44.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.609e-05/17.28, allocations: 13.92 kB / 6.667 GB, free: 44.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00298/17.28, allocations: 305.2 kB / 6.667 GB, free: 44.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009366/17.29, allocations: 2.042 MB / 6.669 GB, free: 44.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004109/17.29, allocations: 223 kB / 6.669 GB, free: 44.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/17.29, allocations: 200.7 kB / 6.67 GB, free: 44.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/17.31, allocations: 3.348 MB / 6.673 GB, free: 43.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001536/17.31, allocations: 8.156 kB / 6.673 GB, free: 43.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/17.31, allocations: 88.05 kB / 6.673 GB, free: 43.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004067/17.31, allocations: 211.8 kB / 6.673 GB, free: 43.54 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007522/17.32, allocations: 3.095 MB / 6.676 GB, free: 43.5 MB / 490.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.02719/17.34, allocations: 12.43 MB / 6.688 GB, free: 38.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004524/17.35, allocations: 2.247 MB / 6.691 GB, free: 38.24 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/17.36, allocations: 5.883 MB / 6.696 GB, free: 34.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.327e-05/17.36, allocations: 52.38 kB / 6.696 GB, free: 34.33 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001698/17.36, allocations: 185.9 kB / 6.697 GB, free: 34.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=174): time 1.864e-05/17.36, allocations: 3.812 kB / 6.697 GB, free: 34.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=200): time 0.02453/17.39, allocations: 9.106 MB / 6.705 GB, free: 30.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/17.39, allocations: 126.7 kB / 6.706 GB, free: 30.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004219/17.39, allocations: 1.674 MB / 6.707 GB, free: 29.85 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004077/17.39, allocations: 65.23 kB / 6.707 GB, free: 29.79 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/17.39, allocations: 1.035 MB / 6.708 GB, free: 28.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009261/17.39, allocations: 0.6843 MB / 6.709 GB, free: 28.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003095/17.39, allocations: 46.06 kB / 6.709 GB, free: 28.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002195/17.39, allocations: 404.7 kB / 6.709 GB, free: 27.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002199/17.4, allocations: 1.236 MB / 6.711 GB, free: 26.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/17.4, allocations: 1.738 MB / 6.712 GB, free: 25.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/17.4, allocations: 1.479 MB / 6.714 GB, free: 23.92 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.895e-05/17.4, allocations: 4 kB / 6.714 GB, free: 23.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.007942/17.41, allocations: 4.27 MB / 6.718 GB, free: 20.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001714/17.41, allocations: 5.806 MB / 6.724 GB, free: 14.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.823e-05/17.41, allocations: 12 kB / 6.724 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01494/17.42, allocations: 3.605 MB / 6.727 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/17.43, allocations: 313.7 kB / 6.727 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009195/17.44, allocations: 4.031 MB / 6.731 GB, free: 7.582 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004081/17.44, allocations: 204.5 kB / 6.731 GB, free: 7.434 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000881/17.44, allocations: 118.7 kB / 6.732 GB, free: 7.332 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/17.44, allocations: 4 kB / 6.732 GB, free: 7.328 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009032/17.45, allocations: 3.812 MB / 6.735 GB, free: 3.633 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.705e-05/17.45, allocations: 16 kB / 6.735 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/17.46, allocations: 2.95 MB / 6.738 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/17.46, allocations: 355.4 kB / 6.739 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4589/17.92, allocations: 3.509 MB / 6.742 GB, free: 42.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003472/17.93, allocations: 198.7 kB / 6.742 GB, free: 42.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003824/17.93, allocations: 106.7 kB / 6.742 GB, free: 42.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 167 * 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 108} Notification: Performance of prepare postOptimizeDAE: time 0.002093/17.93, allocations: 0.6954 MB / 6.743 GB, free: 42.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008046/17.93, allocations: 232.4 kB / 6.743 GB, free: 42.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008479/17.94, allocations: 4.067 MB / 6.747 GB, free: 42.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-05/17.94, allocations: 25.38 kB / 6.747 GB, free: 42.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/17.94, allocations: 2.156 kB / 6.747 GB, free: 42.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005887/17.94, allocations: 3.467 MB / 6.751 GB, free: 41.78 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/17.96, allocations: 6.441 MB / 6.757 GB, free: 41.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/17.96, allocations: 3.422 kB / 6.757 GB, free: 41.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/17.96, allocations: 316.9 kB / 6.757 GB, free: 41.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005553/17.96, allocations: 1.283 MB / 6.758 GB, free: 41.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000643/17.96, allocations: 70.77 kB / 6.758 GB, free: 41.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/17.97, allocations: 10.58 MB / 6.769 GB, free: 33.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/17.97, allocations: 5.312 kB / 6.769 GB, free: 33.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/17.99, allocations: 5.283 MB / 6.774 GB, free: 33.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003012/17.99, allocations: 0.6402 MB / 6.775 GB, free: 32.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/17.99, allocations: 59.42 kB / 6.775 GB, free: 32.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003558/18, allocations: 152 kB / 6.775 GB, free: 32.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008972/18, allocations: 170.4 kB / 6.775 GB, free: 32.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006069/18, allocations: 81.97 kB / 6.775 GB, free: 32.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003776/18, allocations: 1.27 MB / 6.776 GB, free: 32.76 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/18, allocations: 0 / 6.776 GB, free: 32.76 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01274/18.02, allocations: 1.934 MB / 6.778 GB, free: 32.76 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * 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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.007076/18.02, allocations: 1.367 MB / 6.78 GB, free: 32.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01729/18.04, allocations: 5.079 MB / 6.784 GB, free: 32.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.5e-05/18.04, allocations: 3.281 kB / 6.784 GB, free: 32.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006585/18.05, allocations: 2.264 MB / 6.787 GB, free: 31.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006938/18.05, allocations: 0.9301 MB / 6.788 GB, free: 31.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/18.07, allocations: 6.668 MB / 6.794 GB, free: 29.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/18.07, allocations: 1.92 MB / 6.796 GB, free: 28.82 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005531/18.08, allocations: 0.9617 MB / 6.797 GB, free: 28.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/18.08, allocations: 197.7 kB / 6.797 GB, free: 28.75 MB / 490.7 MB Notification: Performance of SimCode: time 2.124e-06/18.08, allocations: 0 / 6.797 GB, free: 28.75 MB / 490.7 MB Notification: Performance of Templates: time 0.1363/18.22, allocations: 72.78 MB / 6.868 GB, free: 19.66 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)