Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.000997/0.000997, allocations: 170.4 kB / 12.72 MB, free: 2.594 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.171/1.171, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001593/0.001593, allocations: 106.8 kB / 223.2 MB, free: 4.047 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/2.991e-05, allocations: 0 / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07828/0.07833, allocations: 38.78 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7493/0.8277, allocations: 311.3 MB / 0.6044 GB, free: 7.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.8281, allocations: 78.66 kB / 0.6045 GB, free: 7.492 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028/1.857, allocations: 266.9 MB / 0.8651 GB, free: 39.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/1.857, allocations: 0 / 0.8651 GB, free: 39.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001128/1.857, allocations: 35.98 kB / 0.8651 GB, free: 39.05 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00676/1.863, allocations: 1.806 MB / 0.8669 GB, free: 37.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/1.864, allocations: 12.03 kB / 0.8669 GB, free: 37.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/1.865, allocations: 182 kB / 0.8671 GB, free: 37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003835/1.869, allocations: 1.113 MB / 0.8682 GB, free: 35.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/1.869, allocations: 175.1 kB / 0.8683 GB, free: 35.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003422/1.869, allocations: 95.97 kB / 0.8684 GB, free: 35.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004205/1.874, allocations: 1.748 MB / 0.8701 GB, free: 33.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.297e-05/1.874, allocations: 3.906 kB / 0.8701 GB, free: 33.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/1.874, allocations: 47.81 kB / 0.8702 GB, free: 33.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002158/1.874, allocations: 113.9 kB / 0.8703 GB, free: 33.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004058/1.878, allocations: 1.737 MB / 0.872 GB, free: 31.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01613/1.894, allocations: 6.397 MB / 0.8782 GB, free: 25.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002376/1.897, allocations: 1.157 MB / 0.8794 GB, free: 24.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/1.898, allocations: 0.7027 MB / 0.88 GB, free: 23.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007845/1.906, allocations: 4.286 MB / 0.8842 GB, free: 18.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/1.906, allocations: 47.34 kB / 0.8843 GB, free: 18.54 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001539/1.908, allocations: 206.6 kB / 0.8845 GB, free: 18.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.049e-06/1.908, allocations: 0 / 0.8845 GB, free: 18.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.009344/1.917, allocations: 3.783 MB / 0.8882 GB, free: 14.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/1.917, allocations: 149.4 kB / 0.8883 GB, free: 14.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/1.919, allocations: 1.089 MB / 0.8894 GB, free: 13.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/1.919, allocations: 49.7 kB / 0.8894 GB, free: 13.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/1.919, allocations: 0.5975 MB / 0.89 GB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/1.919, allocations: 390.4 kB / 0.8904 GB, free: 12.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.152e-05/1.919, allocations: 28 kB / 0.8904 GB, free: 12.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.158e-05/1.919, allocations: 365.9 kB / 0.8908 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000845/1.92, allocations: 0.6209 MB / 0.8914 GB, free: 11.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/1.921, allocations: 0.9511 MB / 0.8923 GB, free: 10.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/1.922, allocations: 0.7505 MB / 0.893 GB, free: 9.332 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/1.922, allocations: 4 kB / 0.893 GB, free: 9.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003137/1.925, allocations: 2.07 MB / 0.895 GB, free: 7.246 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007731/1.926, allocations: 3.511 MB / 0.8985 GB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/1.926, allocations: 8 kB / 0.8985 GB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006336/1.933, allocations: 1.21 MB / 0.8997 GB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/1.934, allocations: 295.5 kB / 0.8999 GB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/1.936, allocations: 1.532 MB / 0.9014 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/1.938, allocations: 95.78 kB / 0.9015 GB, free: 344 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002349/1.939, allocations: 67.97 kB / 0.9016 GB, free: 276 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/1.939, allocations: 4 kB / 0.9016 GB, free: 272 kB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2511/2.19, allocations: 1.755 MB / 0.9033 GB, free: 48.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/2.19, allocations: 8.812 kB / 0.9033 GB, free: 48.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006041/2.196, allocations: 0.9634 MB / 0.9043 GB, free: 48.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/2.197, allocations: 302.5 kB / 0.9046 GB, free: 48.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/2.199, allocations: 1.22 MB / 0.9057 GB, free: 48.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/2.2, allocations: 86.38 kB / 0.9058 GB, free: 48.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/2.2, allocations: 70.39 kB / 0.9059 GB, free: 48.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004603/2.201, allocations: 192.8 kB / 0.9061 GB, free: 48.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/2.201, allocations: 148 kB / 0.9062 GB, free: 48.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004034/2.205, allocations: 1.988 MB / 0.9082 GB, free: 48.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/2.205, allocations: 12.53 kB / 0.9082 GB, free: 48.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/2.205, allocations: 4.312 kB / 0.9082 GB, free: 48.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/2.205, allocations: 7.547 kB / 0.9082 GB, free: 48.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006737/2.212, allocations: 3.405 MB / 0.9115 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/2.212, allocations: 0 / 0.9115 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/2.213, allocations: 194 kB / 0.9117 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00445/2.218, allocations: 0.9435 MB / 0.9126 GB, free: 47.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002171/2.218, allocations: 33.98 kB / 0.9126 GB, free: 47.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/2.22, allocations: 1.565 MB / 0.9142 GB, free: 47.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.22, allocations: 0 / 0.9142 GB, free: 47.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/2.225, allocations: 2.71 MB / 0.9168 GB, free: 47.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/2.226, allocations: 411 kB / 0.9172 GB, free: 46.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/2.226, allocations: 26.69 kB / 0.9172 GB, free: 46.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/2.227, allocations: 88.14 kB / 0.9173 GB, free: 46.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/2.227, allocations: 96.64 kB / 0.9174 GB, free: 46.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/2.227, allocations: 47.98 kB / 0.9175 GB, free: 46.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001119/2.228, allocations: 0.8305 MB / 0.9183 GB, free: 46.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/2.228, allocations: 0 / 0.9183 GB, free: 46.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003671/2.232, allocations: 1.24 MB / 0.9195 GB, free: 46.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002709/2.235, allocations: 1.063 MB / 0.9205 GB, free: 46.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005175/2.24, allocations: 2.57 MB / 0.923 GB, free: 46.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.655e-06/2.24, allocations: 6.141 kB / 0.923 GB, free: 46.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/2.242, allocations: 0.8196 MB / 0.9238 GB, free: 46.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/2.245, allocations: 0.5809 MB / 0.9244 GB, free: 46.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/2.249, allocations: 2.449 MB / 0.9268 GB, free: 46.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006815/2.25, allocations: 1.325 MB / 0.9281 GB, free: 45.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002279/2.252, allocations: 0.67 MB / 0.9287 GB, free: 45.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/2.253, allocations: 107 kB / 0.9288 GB, free: 45.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.222e-06/2.253, allocations: 0 / 0.9288 GB, free: 45.35 MB / 362.7 MB Notification: Performance of Templates: time 0.06147/2.314, allocations: 42.39 MB / 0.9702 GB, free: 42.98 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)