Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009543/0.009543, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.499/1.499, allocations: 170.8 MB / 186.6 MB, free: 1.027 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.001663/0.001663, allocations: 107.3 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2798, allocations: 38.75 MB / 312.9 MB, free: 38.85 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.381, allocations: 399.7 MB / 0.6958 GB, free: 103.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003635/1.381, allocations: 89.31 kB / 0.6959 GB, free: 103.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7357/2.117, allocations: 210.7 MB / 0.9017 GB, free: 66.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/2.117, allocations: 0 / 0.9017 GB, free: 66.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001844/2.117, allocations: 39.28 kB / 0.9018 GB, free: 66.73 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007907/2.125, allocations: 1.936 MB / 0.9037 GB, free: 64.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.412e-05/2.125, allocations: 8.031 kB / 0.9037 GB, free: 64.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/2.126, allocations: 166.2 kB / 0.9038 GB, free: 64.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/2.129, allocations: 0.9941 MB / 0.9048 GB, free: 63.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/2.129, allocations: 239.8 kB / 0.905 GB, free: 63.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002013/2.129, allocations: 99.97 kB / 0.9051 GB, free: 63.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002923/2.132, allocations: 1.785 MB / 0.9069 GB, free: 61.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/2.132, allocations: 3.938 kB / 0.9069 GB, free: 61.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001484/2.132, allocations: 52.45 kB / 0.9069 GB, free: 61.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/2.132, allocations: 106 kB / 0.907 GB, free: 61.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002579/2.135, allocations: 1.753 MB / 0.9087 GB, free: 59.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01168/2.147, allocations: 6.839 MB / 0.9154 GB, free: 52.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/2.149, allocations: 1.442 MB / 0.9168 GB, free: 51.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005198/2.154, allocations: 3.926 MB / 0.9207 GB, free: 46.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/2.154, allocations: 51.55 kB / 0.9207 GB, free: 46.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 2.866e-06/2.154, allocations: 0 / 0.9207 GB, free: 46.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01304/2.167, allocations: 5.888 MB / 0.9265 GB, free: 40.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/2.167, allocations: 149.4 kB / 0.9266 GB, free: 40.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/2.169, allocations: 0.9813 MB / 0.9276 GB, free: 39.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/2.169, allocations: 53.7 kB / 0.9276 GB, free: 39.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/2.169, allocations: 0.5242 MB / 0.9281 GB, free: 39.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/2.17, allocations: 413.1 kB / 0.9285 GB, free: 38.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.406e-05/2.17, allocations: 32 kB / 0.9285 GB, free: 38.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/2.17, allocations: 357.9 kB / 0.9289 GB, free: 38.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/2.171, allocations: 0.7612 MB / 0.9296 GB, free: 37.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/2.172, allocations: 1.022 MB / 0.9306 GB, free: 36.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/2.173, allocations: 0.8262 MB / 0.9314 GB, free: 35.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/2.173, allocations: 4 kB / 0.9314 GB, free: 35.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003943/2.177, allocations: 2.455 MB / 0.9338 GB, free: 33.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004585/2.178, allocations: 2.357 MB / 0.9361 GB, free: 30.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/2.178, allocations: 8 kB / 0.9361 GB, free: 30.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003461/2.181, allocations: 1.223 MB / 0.9373 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/2.182, allocations: 223.6 kB / 0.9375 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005056/2.187, allocations: 6.243 MB / 0.9436 GB, free: 22.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/2.189, allocations: 99.84 kB / 0.9437 GB, free: 22.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/2.189, allocations: 55.97 kB / 0.9438 GB, free: 22.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/2.189, allocations: 4 kB / 0.9438 GB, free: 22.43 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003371/2.193, allocations: 2.045 MB / 0.9458 GB, free: 20.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/2.193, allocations: 4 kB / 0.9458 GB, free: 20.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/2.195, allocations: 0.795 MB / 0.9466 GB, free: 19.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/2.196, allocations: 227.7 kB / 0.9468 GB, free: 19.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005154/2.201, allocations: 6.812 MB / 0.9534 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/2.203, allocations: 94.97 kB / 0.9535 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/2.203, allocations: 55.98 kB / 0.9536 GB, free: 11.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001223/2.204, allocations: 456.6 kB / 0.954 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003451/2.205, allocations: 134.4 kB / 0.9542 GB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/2.209, allocations: 2.603 MB / 0.9567 GB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/2.209, allocations: 19.98 kB / 0.9567 GB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/2.209, allocations: 0 / 0.9567 GB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/2.209, allocations: 7.984 kB / 0.9567 GB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006379/2.216, allocations: 4.19 MB / 0.9608 GB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.216, allocations: 4 kB / 0.9608 GB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007848/2.216, allocations: 143.8 kB / 0.961 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/2.22, allocations: 1.223 MB / 0.9621 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/2.22, allocations: 39.41 kB / 0.9622 GB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.284/2.504, allocations: 6.254 MB / 0.9683 GB, free: 61.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/2.504, allocations: 0 / 0.9683 GB, free: 61.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006592/2.511, allocations: 3.585 MB / 0.9718 GB, free: 60.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/2.512, allocations: 434.8 kB / 0.9722 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/2.512, allocations: 27.31 kB / 0.9722 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/2.513, allocations: 96.2 kB / 0.9723 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003397/2.514, allocations: 139.6 kB / 0.9725 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/2.514, allocations: 54.94 kB / 0.9725 GB, free: 60.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001003/2.515, allocations: 0.7467 MB / 0.9732 GB, free: 60.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/2.515, allocations: 0 / 0.9732 GB, free: 60.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003938/2.519, allocations: 1.119 MB / 0.9743 GB, free: 60.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002382/2.521, allocations: 0.8092 MB / 0.9751 GB, free: 60.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0065/2.528, allocations: 3.598 MB / 0.9786 GB, free: 60.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/2.528, allocations: 3.406 kB / 0.9786 GB, free: 60.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002898/2.531, allocations: 1.357 MB / 0.98 GB, free: 59.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/2.534, allocations: 0.5406 MB / 0.9805 GB, free: 59.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008234/2.542, allocations: 3.6 MB / 0.984 GB, free: 58.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009951/2.543, allocations: 1.292 MB / 0.9853 GB, free: 57.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002519/2.545, allocations: 0.5779 MB / 0.9858 GB, free: 57.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/2.546, allocations: 122.5 kB / 0.986 GB, free: 57.87 MB / 362.7 MB Notification: Performance of SimCode: time 1.392e-06/2.546, allocations: 0 / 0.986 GB, free: 57.87 MB / 362.7 MB Notification: Performance of Templates: time 0.06799/2.614, allocations: 40.02 MB / 1.025 GB, free: 55.64 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)