Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001591/0.001591, allocations: 183.4 kB / 8.354 MB, free: 0.7305 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.491/1.491, allocations: 194.3 MB / 203.1 MB, free: 13.01 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.001864/0.001864, allocations: 123.9 kB / 248.1 MB, free: 8 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.932e-05, allocations: 7.984 kB / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0856/0.08564, allocations: 44.49 MB / 342.6 MB, free: 6.992 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.124, allocations: 404.3 MB / 0.7293 GB, free: 93.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003656/1.124, allocations: 85.11 kB / 0.7294 GB, free: 93.58 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.713/1.837, allocations: 208.5 MB / 0.933 GB, free: 45.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.432e-06/1.837, allocations: 0 / 0.933 GB, free: 45.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001549/1.837, allocations: 30.97 kB / 0.9331 GB, free: 45.32 MB / 394.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.006141/1.843, allocations: 1.774 MB / 0.9348 GB, free: 43.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/1.844, allocations: 19.95 kB / 0.9348 GB, free: 43.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/1.845, allocations: 166.2 kB / 0.935 GB, free: 43.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002815/1.848, allocations: 0.9866 MB / 0.9359 GB, free: 42.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/1.848, allocations: 198.5 kB / 0.9361 GB, free: 42.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004369/1.848, allocations: 60 kB / 0.9362 GB, free: 42.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002862/1.851, allocations: 1.609 MB / 0.9378 GB, free: 40.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/1.854, allocations: 1.634 MB / 0.9394 GB, free: 38.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/1.854, allocations: 8 kB / 0.9394 GB, free: 38.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/1.854, allocations: 0 / 0.9394 GB, free: 38.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/1.854, allocations: 102 kB / 0.9395 GB, free: 38.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/1.865, allocations: 6.565 MB / 0.9459 GB, free: 31.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/1.867, allocations: 1.402 MB / 0.9472 GB, free: 30.44 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008843/1.867, allocations: 0.8054 MB / 0.948 GB, free: 29.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004785/1.872, allocations: 3.882 MB / 0.9518 GB, free: 25.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/1.872, allocations: 55.83 kB / 0.9519 GB, free: 25.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 3.186e-06/1.872, allocations: 0 / 0.9519 GB, free: 25.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.0181/1.89, allocations: 6.461 MB / 0.9582 GB, free: 18.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/1.891, allocations: 171.5 kB / 0.9584 GB, free: 18.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000961/1.891, allocations: 0.6604 MB / 0.959 GB, free: 18.06 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/1.892, allocations: 25.7 kB / 0.959 GB, free: 18.03 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/1.892, allocations: 0.5385 MB / 0.9595 GB, free: 17.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/1.892, allocations: 402.1 kB / 0.9599 GB, free: 17.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/1.892, allocations: 0 / 0.9599 GB, free: 17.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.057e-05/1.893, allocations: 357.9 kB / 0.9603 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009234/1.894, allocations: 0.7263 MB / 0.961 GB, free: 16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/1.895, allocations: 0.9842 MB / 0.9619 GB, free: 14.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008681/1.903, allocations: 2.359 MB / 0.9642 GB, free: 12.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/1.903, allocations: 4 kB / 0.9642 GB, free: 12.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.0126/1.916, allocations: 3.86 MB / 0.968 GB, free: 8.684 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004667/1.916, allocations: 2.363 MB / 0.9703 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/1.916, allocations: 8 kB / 0.9703 GB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/1.918, allocations: 0.9916 MB / 0.9713 GB, free: 5.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/1.92, allocations: 219.7 kB / 0.9715 GB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2866/2.206, allocations: 6.599 MB / 0.978 GB, free: 61.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/2.208, allocations: 74.25 kB / 0.978 GB, free: 61.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/2.209, allocations: 62.05 kB / 0.9781 GB, free: 61.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/2.209, allocations: 3.406 kB / 0.9781 GB, free: 61.52 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009865/2.218, allocations: 3.021 MB / 0.981 GB, free: 61.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/2.219, allocations: 7.75 kB / 0.981 GB, free: 61.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00194/2.22, allocations: 0.7225 MB / 0.9818 GB, free: 61.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/2.222, allocations: 235.9 kB / 0.982 GB, free: 61.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00578/2.227, allocations: 6.568 MB / 0.9884 GB, free: 56.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/2.229, allocations: 66.19 kB / 0.9885 GB, free: 56.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/2.229, allocations: 58.45 kB / 0.9885 GB, free: 56.62 MB / 394.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 () * 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.0005071/2.229, allocations: 142.1 kB / 0.9886 GB, free: 56.51 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/2.23, allocations: 112.4 kB / 0.9888 GB, free: 56.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008242/2.238, allocations: 3.064 MB / 0.9917 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/2.238, allocations: 16.94 kB / 0.9918 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/2.238, allocations: 2.125 kB / 0.9918 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/2.238, allocations: 11.86 kB / 0.9918 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/2.249, allocations: 4.54 MB / 0.9962 GB, free: 56.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/2.249, allocations: 3.375 kB / 0.9962 GB, free: 56.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/2.25, allocations: 157.1 kB / 0.9964 GB, free: 56.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002257/2.252, allocations: 1 MB / 0.9973 GB, free: 55.99 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/2.252, allocations: 30.8 kB / 0.9974 GB, free: 55.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007109/2.259, allocations: 6.596 MB / 1.004 GB, free: 51.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/2.259, allocations: 3.844 kB / 1.004 GB, free: 51.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008533/2.268, allocations: 4.046 MB / 1.008 GB, free: 51.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000924/2.269, allocations: 400.6 kB / 1.008 GB, free: 51.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002145/2.269, allocations: 4.438 kB / 1.008 GB, free: 51.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/2.27, allocations: 76.12 kB / 1.008 GB, free: 51.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/2.271, allocations: 137.8 kB / 1.008 GB, free: 51.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/2.271, allocations: 54.06 kB / 1.008 GB, free: 51.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006396/2.271, allocations: 495.3 kB / 1.009 GB, free: 51.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.271, allocations: 0 / 1.009 GB, free: 51.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003879/2.275, allocations: 1.051 MB / 1.01 GB, free: 51.33 MB / 394.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) * 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 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00242/2.278, allocations: 0.7941 MB / 1.011 GB, free: 51.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005698/2.283, allocations: 3.438 MB / 1.014 GB, free: 50.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/2.283, allocations: 3.125 kB / 1.014 GB, free: 50.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/2.286, allocations: 1.262 MB / 1.015 GB, free: 50.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/2.288, allocations: 484.8 kB / 1.016 GB, free: 50.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/2.294, allocations: 2.43 MB / 1.018 GB, free: 49.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000708/2.295, allocations: 1.3 MB / 1.019 GB, free: 49.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00213/2.297, allocations: 0.5881 MB / 1.02 GB, free: 49.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/2.297, allocations: 101.2 kB / 1.02 GB, free: 49.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/2.297, allocations: 0 / 1.02 GB, free: 49.21 MB / 394.7 MB Notification: Performance of Templates: time 0.05475/2.352, allocations: 37.91 MB / 1.057 GB, free: 46.99 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)