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.001312/0.001312, allocations: 176.3 kB / 17.4 MB, free: 4.422 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.426/1.426, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0008289/0.000829, allocations: 100.3 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 11.94 kB / 352.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2445, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8349/1.079, allocations: 412.3 MB / 0.7959 GB, free: 72.87 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/1.08, allocations: 87.97 kB / 0.796 GB, free: 72.79 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6725/1.752, allocations: 216.5 MB / 1.007 GB, free: 43.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.754e-06/1.752, allocations: 0 / 1.007 GB, free: 43.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.381e-05/1.752, allocations: 35.98 kB / 1.007 GB, free: 43.56 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.004737/1.757, allocations: 1.924 MB / 1.009 GB, free: 41.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/1.757, allocations: 8.031 kB / 1.009 GB, free: 41.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004604/1.758, allocations: 163.2 kB / 1.009 GB, free: 41.42 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001747/1.759, allocations: 1.025 MB / 1.01 GB, free: 40.35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/1.76, allocations: 238.5 kB / 1.011 GB, free: 40.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/1.76, allocations: 95.98 kB / 1.011 GB, free: 39.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/1.762, allocations: 1.82 MB / 1.013 GB, free: 38.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/1.762, allocations: 0 / 1.013 GB, free: 38.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/1.762, allocations: 43.97 kB / 1.013 GB, free: 38.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/1.762, allocations: 106 kB / 1.013 GB, free: 37.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/1.765, allocations: 1.753 MB / 1.014 GB, free: 36.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008956/1.774, allocations: 6.747 MB / 1.021 GB, free: 29.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/1.776, allocations: 1.44 MB / 1.022 GB, free: 27.72 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/1.777, allocations: 0.8392 MB / 1.023 GB, free: 26.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004506/1.781, allocations: 3.887 MB / 1.027 GB, free: 22.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/1.781, allocations: 47.56 kB / 1.027 GB, free: 22.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 3.346e-06/1.781, allocations: 0 / 1.027 GB, free: 22.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01185/1.793, allocations: 5.895 MB / 1.033 GB, free: 16.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/1.793, allocations: 171.2 kB / 1.033 GB, free: 16.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/1.795, allocations: 1.112 MB / 1.034 GB, free: 15.32 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/1.795, allocations: 53.7 kB / 1.034 GB, free: 15.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002806/1.795, allocations: 0.5081 MB / 1.035 GB, free: 14.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/1.795, allocations: 418.1 kB / 1.035 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-05/1.795, allocations: 24 kB / 1.035 GB, free: 14.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.357e-05/1.795, allocations: 365.9 kB / 1.035 GB, free: 13.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/1.796, allocations: 0.7573 MB / 1.036 GB, free: 13.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/1.798, allocations: 1.013 MB / 1.037 GB, free: 12.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/1.8, allocations: 1.67 MB / 1.039 GB, free: 10.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.8, allocations: 4 kB / 1.039 GB, free: 10.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.003797/1.804, allocations: 2.428 MB / 1.041 GB, free: 7.883 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/1.804, allocations: 262.5 kB / 1.041 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/1.804, allocations: 8 kB / 1.041 GB, free: 7.543 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003307/1.807, allocations: 1.202 MB / 1.043 GB, free: 6.324 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008665/1.808, allocations: 215.7 kB / 1.043 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2859/2.094, allocations: 6.206 MB / 1.049 GB, free: 86.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/2.096, allocations: 97.72 kB / 1.049 GB, free: 86.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/2.096, allocations: 59.39 kB / 1.049 GB, free: 86.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/2.096, allocations: 4.062 kB / 1.049 GB, free: 86.93 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004224/2.1, allocations: 2.238 MB / 1.051 GB, free: 86.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/2.1, allocations: 3.719 kB / 1.051 GB, free: 86.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002388/2.103, allocations: 1.01 MB / 1.052 GB, free: 86.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008923/2.104, allocations: 226.2 kB / 1.052 GB, free: 86.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/2.108, allocations: 6.064 MB / 1.058 GB, free: 82.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/2.11, allocations: 96.05 kB / 1.058 GB, free: 82.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/2.11, allocations: 57.27 kB / 1.058 GB, free: 82.63 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.0008928/2.111, allocations: 462 kB / 1.059 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/2.111, allocations: 133.5 kB / 1.059 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004281/2.115, allocations: 2.596 MB / 1.062 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/2.115, allocations: 15.12 kB / 1.062 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/2.115, allocations: 2.594 kB / 1.062 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.07e-05/2.115, allocations: 6.984 kB / 1.062 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005809/2.121, allocations: 4.189 MB / 1.066 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/2.121, allocations: 0 / 1.066 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/2.122, allocations: 145.9 kB / 1.066 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/2.125, allocations: 1.213 MB / 1.067 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/2.126, allocations: 41.52 kB / 1.067 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005108/2.131, allocations: 6.233 MB / 1.073 GB, free: 77.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/2.131, allocations: 0 / 1.073 GB, free: 77.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004992/2.136, allocations: 3.584 MB / 1.077 GB, free: 77.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008391/2.137, allocations: 430.5 kB / 1.077 GB, free: 77.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/2.137, allocations: 33.67 kB / 1.077 GB, free: 77.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009757/2.138, allocations: 97.3 kB / 1.077 GB, free: 77.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003302/2.138, allocations: 141.6 kB / 1.077 GB, free: 77.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/2.138, allocations: 51.94 kB / 1.077 GB, free: 77.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009416/2.139, allocations: 0.7573 MB / 1.078 GB, free: 77.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/2.139, allocations: 0 / 1.078 GB, free: 77.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003195/2.142, allocations: 1.125 MB / 1.079 GB, free: 77.18 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 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001835/2.144, allocations: 0.8192 MB / 1.08 GB, free: 77.08 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006066/2.15, allocations: 3.566 MB / 1.083 GB, free: 76.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/2.15, allocations: 3.375 kB / 1.083 GB, free: 76.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002402/2.153, allocations: 1.339 MB / 1.085 GB, free: 76.31 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002973/2.156, allocations: 0.5621 MB / 1.085 GB, free: 76.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00684/2.163, allocations: 3.59 MB / 1.089 GB, free: 75.13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008691/2.163, allocations: 1.266 MB / 1.09 GB, free: 74.42 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002208/2.166, allocations: 0.5663 MB / 1.091 GB, free: 74.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/2.166, allocations: 129.5 kB / 1.091 GB, free: 74.39 MB / 458.7 MB Notification: Performance of SimCode: time 6.31e-07/2.166, allocations: 0 / 1.091 GB, free: 74.39 MB / 458.7 MB Notification: Performance of Templates: time 0.05672/2.223, allocations: 41.81 MB / 1.132 GB, free: 72.81 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/jenkins1/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