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.001077/0.001077, allocations: 182.3 kB / 13.64 MB, free: 1.676 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.497/1.497, allocations: 194.3 MB / 208.4 MB, free: 6.691 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.001644/0.001644, allocations: 112.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.531e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07591/0.07595, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9607/1.037, allocations: 404.9 MB / 0.7367 GB, free: 119.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/1.037, allocations: 82.81 kB / 0.7368 GB, free: 119.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7155/1.752, allocations: 210.1 MB / 0.9419 GB, free: 81.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/1.752, allocations: 3.938 kB / 0.9419 GB, free: 81.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.383e-05/1.753, allocations: 31.06 kB / 0.942 GB, free: 81.96 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005202/1.758, allocations: 1.798 MB / 0.9437 GB, free: 80.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/1.758, allocations: 11.84 kB / 0.9437 GB, free: 80.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007592/1.759, allocations: 164.5 kB / 0.9439 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002024/1.761, allocations: 0.9842 MB / 0.9449 GB, free: 80.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/1.761, allocations: 241.3 kB / 0.9451 GB, free: 79.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/1.761, allocations: 98.5 kB / 0.9452 GB, free: 79.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/1.764, allocations: 1.772 MB / 0.9469 GB, free: 78.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/1.764, allocations: 3.953 kB / 0.9469 GB, free: 78.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000151/1.764, allocations: 48.81 kB / 0.947 GB, free: 78.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/1.764, allocations: 103.1 kB / 0.9471 GB, free: 78.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/1.767, allocations: 1.723 MB / 0.9487 GB, free: 77.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/1.778, allocations: 6.828 MB / 0.9554 GB, free: 72.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/1.78, allocations: 1.42 MB / 0.9568 GB, free: 70.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/1.781, allocations: 0.8248 MB / 0.9576 GB, free: 70.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005038/1.786, allocations: 3.981 MB / 0.9615 GB, free: 65.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/1.786, allocations: 55.3 kB / 0.9615 GB, free: 65.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 2.665e-06/1.786, allocations: 0 / 0.9615 GB, free: 65.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.008774/1.795, allocations: 4.593 MB / 0.966 GB, free: 61.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/1.795, allocations: 167.2 kB / 0.9662 GB, free: 61.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/1.796, allocations: 0.9745 MB / 0.9671 GB, free: 60.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.796, allocations: 53.64 kB / 0.9672 GB, free: 60 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/1.796, allocations: 0.5306 MB / 0.9677 GB, free: 59.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/1.797, allocations: 413.7 kB / 0.9681 GB, free: 59.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.026e-05/1.797, allocations: 31.84 kB / 0.9681 GB, free: 59.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.801e-05/1.797, allocations: 353.9 kB / 0.9685 GB, free: 58.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009972/1.798, allocations: 0.7419 MB / 0.9692 GB, free: 57.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/1.799, allocations: 1.003 MB / 0.9702 GB, free: 56.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/1.8, allocations: 0.8094 MB / 0.971 GB, free: 56.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/1.8, allocations: 4 kB / 0.971 GB, free: 56.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003611/1.804, allocations: 2.401 MB / 0.9733 GB, free: 53.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004406/1.804, allocations: 2.365 MB / 0.9756 GB, free: 51.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/1.804, allocations: 4 kB / 0.9756 GB, free: 51.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00336/1.808, allocations: 1.204 MB / 0.9768 GB, free: 49.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008919/1.808, allocations: 219.7 kB / 0.977 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/1.813, allocations: 6.168 MB / 0.983 GB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/1.815, allocations: 95.84 kB / 0.9831 GB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/1.815, allocations: 63.95 kB / 0.9832 GB, free: 42.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.865e-06/1.815, allocations: 4 kB / 0.9832 GB, free: 42.99 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003243/1.818, allocations: 2.007 MB / 0.9852 GB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/1.818, allocations: 12.06 kB / 0.9852 GB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001891/1.82, allocations: 0.7915 MB / 0.9859 GB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/1.821, allocations: 231.7 kB / 0.9862 GB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005258/1.826, allocations: 6.723 MB / 0.9927 GB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/1.828, allocations: 99.84 kB / 0.9928 GB, free: 32.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/1.828, allocations: 55.97 kB / 0.9929 GB, free: 32.62 MB / 410.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.0006286/1.829, allocations: 184.7 kB / 0.9931 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/1.829, allocations: 134.4 kB / 0.9932 GB, free: 32.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004599/1.834, allocations: 2.559 MB / 0.9957 GB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/1.834, allocations: 19.94 kB / 0.9957 GB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.834, allocations: 4 kB / 0.9957 GB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/1.834, allocations: 11.92 kB / 0.9957 GB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005687/1.84, allocations: 4.145 MB / 0.9998 GB, free: 25.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/1.84, allocations: 3.953 kB / 0.9998 GB, free: 25.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007106/1.84, allocations: 151.8 kB / 0.9999 GB, free: 25.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/1.844, allocations: 1.197 MB / 1.001 GB, free: 24.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/1.844, allocations: 43.97 kB / 1.001 GB, free: 24.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004582/1.848, allocations: 6.207 MB / 1.007 GB, free: 17.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.848, allocations: 0 / 1.007 GB, free: 17.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004802/1.853, allocations: 3.542 MB / 1.011 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009037/1.854, allocations: 435.1 kB / 1.011 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/1.854, allocations: 28 kB / 1.011 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/1.855, allocations: 95.83 kB / 1.011 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/1.856, allocations: 141.1 kB / 1.011 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/1.856, allocations: 47.97 kB / 1.011 GB, free: 13.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000902/1.857, allocations: 0.7351 MB / 1.012 GB, free: 12.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.857, allocations: 4 kB / 1.012 GB, free: 12.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003385/1.86, allocations: 1.116 MB / 1.013 GB, free: 11.38 MB / 410.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.002442/1.862, allocations: 0.842 MB / 1.014 GB, free: 10.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005655/1.868, allocations: 3.567 MB / 1.017 GB, free: 6.953 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.868, allocations: 0 / 1.017 GB, free: 6.953 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/1.87, allocations: 1.317 MB / 1.019 GB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/1.873, allocations: 0.5421 MB / 1.019 GB, free: 5.086 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005817/1.879, allocations: 2.56 MB / 1.022 GB, free: 2.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007419/1.88, allocations: 1.297 MB / 1.023 GB, free: 1.164 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002332/1.882, allocations: 0.7018 MB / 1.024 GB, free: 468 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/1.882, allocations: 107.3 kB / 1.024 GB, free: 360 kB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/1.882, allocations: 0 / 1.024 GB, free: 360 kB / 410.7 MB Notification: Performance of Templates: time 0.2812/2.164, allocations: 41.82 MB / 1.065 GB, free: 72.1 MB / 410.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)