Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 184.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 223.2 MB / 240.3 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009223/0.0009223, allocations: 96.55 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002893, allocations: 11.94 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2841, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8501/1.134, allocations: 412.1 MB / 0.7945 GB, free: 73.26 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/1.135, allocations: 89.05 kB / 0.7946 GB, free: 73.17 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7021/1.837, allocations: 217.6 MB / 1.007 GB, free: 42.94 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.837, allocations: 4 kB / 1.007 GB, free: 42.94 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.063e-05/1.837, allocations: 35.98 kB / 1.007 GB, free: 42.9 MB / 458.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.005432/1.842, allocations: 1.944 MB / 1.009 GB, free: 40.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/1.842, allocations: 12.02 kB / 1.009 GB, free: 40.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005474/1.843, allocations: 162.8 kB / 1.009 GB, free: 40.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/1.845, allocations: 0.9918 MB / 1.01 GB, free: 39.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/1.845, allocations: 242.5 kB / 1.01 GB, free: 39.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/1.845, allocations: 95.98 kB / 1.01 GB, free: 39.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002607/1.848, allocations: 1.802 MB / 1.012 GB, free: 37.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/1.848, allocations: 0 / 1.012 GB, free: 37.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/1.848, allocations: 47.97 kB / 1.012 GB, free: 37.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/1.848, allocations: 101.9 kB / 1.012 GB, free: 37.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002419/1.851, allocations: 1.761 MB / 1.014 GB, free: 35.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/1.861, allocations: 6.801 MB / 1.021 GB, free: 28.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/1.863, allocations: 1.432 MB / 1.022 GB, free: 27.03 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005367/1.868, allocations: 3.926 MB / 1.026 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/1.869, allocations: 43.56 kB / 1.026 GB, free: 22.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 2.685e-06/1.869, allocations: 0 / 1.026 GB, free: 22.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01305/1.882, allocations: 5.886 MB / 1.032 GB, free: 16.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/1.882, allocations: 171.2 kB / 1.032 GB, free: 16.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/1.883, allocations: 0.9933 MB / 1.033 GB, free: 15.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/1.883, allocations: 49.7 kB / 1.033 GB, free: 15.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/1.883, allocations: 0.5081 MB / 1.033 GB, free: 15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/1.884, allocations: 418 kB / 1.034 GB, free: 14.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-05/1.884, allocations: 28 kB / 1.034 GB, free: 14.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/1.884, allocations: 357.9 kB / 1.034 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/1.885, allocations: 0.7534 MB / 1.035 GB, free: 13.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/1.886, allocations: 1.017 MB / 1.036 GB, free: 12.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/1.887, allocations: 0.8178 MB / 1.037 GB, free: 11.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/1.887, allocations: 4 kB / 1.037 GB, free: 11.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.003835/1.891, allocations: 2.432 MB / 1.039 GB, free: 9.066 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000418/1.892, allocations: 2.185 MB / 1.041 GB, free: 6.715 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/1.892, allocations: 8 kB / 1.041 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003424/1.895, allocations: 1.213 MB / 1.042 GB, free: 5.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009267/1.896, allocations: 215.6 kB / 1.043 GB, free: 5.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3121/2.208, allocations: 6.233 MB / 1.049 GB, free: 86.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/2.21, allocations: 96.42 kB / 1.049 GB, free: 86.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002258/2.21, allocations: 60.44 kB / 1.049 GB, free: 86.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/2.21, allocations: 4.094 kB / 1.049 GB, free: 86.29 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004248/2.215, allocations: 2.233 MB / 1.051 GB, free: 86.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/2.215, allocations: 7.719 kB / 1.051 GB, free: 86.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/2.217, allocations: 1.015 MB / 1.052 GB, free: 86.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/2.218, allocations: 229.1 kB / 1.052 GB, free: 86.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005024/2.223, allocations: 6.094 MB / 1.058 GB, free: 82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/2.225, allocations: 89.64 kB / 1.058 GB, free: 82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/2.225, allocations: 62.94 kB / 1.058 GB, free: 82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (128): * Single equations (assignments): 123 * 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.0009294/2.226, allocations: 455 kB / 1.059 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/2.227, allocations: 135.3 kB / 1.059 GB, free: 81.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/2.231, allocations: 2.605 MB / 1.061 GB, free: 81.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/2.231, allocations: 21.16 kB / 1.062 GB, free: 81.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/2.231, allocations: 1.5 kB / 1.062 GB, free: 81.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/2.231, allocations: 9.812 kB / 1.062 GB, free: 81.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/2.239, allocations: 4.187 MB / 1.066 GB, free: 81.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/2.239, allocations: 2.75 kB / 1.066 GB, free: 81.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007669/2.24, allocations: 153.8 kB / 1.066 GB, free: 81.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003362/2.243, allocations: 1.221 MB / 1.067 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/2.243, allocations: 40.77 kB / 1.067 GB, free: 81.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005559/2.249, allocations: 6.26 MB / 1.073 GB, free: 77.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/2.249, allocations: 3.656 kB / 1.073 GB, free: 77.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005935/2.255, allocations: 3.588 MB / 1.077 GB, free: 76.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/2.256, allocations: 434.5 kB / 1.077 GB, free: 76.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004112/2.256, allocations: 28.41 kB / 1.077 GB, free: 76.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/2.258, allocations: 95.59 kB / 1.077 GB, free: 76.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003305/2.258, allocations: 148.4 kB / 1.077 GB, free: 76.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/2.258, allocations: 52.05 kB / 1.077 GB, free: 76.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001215/2.26, allocations: 0.7537 MB / 1.078 GB, free: 76.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/2.26, allocations: 0 / 1.078 GB, free: 76.48 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004333/2.264, allocations: 1.124 MB / 1.079 GB, free: 76.48 MB / 458.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.00284/2.267, allocations: 0.8178 MB / 1.08 GB, free: 76.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007348/2.274, allocations: 3.561 MB / 1.083 GB, free: 75.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.892e-06/2.274, allocations: 0 / 1.083 GB, free: 75.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002999/2.277, allocations: 1.364 MB / 1.085 GB, free: 75.63 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/2.28, allocations: 0.5563 MB / 1.085 GB, free: 75.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007057/2.287, allocations: 3.592 MB / 1.089 GB, free: 74.44 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/2.288, allocations: 1.288 MB / 1.09 GB, free: 73.73 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00202/2.29, allocations: 0.5743 MB / 1.091 GB, free: 73.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/2.29, allocations: 126.5 kB / 1.091 GB, free: 73.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/2.29, allocations: 0 / 1.091 GB, free: 73.71 MB / 458.7 MB Notification: Performance of Templates: time 0.05977/2.35, allocations: 40.81 MB / 1.131 GB, free: 72.15 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches