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.001621/0.001621, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009936/0.0009938, allocations: 90.27 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.223e-05, allocations: 4 kB / 350.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 51.49 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.213/1.326, allocations: 412.9 MB / 0.7958 GB, free: 143.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/1.326, allocations: 84.03 kB / 0.7959 GB, free: 143.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7898/2.116, allocations: 216.3 MB / 1.007 GB, free: 79.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.116, allocations: 0 / 1.007 GB, free: 79.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000123/2.116, allocations: 40.7 kB / 1.007 GB, free: 79.88 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.006511/2.123, allocations: 1.8 MB / 1.009 GB, free: 78.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/2.123, allocations: 11.22 kB / 1.009 GB, free: 78.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006445/2.123, allocations: 162.3 kB / 1.009 GB, free: 78.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/2.125, allocations: 0.9928 MB / 1.01 GB, free: 78.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/2.126, allocations: 244.7 kB / 1.01 GB, free: 78.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/2.126, allocations: 96.34 kB / 1.01 GB, free: 78.33 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002632/2.128, allocations: 1.774 MB / 1.012 GB, free: 77.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/2.128, allocations: 6.281 kB / 1.012 GB, free: 77.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/2.129, allocations: 43.09 kB / 1.012 GB, free: 77.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/2.129, allocations: 105.2 kB / 1.012 GB, free: 77.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/2.131, allocations: 1.725 MB / 1.014 GB, free: 77.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/2.142, allocations: 6.799 MB / 1.021 GB, free: 73.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/2.144, allocations: 1.418 MB / 1.022 GB, free: 73.04 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/2.145, allocations: 0.8231 MB / 1.023 GB, free: 72.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005636/2.151, allocations: 3.962 MB / 1.027 GB, free: 70.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/2.151, allocations: 53.34 kB / 1.027 GB, free: 70.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 3.586e-06/2.151, allocations: 0 / 1.027 GB, free: 70.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.009553/2.161, allocations: 4.598 MB / 1.031 GB, free: 68.35 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/2.161, allocations: 174.4 kB / 1.031 GB, free: 68.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/2.162, allocations: 0.9752 MB / 1.032 GB, free: 67.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/2.162, allocations: 49.17 kB / 1.032 GB, free: 67.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/2.163, allocations: 0.5201 MB / 1.033 GB, free: 67.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/2.163, allocations: 412 kB / 1.033 GB, free: 66.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.099e-05/2.163, allocations: 23.16 kB / 1.033 GB, free: 66.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.166e-05/2.163, allocations: 356.5 kB / 1.034 GB, free: 66.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/2.164, allocations: 0.7465 MB / 1.034 GB, free: 66.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/2.165, allocations: 0.9971 MB / 1.035 GB, free: 65.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/2.167, allocations: 0.8014 MB / 1.036 GB, free: 65.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/2.167, allocations: 0 / 1.036 GB, free: 65.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004481/2.171, allocations: 2.395 MB / 1.038 GB, free: 64.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006055/2.172, allocations: 2.187 MB / 1.041 GB, free: 62.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/2.172, allocations: 7.844 kB / 1.041 GB, free: 62.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003543/2.175, allocations: 1.201 MB / 1.042 GB, free: 62.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/2.176, allocations: 221.2 kB / 1.042 GB, free: 62.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005454/2.182, allocations: 6.173 MB / 1.048 GB, free: 56.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/2.184, allocations: 103.7 kB / 1.048 GB, free: 56.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/2.184, allocations: 57.61 kB / 1.048 GB, free: 56.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/2.184, allocations: 2.438 kB / 1.048 GB, free: 56.91 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003798/2.188, allocations: 2.2 MB / 1.05 GB, free: 56.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/2.188, allocations: 9.844 kB / 1.05 GB, free: 56.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002348/2.19, allocations: 1.005 MB / 1.051 GB, free: 55.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008759/2.191, allocations: 218.4 kB / 1.051 GB, free: 55.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004448/2.196, allocations: 6.035 MB / 1.057 GB, free: 50.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/2.197, allocations: 94.78 kB / 1.057 GB, free: 50.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/2.198, allocations: 56.25 kB / 1.058 GB, free: 50.56 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 () * 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.0004623/2.198, allocations: 191.9 kB / 1.058 GB, free: 50.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002752/2.198, allocations: 135.8 kB / 1.058 GB, free: 50.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004305/2.203, allocations: 2.572 MB / 1.06 GB, free: 48.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/2.203, allocations: 15.61 kB / 1.06 GB, free: 48.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/2.203, allocations: 3.875 kB / 1.06 GB, free: 48.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/2.203, allocations: 7.969 kB / 1.06 GB, free: 48.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005786/2.209, allocations: 4.145 MB / 1.064 GB, free: 46.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/2.209, allocations: 0 / 1.064 GB, free: 46.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007245/2.209, allocations: 152.4 kB / 1.065 GB, free: 46.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003156/2.212, allocations: 1.201 MB / 1.066 GB, free: 45.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001333/2.213, allocations: 37.28 kB / 1.066 GB, free: 45.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00486/2.217, allocations: 6.203 MB / 1.072 GB, free: 39.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/2.217, allocations: 0 / 1.072 GB, free: 39.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/2.222, allocations: 3.546 MB / 1.075 GB, free: 36.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/2.224, allocations: 435.1 kB / 1.076 GB, free: 35.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/2.224, allocations: 24 kB / 1.076 GB, free: 35.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/2.225, allocations: 99.77 kB / 1.076 GB, free: 35.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/2.225, allocations: 145 kB / 1.076 GB, free: 35.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/2.225, allocations: 51.91 kB / 1.076 GB, free: 35.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009103/2.226, allocations: 0.7431 MB / 1.077 GB, free: 34.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.71e-07/2.226, allocations: 4 kB / 1.077 GB, free: 34.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00345/2.23, allocations: 1.132 MB / 1.078 GB, free: 33.38 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) * 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.00207/2.232, allocations: 0.8337 MB / 1.079 GB, free: 32.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005997/2.238, allocations: 3.542 MB / 1.082 GB, free: 29.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/2.238, allocations: 4 kB / 1.082 GB, free: 29.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002414/2.24, allocations: 1.309 MB / 1.083 GB, free: 27.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/2.243, allocations: 0.5599 MB / 1.084 GB, free: 27.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005741/2.249, allocations: 2.55 MB / 1.086 GB, free: 24.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/2.249, allocations: 1.289 MB / 1.088 GB, free: 23.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002214/2.252, allocations: 0.6984 MB / 1.088 GB, free: 22.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/2.252, allocations: 111.4 kB / 1.089 GB, free: 22.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.332e-06/2.252, allocations: 0 / 1.089 GB, free: 22.5 MB / 458.7 MB Notification: Performance of Templates: time 0.3881/2.64, allocations: 42.55 MB / 1.13 GB, free: 70.71 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/jenkins/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