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.001374/0.001374, allocations: 165.9 kB / 7.636 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.301/1.301, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.00165/0.001649, allocations: 116.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.636e-05/1.64e-05, allocations: 7.984 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07093/0.07096, allocations: 38.77 MB / 301 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9397/1.011, allocations: 398.9 MB / 0.6835 GB, free: 29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/1.011, allocations: 85.19 kB / 0.6836 GB, free: 28.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8627/1.874, allocations: 208.5 MB / 0.8871 GB, free: 52.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.874, allocations: 0 / 0.8871 GB, free: 52.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001456/1.874, allocations: 34.61 kB / 0.8872 GB, free: 52.85 MB / 346.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.007119/1.881, allocations: 1.791 MB / 0.8889 GB, free: 51.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/1.881, allocations: 7.625 kB / 0.8889 GB, free: 51.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/1.882, allocations: 160.1 kB / 0.8891 GB, free: 51.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/1.886, allocations: 0.997 MB / 0.8901 GB, free: 51.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/1.886, allocations: 199.7 kB / 0.8902 GB, free: 51.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005549/1.886, allocations: 64.25 kB / 0.8903 GB, free: 51.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003393/1.89, allocations: 1.605 MB / 0.8919 GB, free: 51.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004142/1.894, allocations: 1.633 MB / 0.8935 GB, free: 51.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.44e-05/1.894, allocations: 2.906 kB / 0.8935 GB, free: 51.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/1.894, allocations: 3.938 kB / 0.8935 GB, free: 51.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/1.894, allocations: 101 kB / 0.8936 GB, free: 51.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/1.907, allocations: 6.561 MB / 0.9 GB, free: 49.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002517/1.909, allocations: 1.393 MB / 0.9013 GB, free: 49.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/1.91, allocations: 0.8176 MB / 0.9021 GB, free: 49.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006235/1.917, allocations: 3.872 MB / 0.9059 GB, free: 47.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/1.917, allocations: 46.7 kB / 0.906 GB, free: 47.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=110): time 3.617e-06/1.917, allocations: 0 / 0.906 GB, free: 47.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.01913/1.936, allocations: 6.463 MB / 0.9123 GB, free: 46.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/1.936, allocations: 140.8 kB / 0.9124 GB, free: 46.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/1.937, allocations: 0.6605 MB / 0.9131 GB, free: 46.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/1.938, allocations: 25.7 kB / 0.9131 GB, free: 46.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004678/1.938, allocations: 0.5384 MB / 0.9136 GB, free: 46.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004509/1.938, allocations: 396.4 kB / 0.914 GB, free: 46.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/1.939, allocations: 0 / 0.914 GB, free: 46.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/1.939, allocations: 366.9 kB / 0.9143 GB, free: 45.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/1.94, allocations: 0.7306 MB / 0.915 GB, free: 45.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/1.941, allocations: 0.9744 MB / 0.916 GB, free: 45.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009104/1.95, allocations: 2.364 MB / 0.9183 GB, free: 45.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.132e-05/1.95, allocations: 3.188 kB / 0.9183 GB, free: 45.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.0136/1.964, allocations: 3.858 MB / 0.9221 GB, free: 44.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005844/1.965, allocations: 2.358 MB / 0.9244 GB, free: 41.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/1.965, allocations: 7.062 kB / 0.9244 GB, free: 41.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002195/1.967, allocations: 0.9941 MB / 0.9254 GB, free: 41.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/1.968, allocations: 220.6 kB / 0.9256 GB, free: 41.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007592/1.976, allocations: 6.613 MB / 0.932 GB, free: 36.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/1.977, allocations: 60.84 kB / 0.9321 GB, free: 36.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003803/1.978, allocations: 61.66 kB / 0.9321 GB, free: 36.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/1.978, allocations: 3.75 kB / 0.9321 GB, free: 36.57 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01094/1.989, allocations: 3.029 MB / 0.9351 GB, free: 35.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/1.989, allocations: 10.66 kB / 0.9351 GB, free: 35.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/1.991, allocations: 0.7095 MB / 0.9358 GB, free: 35.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/1.992, allocations: 237.5 kB / 0.936 GB, free: 35.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005121/1.997, allocations: 6.561 MB / 0.9424 GB, free: 30 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/1.998, allocations: 62.67 kB / 0.9425 GB, free: 30 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003317/1.999, allocations: 66 kB / 0.9426 GB, free: 29.98 MB / 346.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.0007316/2, allocations: 142.1 kB / 0.9427 GB, free: 29.87 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/2, allocations: 112.2 kB / 0.9428 GB, free: 29.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008419/2.008, allocations: 3.071 MB / 0.9458 GB, free: 27.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/2.009, allocations: 18.81 kB / 0.9458 GB, free: 27.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/2.009, allocations: 4 kB / 0.9458 GB, free: 27.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.956e-05/2.009, allocations: 6.844 kB / 0.9458 GB, free: 27.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009693/2.018, allocations: 4.534 MB / 0.9503 GB, free: 23.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/2.018, allocations: 0 / 0.9503 GB, free: 23.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007548/2.019, allocations: 154.8 kB / 0.9504 GB, free: 23.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/2.021, allocations: 1.015 MB / 0.9514 GB, free: 22.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/2.021, allocations: 25.56 kB / 0.9514 GB, free: 22.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007067/2.029, allocations: 6.587 MB / 0.9579 GB, free: 16.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/2.029, allocations: 3.469 kB / 0.9579 GB, free: 16.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008796/2.037, allocations: 4.048 MB / 0.9618 GB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009468/2.038, allocations: 405.2 kB / 0.9622 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003964/2.039, allocations: 0 / 0.9622 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/2.04, allocations: 70.98 kB / 0.9623 GB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003476/2.04, allocations: 144.1 kB / 0.9624 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/2.041, allocations: 47.12 kB / 0.9625 GB, free: 12.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000749/2.041, allocations: 499.1 kB / 0.9629 GB, free: 12.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/2.041, allocations: 0 / 0.9629 GB, free: 12.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004582/2.046, allocations: 1.043 MB / 0.9639 GB, free: 11.16 MB / 346.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.00273/2.049, allocations: 0.7929 MB / 0.9647 GB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006275/2.055, allocations: 3.436 MB / 0.9681 GB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/2.055, allocations: 0 / 0.9681 GB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002464/2.058, allocations: 1.262 MB / 0.9693 GB, free: 6.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/2.06, allocations: 485.4 kB / 0.9698 GB, free: 5.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/2.066, allocations: 2.441 MB / 0.9722 GB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008047/2.067, allocations: 1.3 MB / 0.9734 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002328/2.07, allocations: 0.5879 MB / 0.974 GB, free: 1.656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/2.07, allocations: 107.4 kB / 0.9741 GB, free: 1.551 MB / 346.7 MB Notification: Performance of SimCode: time 6.91e-07/2.07, allocations: 0 / 0.9741 GB, free: 1.551 MB / 346.7 MB Notification: Performance of Templates: time 0.2857/2.356, allocations: 37.84 MB / 1.011 GB, free: 61.33 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)