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.0009673/0.0009674, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.265/1.265, allocations: 194.5 MB / 211.6 MB, free: 3.031 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.001593/0.001593, allocations: 116.3 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.0978, allocations: 44.5 MB / 355.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8967/0.9946, allocations: 405 MB / 0.7423 GB, free: 104.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.9949, allocations: 89.86 kB / 0.7423 GB, free: 104.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6368/1.632, allocations: 210.8 MB / 0.9482 GB, free: 60.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.632, allocations: 0 / 0.9482 GB, free: 60.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001555/1.632, allocations: 39.05 kB / 0.9482 GB, free: 60.23 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.006721/1.639, allocations: 1.936 MB / 0.9501 GB, free: 58.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/1.639, allocations: 8.031 kB / 0.9501 GB, free: 58.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/1.64, allocations: 162.3 kB / 0.9503 GB, free: 58.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/1.643, allocations: 0.9874 MB / 0.9512 GB, free: 57.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/1.643, allocations: 239.8 kB / 0.9515 GB, free: 56.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004689/1.643, allocations: 109.2 kB / 0.9516 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003424/1.647, allocations: 1.809 MB / 0.9533 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/1.647, allocations: 4 kB / 0.9533 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/1.647, allocations: 37 kB / 0.9534 GB, free: 54.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/1.647, allocations: 102 kB / 0.9535 GB, free: 54.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/1.65, allocations: 1.757 MB / 0.9552 GB, free: 52.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/1.661, allocations: 6.843 MB / 0.9619 GB, free: 45.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/1.663, allocations: 1.428 MB / 0.9633 GB, free: 44.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005488/1.669, allocations: 3.952 MB / 0.9671 GB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/1.669, allocations: 47.56 kB / 0.9672 GB, free: 40.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 2.494e-06/1.669, allocations: 4 kB / 0.9672 GB, free: 40.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01282/1.682, allocations: 5.879 MB / 0.9729 GB, free: 34.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/1.682, allocations: 175.2 kB / 0.9731 GB, free: 34.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/1.683, allocations: 0.9813 MB / 0.974 GB, free: 33.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/1.683, allocations: 53.7 kB / 0.9741 GB, free: 32.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003482/1.684, allocations: 0.5234 MB / 0.9746 GB, free: 32.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/1.684, allocations: 416.9 kB / 0.975 GB, free: 32.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/1.684, allocations: 24 kB / 0.975 GB, free: 32.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/1.684, allocations: 357.9 kB / 0.9754 GB, free: 31.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/1.685, allocations: 0.7654 MB / 0.9761 GB, free: 30.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/1.687, allocations: 1.027 MB / 0.9771 GB, free: 29.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/1.688, allocations: 0.8301 MB / 0.9779 GB, free: 28.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/1.688, allocations: 4 kB / 0.9779 GB, free: 28.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004159/1.692, allocations: 2.451 MB / 0.9803 GB, free: 26.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007623/1.693, allocations: 2.361 MB / 0.9826 GB, free: 23.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/1.693, allocations: 11.98 kB / 0.9826 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003558/1.696, allocations: 1.228 MB / 0.9838 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009588/1.697, allocations: 215.7 kB / 0.984 GB, free: 22.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005054/1.702, allocations: 6.236 MB / 0.9901 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/1.704, allocations: 103.8 kB / 0.9902 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002202/1.704, allocations: 64.14 kB / 0.9903 GB, free: 15.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.387e-06/1.704, allocations: 4 kB / 0.9903 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003461/1.708, allocations: 2.046 MB / 0.9923 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/1.708, allocations: 8.031 kB / 0.9923 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/1.71, allocations: 0.7888 MB / 0.9931 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009464/1.711, allocations: 235.6 kB / 0.9933 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004641/1.715, allocations: 6.808 MB / 0.9999 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/1.717, allocations: 95.86 kB / 1 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/1.717, allocations: 55.97 kB / 1 GB, free: 5.219 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 () * 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.0008842/1.718, allocations: 468.6 kB / 1.001 GB, free: 4.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/1.718, allocations: 134.4 kB / 1.001 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004298/1.722, allocations: 2.596 MB / 1.003 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/1.722, allocations: 19.95 kB / 1.003 GB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/1.722, allocations: 0 / 1.003 GB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/1.722, allocations: 7.969 kB / 1.003 GB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2098/1.932, allocations: 4.182 MB / 1.007 GB, free: 69.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/1.932, allocations: 0 / 1.007 GB, free: 69.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/1.933, allocations: 150.8 kB / 1.007 GB, free: 69.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003123/1.936, allocations: 1.216 MB / 1.009 GB, free: 69.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/1.936, allocations: 35.59 kB / 1.009 GB, free: 69.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004811/1.941, allocations: 6.265 MB / 1.015 GB, free: 65.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/1.941, allocations: 0 / 1.015 GB, free: 65.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/1.946, allocations: 3.585 MB / 1.018 GB, free: 65.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009482/1.947, allocations: 441.2 kB / 1.019 GB, free: 65.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/1.947, allocations: 25.03 kB / 1.019 GB, free: 65.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/1.948, allocations: 100.3 kB / 1.019 GB, free: 65.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/1.948, allocations: 144.2 kB / 1.019 GB, free: 65.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1.949, allocations: 47.52 kB / 1.019 GB, free: 65.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008967/1.95, allocations: 0.7485 MB / 1.02 GB, free: 65.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.95, allocations: 3.625 kB / 1.02 GB, free: 65.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003507/1.953, allocations: 1.123 MB / 1.021 GB, free: 65.21 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) * 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.002096/1.955, allocations: 0.8084 MB / 1.022 GB, free: 65.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00568/1.961, allocations: 3.601 MB / 1.025 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.961, allocations: 3.281 kB / 1.025 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/1.964, allocations: 1.355 MB / 1.026 GB, free: 64.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/1.966, allocations: 0.5352 MB / 1.027 GB, free: 64.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007661/1.974, allocations: 3.595 MB / 1.031 GB, free: 63.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007889/1.975, allocations: 1.289 MB / 1.032 GB, free: 62.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002086/1.977, allocations: 0.5833 MB / 1.032 GB, free: 62.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003472/1.977, allocations: 123.7 kB / 1.032 GB, free: 62.35 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/1.977, allocations: 0 / 1.032 GB, free: 62.35 MB / 410.7 MB Notification: Performance of Templates: time 0.05461/2.032, allocations: 40.11 MB / 1.072 GB, free: 60.22 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)