Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 204 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008563, allocations: 96.73 kB / 297.5 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 8 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.241, allocations: 51.29 MB / 409.4 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7889/1.03, allocations: 413 MB / 0.8031 GB, free: 59.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003999/1.03, allocations: 91.95 kB / 0.8032 GB, free: 59.21 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7254/1.756, allocations: 215.9 MB / 1.014 GB, free: 27.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.756, allocations: 0 / 1.014 GB, free: 27.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001589/1.756, allocations: 32.16 kB / 1.014 GB, free: 27.29 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.006801/1.763, allocations: 1.935 MB / 1.016 GB, free: 25.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.763, allocations: 12.03 kB / 1.016 GB, free: 25.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/1.764, allocations: 163.2 kB / 1.016 GB, free: 25.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002783/1.767, allocations: 1.021 MB / 1.017 GB, free: 24.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/1.767, allocations: 234.5 kB / 1.017 GB, free: 23.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006152/1.768, allocations: 99.97 kB / 1.017 GB, free: 23.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004167/1.772, allocations: 1.818 MB / 1.019 GB, free: 21.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.202e-05/1.772, allocations: 0 / 1.019 GB, free: 21.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003116/1.772, allocations: 43.98 kB / 1.019 GB, free: 21.78 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/1.772, allocations: 101.9 kB / 1.019 GB, free: 21.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003166/1.776, allocations: 1.761 MB / 1.021 GB, free: 19.91 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01309/1.789, allocations: 6.746 MB / 1.028 GB, free: 12.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002517/1.791, allocations: 1.432 MB / 1.029 GB, free: 11.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/1.793, allocations: 0.8503 MB / 1.03 GB, free: 10.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006214/1.799, allocations: 3.883 MB / 1.034 GB, free: 6.453 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/1.799, allocations: 47.56 kB / 1.034 GB, free: 6.398 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 4.108e-06/1.799, allocations: 0 / 1.034 GB, free: 6.398 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01387/1.813, allocations: 5.891 MB / 1.039 GB, free: 396 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/1.813, allocations: 175.2 kB / 1.04 GB, free: 184 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2549/2.068, allocations: 1.107 MB / 1.041 GB, free: 85.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004707/2.068, allocations: 47.27 kB / 1.041 GB, free: 85.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004624/2.069, allocations: 0.5209 MB / 1.041 GB, free: 85.63 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005249/2.069, allocations: 415.6 kB / 1.042 GB, free: 85.51 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/2.07, allocations: 25.34 kB / 1.042 GB, free: 85.51 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/2.07, allocations: 361.2 kB / 1.042 GB, free: 85.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/2.071, allocations: 0.7586 MB / 1.043 GB, free: 85.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/2.072, allocations: 1.014 MB / 1.044 GB, free: 84.96 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/2.075, allocations: 1.673 MB / 1.045 GB, free: 84.74 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/2.075, allocations: 0 / 1.045 GB, free: 84.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004356/2.079, allocations: 2.426 MB / 1.048 GB, free: 84.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001428/2.079, allocations: 253.7 kB / 1.048 GB, free: 84.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/2.079, allocations: 11.41 kB / 1.048 GB, free: 84.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003524/2.083, allocations: 1.215 MB / 1.049 GB, free: 84.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/2.084, allocations: 221.3 kB / 1.049 GB, free: 84.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005508/2.089, allocations: 6.199 MB / 1.055 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/2.091, allocations: 94.22 kB / 1.056 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/2.091, allocations: 64.39 kB / 1.056 GB, free: 80 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/2.091, allocations: 3.969 kB / 1.056 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005098/2.097, allocations: 2.229 MB / 1.058 GB, free: 79.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/2.097, allocations: 5.469 kB / 1.058 GB, free: 79.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/2.099, allocations: 1.027 MB / 1.059 GB, free: 79.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009628/2.1, allocations: 223.6 kB / 1.059 GB, free: 79.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005237/2.106, allocations: 6.055 MB / 1.065 GB, free: 75.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/2.108, allocations: 91.97 kB / 1.065 GB, free: 75.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002333/2.108, allocations: 59.81 kB / 1.065 GB, free: 75.64 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.001216/2.109, allocations: 449.5 kB / 1.066 GB, free: 75.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003672/2.11, allocations: 145.3 kB / 1.066 GB, free: 75.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004466/2.114, allocations: 2.585 MB / 1.068 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/2.114, allocations: 11.62 kB / 1.068 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.114, allocations: 5 kB / 1.068 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/2.114, allocations: 7.781 kB / 1.068 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006382/2.121, allocations: 4.188 MB / 1.072 GB, free: 74.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/2.121, allocations: 0 / 1.072 GB, free: 74.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/2.121, allocations: 150.4 kB / 1.072 GB, free: 74.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003202/2.125, allocations: 1.214 MB / 1.074 GB, free: 74.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002038/2.125, allocations: 36 kB / 1.074 GB, free: 74.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005314/2.13, allocations: 6.254 MB / 1.08 GB, free: 70.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/2.13, allocations: 0 / 1.08 GB, free: 70.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005791/2.136, allocations: 3.588 MB / 1.083 GB, free: 70.28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/2.137, allocations: 421.6 kB / 1.084 GB, free: 70.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004343/2.137, allocations: 32.06 kB / 1.084 GB, free: 70.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/2.139, allocations: 94.53 kB / 1.084 GB, free: 70.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/2.139, allocations: 140 kB / 1.084 GB, free: 70.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/2.139, allocations: 53.75 kB / 1.084 GB, free: 70.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001338/2.141, allocations: 0.7536 MB / 1.085 GB, free: 70 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/2.141, allocations: 2.953 kB / 1.085 GB, free: 70 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004865/2.146, allocations: 1.135 MB / 1.086 GB, free: 70 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.003083/2.149, allocations: 0.8209 MB / 1.087 GB, free: 69.91 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009322/2.158, allocations: 3.573 MB / 1.09 GB, free: 69.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/2.158, allocations: 0 / 1.09 GB, free: 69.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002859/2.161, allocations: 1.337 MB / 1.091 GB, free: 69.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/2.165, allocations: 0.5626 MB / 1.092 GB, free: 69.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007732/2.172, allocations: 3.598 MB / 1.095 GB, free: 67.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/2.173, allocations: 1.268 MB / 1.097 GB, free: 67.25 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002531/2.176, allocations: 0.5695 MB / 1.097 GB, free: 67.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004937/2.177, allocations: 122.1 kB / 1.097 GB, free: 67.22 MB / 458.7 MB Notification: Performance of SimCode: time 1.503e-06/2.177, allocations: 3.562 kB / 1.097 GB, free: 67.22 MB / 458.7 MB Notification: Performance of Templates: time 0.0653/2.242, allocations: 41.8 MB / 1.138 GB, free: 63.39 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches