Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001409/0.001409, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008576/0.0008576, allocations: 94.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.794e-05/3.796e-05, allocations: 3.984 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09243/0.09249, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.158/1.251, allocations: 409.8 MB / 0.7616 GB, free: 94.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/1.251, allocations: 82.39 kB / 0.7617 GB, free: 94.87 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7687/2.02, allocations: 212.7 MB / 0.9694 GB, free: 55.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.693e-06/2.02, allocations: 0 / 0.9694 GB, free: 55.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.182e-05/2.02, allocations: 36.16 kB / 0.9694 GB, free: 55.49 MB / 426.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.004395/2.024, allocations: 1.804 MB / 0.9712 GB, free: 53.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/2.025, allocations: 8.031 kB / 0.9712 GB, free: 53.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004982/2.025, allocations: 166.2 kB / 0.9713 GB, free: 53.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/2.027, allocations: 0.9842 MB / 0.9723 GB, free: 52.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/2.027, allocations: 234.5 kB / 0.9725 GB, free: 52.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/2.027, allocations: 99.89 kB / 0.9726 GB, free: 52.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002354/2.03, allocations: 1.779 MB / 0.9744 GB, free: 50.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/2.03, allocations: 3.953 kB / 0.9744 GB, free: 50.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/2.03, allocations: 47.98 kB / 0.9744 GB, free: 50.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/2.03, allocations: 102 kB / 0.9745 GB, free: 50.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/2.032, allocations: 1.718 MB / 0.9762 GB, free: 48.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009335/2.041, allocations: 6.797 MB / 0.9828 GB, free: 41.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/2.043, allocations: 1.433 MB / 0.9842 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/2.044, allocations: 0.828 MB / 0.985 GB, free: 39.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004604/2.049, allocations: 3.953 MB / 0.9889 GB, free: 34.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/2.049, allocations: 51.52 kB / 0.9889 GB, free: 34.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.265e-06/2.049, allocations: 0 / 0.9889 GB, free: 34.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.008289/2.057, allocations: 4.6 MB / 0.9934 GB, free: 30.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/2.057, allocations: 171.2 kB / 0.9936 GB, free: 29.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/2.059, allocations: 0.9866 MB / 0.9946 GB, free: 28.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/2.059, allocations: 45.7 kB / 0.9946 GB, free: 28.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/2.059, allocations: 0.5159 MB / 0.9951 GB, free: 28.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/2.059, allocations: 414.1 kB / 0.9955 GB, free: 27.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/2.059, allocations: 28 kB / 0.9955 GB, free: 27.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.449e-05/2.059, allocations: 357.9 kB / 0.9959 GB, free: 27.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/2.06, allocations: 0.7418 MB / 0.9966 GB, free: 26.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/2.061, allocations: 0.9944 MB / 0.9976 GB, free: 25.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/2.062, allocations: 0.809 MB / 0.9984 GB, free: 24.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/2.063, allocations: 4 kB / 0.9984 GB, free: 24.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.003547/2.066, allocations: 2.389 MB / 1.001 GB, free: 22.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004201/2.066, allocations: 2.192 MB / 1.003 GB, free: 20.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/2.067, allocations: 4 kB / 1.003 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003405/2.07, allocations: 1.195 MB / 1.004 GB, free: 18.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/2.071, allocations: 223.6 kB / 1.004 GB, free: 18.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004965/2.076, allocations: 6.172 MB / 1.01 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/2.078, allocations: 95.84 kB / 1.01 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/2.078, allocations: 59.97 kB / 1.01 GB, free: 11.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/2.078, allocations: 7.938 kB / 1.01 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003651/2.082, allocations: 2.194 MB / 1.013 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/2.082, allocations: 11.94 kB / 1.013 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/2.084, allocations: 0.996 MB / 1.014 GB, free: 8.738 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009202/2.085, allocations: 231.6 kB / 1.014 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/2.09, allocations: 6.018 MB / 1.02 GB, free: 2.148 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/2.091, allocations: 99.8 kB / 1.02 GB, free: 2.051 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/2.092, allocations: 63.97 kB / 1.02 GB, free: 1.988 MB / 426.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.0005847/2.092, allocations: 184.7 kB / 1.02 GB, free: 1.801 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000459/2.093, allocations: 134.6 kB / 1.02 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2994/2.392, allocations: 2.567 MB / 1.023 GB, free: 72.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.255e-05/2.392, allocations: 17.02 kB / 1.023 GB, free: 72.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/2.392, allocations: 5.438 kB / 1.023 GB, free: 72.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-05/2.392, allocations: 10.58 kB / 1.023 GB, free: 72.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009103/2.401, allocations: 4.157 MB / 1.027 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/2.401, allocations: 0 / 1.027 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008629/2.402, allocations: 151.6 kB / 1.027 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003743/2.406, allocations: 1.188 MB / 1.028 GB, free: 72.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/2.406, allocations: 41 kB / 1.028 GB, free: 72.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006269/2.413, allocations: 6.205 MB / 1.034 GB, free: 68.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/2.413, allocations: 1.375 kB / 1.034 GB, free: 68.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007189/2.42, allocations: 3.545 MB / 1.038 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/2.421, allocations: 439.1 kB / 1.038 GB, free: 67.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/2.421, allocations: 24.09 kB / 1.038 GB, free: 67.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/2.423, allocations: 97.56 kB / 1.038 GB, free: 67.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004308/2.423, allocations: 143.4 kB / 1.038 GB, free: 67.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/2.423, allocations: 52 kB / 1.038 GB, free: 67.74 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001304/2.424, allocations: 0.7462 MB / 1.039 GB, free: 67.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/2.425, allocations: 4.344 kB / 1.039 GB, free: 67.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004454/2.429, allocations: 1.117 MB / 1.04 GB, free: 67.62 MB / 426.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.002693/2.432, allocations: 0.8128 MB / 1.041 GB, free: 67.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006844/2.439, allocations: 3.551 MB / 1.044 GB, free: 67.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/2.439, allocations: 6.188 kB / 1.044 GB, free: 67.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/2.441, allocations: 1.317 MB / 1.046 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/2.444, allocations: 0.5428 MB / 1.046 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006229/2.451, allocations: 2.55 MB / 1.049 GB, free: 66.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007447/2.451, allocations: 1.292 MB / 1.05 GB, free: 65.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002568/2.454, allocations: 0.6917 MB / 1.051 GB, free: 65.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/2.454, allocations: 111.6 kB / 1.051 GB, free: 65.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.333e-06/2.454, allocations: 0 / 1.051 GB, free: 65.58 MB / 426.7 MB Notification: Performance of Templates: time 0.06236/2.517, allocations: 42.56 MB / 1.092 GB, free: 63.43 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches