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.001419/0.001419, allocations: 183.1 kB / 8.351 MB, free: 0.7031 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.273/1.273, allocations: 194.3 MB / 203.1 MB, free: 9.262 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001615/0.001615, allocations: 121 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.037e-05/1.031e-05, allocations: 0 / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07985/0.07987, allocations: 44.51 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6584/0.7384, allocations: 315.9 MB / 0.6431 GB, free: 12.07 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.7387, allocations: 72.22 kB / 0.6432 GB, free: 12.03 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9924/1.731, allocations: 265.1 MB / 0.9021 GB, free: 55.88 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.495e-06/1.731, allocations: 0 / 0.9021 GB, free: 55.88 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001296/1.731, allocations: 44.3 kB / 0.9021 GB, free: 55.87 MB / 395.1 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.006297/1.738, allocations: 1.802 MB / 0.9039 GB, free: 54.57 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/1.738, allocations: 6.562 kB / 0.9039 GB, free: 54.57 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009561/1.739, allocations: 175.3 kB / 0.904 GB, free: 54.48 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/1.741, allocations: 1.113 MB / 0.9051 GB, free: 53.71 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/1.741, allocations: 140.7 kB / 0.9053 GB, free: 53.61 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002102/1.742, allocations: 62.12 kB / 0.9053 GB, free: 53.6 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002465/1.744, allocations: 1.595 MB / 0.9069 GB, free: 52.85 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/1.746, allocations: 1.609 MB / 0.9084 GB, free: 51.91 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/1.746, allocations: 0 / 0.9084 GB, free: 51.91 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/1.747, allocations: 2.156 kB / 0.9084 GB, free: 51.91 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/1.747, allocations: 114.9 kB / 0.9086 GB, free: 51.87 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/1.757, allocations: 6.143 MB / 0.9146 GB, free: 47.34 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/1.758, allocations: 1.127 MB / 0.9157 GB, free: 46.77 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009291/1.759, allocations: 0.6858 MB / 0.9163 GB, free: 46.22 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005625/1.765, allocations: 4.191 MB / 0.9204 GB, free: 41.66 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/1.765, allocations: 47.09 kB / 0.9205 GB, free: 41.61 MB / 395.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009564/1.766, allocations: 168.4 kB / 0.9206 GB, free: 41.46 MB / 395.1 MB Notification: Performance of pre-optimization done (n=97): time 4.439e-06/1.766, allocations: 0 / 0.9206 GB, free: 41.46 MB / 395.1 MB Notification: Performance of matching and sorting (n=112): time 0.01186/1.778, allocations: 4.142 MB / 0.9247 GB, free: 37.3 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/1.778, allocations: 137.8 kB / 0.9248 GB, free: 37.14 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/1.779, allocations: 0.8159 MB / 0.9256 GB, free: 36.3 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/1.779, allocations: 28.3 kB / 0.9256 GB, free: 36.27 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/1.78, allocations: 0.6043 MB / 0.9262 GB, free: 35.66 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/1.78, allocations: 382.4 kB / 0.9266 GB, free: 35.28 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/1.78, allocations: 3.938 kB / 0.9266 GB, free: 35.28 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/1.78, allocations: 357.9 kB / 0.9269 GB, free: 34.92 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007872/1.781, allocations: 0.6155 MB / 0.9275 GB, free: 34.31 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/1.782, allocations: 0.9285 MB / 0.9284 GB, free: 33.26 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009405/1.791, allocations: 2.32 MB / 0.9307 GB, free: 30.95 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.131e-05/1.791, allocations: 4 kB / 0.9307 GB, free: 30.94 MB / 395.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01263/1.804, allocations: 3.564 MB / 0.9342 GB, free: 27.36 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006851/1.805, allocations: 3.485 MB / 0.9376 GB, free: 23.61 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/1.805, allocations: 12 kB / 0.9376 GB, free: 23.59 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005523/1.81, allocations: 1.082 MB / 0.9387 GB, free: 22.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/1.812, allocations: 299.5 kB / 0.9389 GB, free: 22.23 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003629/1.815, allocations: 1.891 MB / 0.9408 GB, free: 20.31 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/1.817, allocations: 63.78 kB / 0.9408 GB, free: 20.25 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003112/1.818, allocations: 67.95 kB / 0.9409 GB, free: 20.18 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/1.818, allocations: 4 kB / 0.9409 GB, free: 20.18 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01064/1.828, allocations: 2.964 MB / 0.9438 GB, free: 17.21 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.164e-05/1.828, allocations: 12.16 kB / 0.9438 GB, free: 17.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005214/1.834, allocations: 0.9156 MB / 0.9447 GB, free: 16.29 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/1.835, allocations: 299.5 kB / 0.945 GB, free: 16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/1.837, allocations: 1.27 MB / 0.9462 GB, free: 14.7 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/1.839, allocations: 59.8 kB / 0.9463 GB, free: 14.64 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003672/1.839, allocations: 67.95 kB / 0.9464 GB, free: 14.57 MB / 395.1 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0007487/1.84, allocations: 152.3 kB / 0.9465 GB, free: 14.42 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005738/1.841, allocations: 130.4 kB / 0.9466 GB, free: 14.29 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005966/1.847, allocations: 2.137 MB / 0.9487 GB, free: 12.15 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/1.847, allocations: 12 kB / 0.9487 GB, free: 12.14 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/1.847, allocations: 0 / 0.9487 GB, free: 12.14 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/1.847, allocations: 3.984 kB / 0.9487 GB, free: 12.13 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006715/1.853, allocations: 3.468 MB / 0.9521 GB, free: 8.648 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.853, allocations: 0 / 0.9521 GB, free: 8.648 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008491/1.854, allocations: 191.7 kB / 0.9523 GB, free: 8.461 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002733/1.857, allocations: 0.7964 MB / 0.9531 GB, free: 7.672 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/1.857, allocations: 19.67 kB / 0.9531 GB, free: 7.656 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/1.86, allocations: 1.892 MB / 0.955 GB, free: 5.738 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.86, allocations: 3.953 kB / 0.955 GB, free: 5.734 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005254/1.866, allocations: 2.863 MB / 0.9578 GB, free: 2.848 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009641/1.867, allocations: 375.3 kB / 0.9581 GB, free: 2.461 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004347/1.867, allocations: 0 / 0.9581 GB, free: 2.461 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/1.869, allocations: 71.78 kB / 0.9582 GB, free: 2.391 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/1.869, allocations: 105 kB / 0.9583 GB, free: 2.289 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.869, allocations: 51.97 kB / 0.9583 GB, free: 2.238 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009273/1.87, allocations: 0.5967 MB / 0.9589 GB, free: 1.633 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.87, allocations: 0 / 0.9589 GB, free: 1.633 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004395/1.874, allocations: 1.159 MB / 0.96 GB, free: 484 kB / 395.1 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.255/2.129, allocations: 1.04 MB / 0.9611 GB, free: 55.48 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005245/2.135, allocations: 2.426 MB / 0.9634 GB, free: 55.46 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/2.135, allocations: 0.8438 kB / 0.9634 GB, free: 55.46 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/2.136, allocations: 0.7832 MB / 0.9642 GB, free: 55.46 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002685/2.139, allocations: 0.5213 MB / 0.9647 GB, free: 55.45 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/2.143, allocations: 2.34 MB / 0.967 GB, free: 54.96 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006914/2.144, allocations: 1.323 MB / 0.9683 GB, free: 54.25 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001999/2.146, allocations: 0.5728 MB / 0.9688 GB, free: 54.23 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/2.146, allocations: 109.6 kB / 0.9689 GB, free: 54.23 MB / 395.1 MB Notification: Performance of SimCode: time 1.102e-06/2.146, allocations: 0 / 0.9689 GB, free: 54.23 MB / 395.1 MB Notification: Performance of Templates: time 0.0585/2.205, allocations: 37.64 MB / 1.006 GB, free: 52.13 MB / 395.1 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)