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.00133/0.00133, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009281/0.0009283, allocations: 90.36 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.172e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09281, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/1.094, allocations: 409.4 MB / 0.7544 GB, free: 103.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/1.094, allocations: 81.89 kB / 0.7545 GB, free: 103.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6694/1.763, allocations: 211.1 MB / 0.9606 GB, free: 69.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.072e-06/1.763, allocations: 0 / 0.9606 GB, free: 69.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001089/1.763, allocations: 40.09 kB / 0.9606 GB, free: 69.21 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.005344/1.769, allocations: 1.792 MB / 0.9624 GB, free: 67.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/1.769, allocations: 12.03 kB / 0.9624 GB, free: 67.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/1.77, allocations: 170.2 kB / 0.9626 GB, free: 67.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/1.773, allocations: 0.9873 MB / 0.9635 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/1.773, allocations: 198.5 kB / 0.9637 GB, free: 65.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/1.773, allocations: 56 kB / 0.9638 GB, free: 65.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002504/1.776, allocations: 1.597 MB / 0.9653 GB, free: 64.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/1.779, allocations: 1.65 MB / 0.9669 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/1.779, allocations: 0 / 0.9669 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/1.779, allocations: 4 kB / 0.9669 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/1.779, allocations: 101.9 kB / 0.967 GB, free: 62.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009282/1.788, allocations: 6.53 MB / 0.9734 GB, free: 55.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/1.79, allocations: 1.379 MB / 0.9748 GB, free: 54.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008654/1.791, allocations: 0.8016 MB / 0.9756 GB, free: 53.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004383/1.795, allocations: 3.853 MB / 0.9793 GB, free: 49.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/1.795, allocations: 47.88 kB / 0.9794 GB, free: 49.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.274e-06/1.795, allocations: 0 / 0.9794 GB, free: 49.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01685/1.812, allocations: 6.433 MB / 0.9856 GB, free: 42.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/1.812, allocations: 171.5 kB / 0.9858 GB, free: 42.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000877/1.813, allocations: 0.6565 MB / 0.9864 GB, free: 42.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/1.813, allocations: 29.7 kB / 0.9865 GB, free: 42.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/1.814, allocations: 0.5347 MB / 0.987 GB, free: 41.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/1.814, allocations: 401.5 kB / 0.9874 GB, free: 41.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.864e-05/1.814, allocations: 0 / 0.9874 GB, free: 41.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/1.814, allocations: 357.9 kB / 0.9877 GB, free: 40.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009177/1.815, allocations: 0.7223 MB / 0.9884 GB, free: 40.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/1.816, allocations: 0.9666 MB / 0.9894 GB, free: 38.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008443/1.825, allocations: 2.344 MB / 0.9917 GB, free: 36.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/1.825, allocations: 4 kB / 0.9917 GB, free: 36.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01259/1.837, allocations: 3.833 MB / 0.9954 GB, free: 32.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006228/1.838, allocations: 2.182 MB / 0.9975 GB, free: 30.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/1.838, allocations: 7.984 kB / 0.9975 GB, free: 30.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/1.84, allocations: 0.976 MB / 0.9985 GB, free: 29.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/1.841, allocations: 219.7 kB / 0.9987 GB, free: 29.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00721/1.848, allocations: 6.584 MB / 1.005 GB, free: 22.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/1.85, allocations: 63.94 kB / 1.005 GB, free: 22.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/1.85, allocations: 59.97 kB / 1.005 GB, free: 22.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/1.85, allocations: 4 kB / 1.005 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01059/1.861, allocations: 3.594 MB / 1.009 GB, free: 18.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/1.861, allocations: 11.94 kB / 1.009 GB, free: 18.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/1.863, allocations: 0.9212 MB / 1.01 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/1.864, allocations: 223.6 kB / 1.01 GB, free: 17.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005817/1.869, allocations: 6.368 MB / 1.016 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/1.871, allocations: 71.78 kB / 1.016 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/1.871, allocations: 59.95 kB / 1.016 GB, free: 10.62 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.0003725/1.871, allocations: 140.7 kB / 1.016 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/1.872, allocations: 110.7 kB / 1.016 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006738/1.878, allocations: 3.077 MB / 1.019 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/1.878, allocations: 16 kB / 1.019 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/1.878, allocations: 0 / 1.019 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/1.878, allocations: 7.969 kB / 1.02 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008143/1.887, allocations: 4.548 MB / 1.024 GB, free: 2.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.887, allocations: 7.938 kB / 1.024 GB, free: 2.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/1.887, allocations: 151.8 kB / 1.024 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/1.889, allocations: 1.011 MB / 1.025 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/1.889, allocations: 19.97 kB / 1.025 GB, free: 1.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3078/2.197, allocations: 6.574 MB / 1.032 GB, free: 74.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/2.197, allocations: 1.141 kB / 1.032 GB, free: 74.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/2.207, allocations: 4.052 MB / 1.035 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009827/2.208, allocations: 402 kB / 1.036 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/2.209, allocations: 8.312 kB / 1.036 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/2.21, allocations: 67.53 kB / 1.036 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000378/2.21, allocations: 143 kB / 1.036 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/2.21, allocations: 50.34 kB / 1.036 GB, free: 74.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007775/2.211, allocations: 0.4929 MB / 1.037 GB, free: 74.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/2.211, allocations: 2.781 kB / 1.037 GB, free: 74.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004454/2.216, allocations: 1.051 MB / 1.038 GB, free: 74.59 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.002821/2.218, allocations: 0.7792 MB / 1.038 GB, free: 74.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007254/2.226, allocations: 3.409 MB / 1.042 GB, free: 74.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/2.226, allocations: 4.438 kB / 1.042 GB, free: 74.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/2.228, allocations: 1.27 MB / 1.043 GB, free: 73.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002894/2.231, allocations: 489.2 kB / 1.043 GB, free: 73.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008055/2.239, allocations: 2.439 MB / 1.046 GB, free: 73.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/2.241, allocations: 1.288 MB / 1.047 GB, free: 72.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002957/2.244, allocations: 0.5837 MB / 1.048 GB, free: 72.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003701/2.244, allocations: 106.8 kB / 1.048 GB, free: 72.62 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/2.244, allocations: 0 / 1.048 GB, free: 72.62 MB / 426.7 MB Notification: Performance of Templates: time 0.05649/2.301, allocations: 38.43 MB / 1.085 GB, free: 70.59 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