Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00231/0.00231, allocations: 179.7 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001073/0.001073, allocations: 90.62 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.956e-05/2.971e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09076, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.378/1.469, allocations: 409.8 MB / 0.7607 GB, free: 95.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/1.47, allocations: 86.45 kB / 0.7608 GB, free: 95.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.047/2.517, allocations: 212.7 MB / 0.9685 GB, free: 55.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/2.517, allocations: 4 kB / 0.9685 GB, free: 55.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001411/2.517, allocations: 40.14 kB / 0.9685 GB, free: 55.84 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.00795/2.525, allocations: 1.796 MB / 0.9703 GB, free: 54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/2.525, allocations: 8.031 kB / 0.9703 GB, free: 53.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/2.527, allocations: 166.2 kB / 0.9704 GB, free: 53.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003696/2.53, allocations: 0.9803 MB / 0.9714 GB, free: 52.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/2.531, allocations: 238.5 kB / 0.9716 GB, free: 52.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006102/2.531, allocations: 95.97 kB / 0.9717 GB, free: 52.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005234/2.537, allocations: 1.779 MB / 0.9735 GB, free: 50.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.078e-05/2.537, allocations: 3.953 kB / 0.9735 GB, free: 50.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/2.537, allocations: 51.97 kB / 0.9735 GB, free: 50.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002048/2.537, allocations: 102 kB / 0.9736 GB, free: 50.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/2.543, allocations: 1.722 MB / 0.9753 GB, free: 48.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02239/2.565, allocations: 6.79 MB / 0.9819 GB, free: 41.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004212/2.569, allocations: 1.433 MB / 0.9833 GB, free: 40.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002421/2.572, allocations: 0.828 MB / 0.9841 GB, free: 39.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/2.582, allocations: 3.961 MB / 0.988 GB, free: 35.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/2.582, allocations: 47.52 kB / 0.988 GB, free: 35.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 3.647e-06/2.582, allocations: 0 / 0.988 GB, free: 35.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01783/2.6, allocations: 4.597 MB / 0.9925 GB, free: 30.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/2.6, allocations: 167.2 kB / 0.9927 GB, free: 30.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/2.602, allocations: 0.9865 MB / 0.9937 GB, free: 29.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/2.603, allocations: 53.7 kB / 0.9937 GB, free: 29.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/2.603, allocations: 0.4948 MB / 0.9942 GB, free: 28.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005563/2.604, allocations: 414.1 kB / 0.9946 GB, free: 28.26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/2.604, allocations: 24 kB / 0.9946 GB, free: 28.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/2.604, allocations: 370.7 kB / 0.995 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/2.606, allocations: 0.7419 MB / 0.9957 GB, free: 27.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/2.608, allocations: 0.9905 MB / 0.9966 GB, free: 26.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/2.61, allocations: 0.8125 MB / 0.9974 GB, free: 25.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/2.61, allocations: 0 / 0.9974 GB, free: 25.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006808/2.617, allocations: 2.312 MB / 0.9997 GB, free: 22.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005056/2.618, allocations: 2.194 MB / 1.002 GB, free: 20.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/2.618, allocations: 4 kB / 1.002 GB, free: 20.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00629/2.624, allocations: 1.198 MB / 1.003 GB, free: 19.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0021/2.626, allocations: 227.6 kB / 1.003 GB, free: 19.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00836/2.635, allocations: 6.168 MB / 1.009 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002718/2.638, allocations: 95.92 kB / 1.009 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/2.638, allocations: 59.97 kB / 1.009 GB, free: 12.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/2.638, allocations: 4 kB / 1.009 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006636/2.645, allocations: 2.19 MB / 1.012 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/2.645, allocations: 11.95 kB / 1.012 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004182/2.649, allocations: 0.9725 MB / 1.013 GB, free: 9.211 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/2.651, allocations: 227.6 kB / 1.013 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007824/2.659, allocations: 6.006 MB / 1.019 GB, free: 2.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002197/2.661, allocations: 103.8 kB / 1.019 GB, free: 2.535 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002849/2.661, allocations: 59.97 kB / 1.019 GB, free: 2.477 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.0005492/2.662, allocations: 184.8 kB / 1.019 GB, free: 2.289 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004871/2.663, allocations: 142.4 kB / 1.019 GB, free: 2.148 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3167/2.979, allocations: 2.565 MB / 1.022 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/2.979, allocations: 14.36 kB / 1.022 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/2.979, allocations: 2.219 kB / 1.022 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.244e-05/2.979, allocations: 7.812 kB / 1.022 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/2.994, allocations: 4.151 MB / 1.026 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.451e-05/2.994, allocations: 4.812 kB / 1.026 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/2.996, allocations: 152.7 kB / 1.026 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006501/3.002, allocations: 1.192 MB / 1.027 GB, free: 72.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00053/3.003, allocations: 46.44 kB / 1.027 GB, free: 72.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009189/3.012, allocations: 6.197 MB / 1.033 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/3.012, allocations: 4.219 kB / 1.033 GB, free: 67.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/3.024, allocations: 3.543 MB / 1.037 GB, free: 67.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/3.026, allocations: 437.8 kB / 1.037 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005689/3.026, allocations: 28.3 kB / 1.037 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002447/3.029, allocations: 94.58 kB / 1.037 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007851/3.03, allocations: 146.3 kB / 1.037 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002833/3.03, allocations: 51.09 kB / 1.037 GB, free: 67.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001868/3.032, allocations: 0.7433 MB / 1.038 GB, free: 67.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/3.032, allocations: 0 / 1.038 GB, free: 67.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006144/3.038, allocations: 1.125 MB / 1.039 GB, free: 67.41 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.003738/3.042, allocations: 0.8157 MB / 1.04 GB, free: 67.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01268/3.054, allocations: 3.521 MB / 1.043 GB, free: 66.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/3.055, allocations: 3.969 kB / 1.043 GB, free: 66.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004903/3.059, allocations: 1.31 MB / 1.045 GB, free: 66.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004991/3.064, allocations: 0.5468 MB / 1.045 GB, free: 66.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/3.075, allocations: 2.597 MB / 1.048 GB, free: 66.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000951/3.076, allocations: 1.28 MB / 1.049 GB, free: 65.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/3.077, allocations: 146 kB / 1.049 GB, free: 65.37 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/3.077, allocations: 0 / 1.049 GB, free: 65.37 MB / 426.7 MB Notification: Performance of Templates: time 0.08747/3.165, allocations: 50.84 MB / 1.099 GB, free: 63.11 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches