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.001336/0.001336, allocations: 183 kB / 18.04 MB, free: 3.754 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.517/1.517, allocations: 205.4 MB / 224.2 MB, free: 9.02 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.000885/0.000885, allocations: 85.94 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003656, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2711, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7719/1.043, allocations: 410.1 MB / 0.7687 GB, free: 55.53 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/1.044, allocations: 87.95 kB / 0.7688 GB, free: 55.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6821/1.726, allocations: 212.3 MB / 0.9761 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.205e-06/1.726, allocations: 0 / 0.9761 GB, free: 13.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.429e-05/1.726, allocations: 35.94 kB / 0.9761 GB, free: 13.79 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.004713/1.731, allocations: 1.928 MB / 0.978 GB, free: 11.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/1.731, allocations: 8.031 kB / 0.978 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004785/1.731, allocations: 163.2 kB / 0.9782 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/1.733, allocations: 1.029 MB / 0.9792 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/1.733, allocations: 234.4 kB / 0.9794 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/1.733, allocations: 107.9 kB / 0.9795 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/1.736, allocations: 1.806 MB / 0.9813 GB, free: 8.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/1.736, allocations: 0 / 0.9813 GB, free: 8.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/1.736, allocations: 43.98 kB / 0.9813 GB, free: 8.277 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/1.736, allocations: 102 kB / 0.9814 GB, free: 8.176 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/1.738, allocations: 1.761 MB / 0.9831 GB, free: 6.406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2558/1.994, allocations: 6.735 MB / 0.9897 GB, free: 70.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/1.997, allocations: 1.434 MB / 0.9911 GB, free: 70.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/1.998, allocations: 0.8409 MB / 0.9919 GB, free: 70.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/2.004, allocations: 3.883 MB / 0.9957 GB, free: 69.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/2.004, allocations: 48.19 kB / 0.9958 GB, free: 69.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.328e-06/2.004, allocations: 0 / 0.9958 GB, free: 69.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01332/2.017, allocations: 5.892 MB / 1.002 GB, free: 68.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/2.017, allocations: 176.5 kB / 1.002 GB, free: 68.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/2.019, allocations: 1.11 MB / 1.003 GB, free: 68.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/2.019, allocations: 50.83 kB / 1.003 GB, free: 68.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/2.019, allocations: 0.512 MB / 1.003 GB, free: 67.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/2.02, allocations: 418.1 kB / 1.004 GB, free: 67.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.314e-05/2.02, allocations: 29.91 kB / 1.004 GB, free: 67.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/2.02, allocations: 357.5 kB / 1.004 GB, free: 67.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/2.021, allocations: 0.7565 MB / 1.005 GB, free: 67.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/2.023, allocations: 1.012 MB / 1.006 GB, free: 67.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/2.025, allocations: 1.674 MB / 1.007 GB, free: 66.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/2.025, allocations: 0 / 1.007 GB, free: 66.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004531/2.03, allocations: 2.43 MB / 1.01 GB, free: 66.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001582/2.03, allocations: 257.6 kB / 1.01 GB, free: 66.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/2.03, allocations: 5.438 kB / 1.01 GB, free: 66.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003938/2.034, allocations: 1.208 MB / 1.011 GB, free: 66.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/2.035, allocations: 229.7 kB / 1.011 GB, free: 66.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/2.041, allocations: 6.206 MB / 1.018 GB, free: 62.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/2.043, allocations: 91.91 kB / 1.018 GB, free: 62.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/2.043, allocations: 65.47 kB / 1.018 GB, free: 62.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/2.043, allocations: 3.688 kB / 1.018 GB, free: 62.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004404/2.047, allocations: 2.236 MB / 1.02 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/2.047, allocations: 3.906 kB / 1.02 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/2.05, allocations: 1.014 MB / 1.021 GB, free: 62.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009404/2.051, allocations: 229.5 kB / 1.021 GB, free: 62.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004725/2.055, allocations: 6.055 MB / 1.027 GB, free: 57.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/2.057, allocations: 92.55 kB / 1.027 GB, free: 57.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/2.057, allocations: 60.42 kB / 1.027 GB, free: 57.84 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 () * 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.0009211/2.058, allocations: 460.7 kB / 1.028 GB, free: 57.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/2.058, allocations: 143.1 kB / 1.028 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/2.063, allocations: 2.588 MB / 1.03 GB, free: 57.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/2.063, allocations: 18.38 kB / 1.03 GB, free: 57.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/2.063, allocations: 0 / 1.03 GB, free: 57.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/2.063, allocations: 6.984 kB / 1.03 GB, free: 57.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005993/2.069, allocations: 4.182 MB / 1.034 GB, free: 57.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/2.069, allocations: 3.938 kB / 1.034 GB, free: 57.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/2.069, allocations: 152.9 kB / 1.035 GB, free: 57.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003133/2.073, allocations: 1.215 MB / 1.036 GB, free: 57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/2.073, allocations: 32.34 kB / 1.036 GB, free: 57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/2.078, allocations: 6.235 MB / 1.042 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/2.078, allocations: 0 / 1.042 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005319/2.083, allocations: 3.595 MB / 1.045 GB, free: 52.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009161/2.084, allocations: 421.5 kB / 1.046 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/2.085, allocations: 23.41 kB / 1.046 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/2.086, allocations: 98.28 kB / 1.046 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/2.086, allocations: 144.6 kB / 1.046 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/2.086, allocations: 53.38 kB / 1.046 GB, free: 52.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009819/2.087, allocations: 0.7539 MB / 1.047 GB, free: 52.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/2.087, allocations: 0 / 1.047 GB, free: 52.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003511/2.091, allocations: 1.123 MB / 1.048 GB, free: 52.18 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) * 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.001987/2.093, allocations: 0.8168 MB / 1.049 GB, free: 52.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006682/2.099, allocations: 3.57 MB / 1.052 GB, free: 51.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/2.099, allocations: 2.531 kB / 1.052 GB, free: 51.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003071/2.102, allocations: 1.344 MB / 1.053 GB, free: 51.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/2.106, allocations: 0.5555 MB / 1.054 GB, free: 51.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006279/2.112, allocations: 3.599 MB / 1.058 GB, free: 50.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006258/2.113, allocations: 1.268 MB / 1.059 GB, free: 49.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001844/2.115, allocations: 0.5753 MB / 1.059 GB, free: 49.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/2.115, allocations: 123.3 kB / 1.059 GB, free: 49.38 MB / 426.7 MB Notification: Performance of SimCode: time 6.91e-07/2.115, allocations: 1.125 kB / 1.059 GB, free: 49.38 MB / 426.7 MB Notification: Performance of Templates: time 0.05438/2.169, allocations: 41.8 MB / 1.1 GB, free: 41.11 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/jenkins1/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