Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001163/0.001163, allocations: 179.3 kB / 16.38 MB, free: 5.762 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.257/1.257, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001625/0.001625, allocations: 105.3 kB / 256.9 MB, free: 4.336 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003097, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08908/0.08941, allocations: 44.5 MB / 355.1 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6719/0.7613, allocations: 316.7 MB / 0.656 GB, free: 2.055 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.7616, allocations: 80.16 kB / 0.6561 GB, free: 2.012 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9328/1.694, allocations: 267.7 MB / 0.9175 GB, free: 69.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/1.695, allocations: 0 / 0.9175 GB, free: 69.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001093/1.695, allocations: 36.19 kB / 0.9175 GB, free: 69.95 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005778/1.7, allocations: 1.993 MB / 0.9195 GB, free: 68.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/1.7, allocations: 12.75 kB / 0.9195 GB, free: 68.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005584/1.701, allocations: 175 kB / 0.9197 GB, free: 68.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/1.703, allocations: 1.116 MB / 0.9207 GB, free: 68.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/1.703, allocations: 178.9 kB / 0.9209 GB, free: 68.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/1.704, allocations: 102.7 kB / 0.921 GB, free: 68.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/1.706, allocations: 1.765 MB / 0.9227 GB, free: 68.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/1.706, allocations: 3.938 kB / 0.9227 GB, free: 68.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/1.706, allocations: 46.11 kB / 0.9228 GB, free: 68.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/1.706, allocations: 104.8 kB / 0.9229 GB, free: 68.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002387/1.709, allocations: 1.782 MB / 0.9246 GB, free: 68.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00965/1.718, allocations: 6.41 MB / 0.9309 GB, free: 65.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/1.72, allocations: 1.172 MB / 0.932 GB, free: 64.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004898/1.725, allocations: 4.176 MB / 0.9361 GB, free: 60.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/1.725, allocations: 49.97 kB / 0.9362 GB, free: 60.72 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009461/1.726, allocations: 205.9 kB / 0.9363 GB, free: 60.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 2.745e-06/1.726, allocations: 3.938 kB / 0.9364 GB, free: 60.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.01673/1.743, allocations: 5.368 MB / 0.9416 GB, free: 57.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/1.743, allocations: 141 kB / 0.9417 GB, free: 57.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/1.744, allocations: 1.103 MB / 0.9428 GB, free: 57.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/1.744, allocations: 49.45 kB / 0.9429 GB, free: 57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/1.744, allocations: 0.5975 MB / 0.9434 GB, free: 56.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/1.745, allocations: 391.5 kB / 0.9438 GB, free: 56.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.04e-05/1.745, allocations: 31.53 kB / 0.9438 GB, free: 56.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.317e-05/1.745, allocations: 361.2 kB / 0.9442 GB, free: 55.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008439/1.746, allocations: 0.6434 MB / 0.9448 GB, free: 55.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009742/1.747, allocations: 0.9679 MB / 0.9458 GB, free: 54.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/1.748, allocations: 0.7517 MB / 0.9465 GB, free: 53.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/1.748, allocations: 4 kB / 0.9465 GB, free: 53.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00293/1.751, allocations: 2.126 MB / 0.9486 GB, free: 51.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005947/1.751, allocations: 3.507 MB / 0.952 GB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/1.751, allocations: 12 kB / 0.952 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006902/1.758, allocations: 1.224 MB / 0.9532 GB, free: 46.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/1.76, allocations: 291.6 kB / 0.9535 GB, free: 46.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/1.762, allocations: 1.528 MB / 0.955 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/1.763, allocations: 91.23 kB / 0.9551 GB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/1.763, allocations: 74.11 kB / 0.9551 GB, free: 44.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/1.763, allocations: 4.781 kB / 0.9551 GB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002527/1.766, allocations: 1.782 MB / 0.9569 GB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.766, allocations: 12 kB / 0.9569 GB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006079/1.772, allocations: 0.9727 MB / 0.9578 GB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/1.773, allocations: 301.4 kB / 0.9581 GB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/1.774, allocations: 1.231 MB / 0.9593 GB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/1.776, allocations: 88.3 kB / 0.9594 GB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/1.776, allocations: 67.97 kB / 0.9595 GB, free: 40.17 MB / 410.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 () * Number of clocked 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.0008169/1.777, allocations: 463.2 kB / 0.9599 GB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/1.777, allocations: 146.2 kB / 0.9601 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/1.78, allocations: 2.04 MB / 0.962 GB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/1.78, allocations: 14.34 kB / 0.9621 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.78, allocations: 0 / 0.9621 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.78, allocations: 3.984 kB / 0.9621 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/1.785, allocations: 3.431 MB / 0.9654 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/1.785, allocations: 0 / 0.9654 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008258/1.786, allocations: 193.8 kB / 0.9656 GB, free: 33.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003338/1.789, allocations: 0.9659 MB / 0.9665 GB, free: 32.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.038e-05/1.789, allocations: 35.98 kB / 0.9666 GB, free: 32.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/1.791, allocations: 1.562 MB / 0.9681 GB, free: 31.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.791, allocations: 2.438 kB / 0.9681 GB, free: 31.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/1.794, allocations: 2.747 MB / 0.9708 GB, free: 28.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008607/1.795, allocations: 407 kB / 0.9712 GB, free: 28.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/1.795, allocations: 20 kB / 0.9712 GB, free: 28.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.796, allocations: 91.86 kB / 0.9713 GB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/1.796, allocations: 93.17 kB / 0.9714 GB, free: 27.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/1.797, allocations: 55.95 kB / 0.9714 GB, free: 27.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009393/1.798, allocations: 0.8363 MB / 0.9722 GB, free: 27.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.798, allocations: 0 / 0.9722 GB, free: 27.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003318/1.801, allocations: 1.241 MB / 0.9735 GB, free: 25.81 MB / 410.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 () * Number of clocked 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.001845/1.803, allocations: 1.071 MB / 0.9745 GB, free: 24.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004481/1.807, allocations: 2.574 MB / 0.977 GB, free: 22.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.807, allocations: 4.172 kB / 0.977 GB, free: 22.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/1.809, allocations: 0.8399 MB / 0.9778 GB, free: 21.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/1.811, allocations: 0.5867 MB / 0.9784 GB, free: 20.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/1.816, allocations: 3.522 MB / 0.9819 GB, free: 17.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/1.817, allocations: 1.323 MB / 0.9831 GB, free: 16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001725/1.818, allocations: 0.557 MB / 0.9837 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/1.819, allocations: 127.4 kB / 0.9838 GB, free: 15.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/1.819, allocations: 0 / 0.9838 GB, free: 15.33 MB / 410.7 MB Notification: Performance of Templates: time 0.2621/2.081, allocations: 40.06 MB / 1.023 GB, free: 61.42 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)