Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 172 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.438/1.438, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007839/0.0007841, allocations: 98.56 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.913e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09355/0.0936, allocations: 47.59 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7698/0.8634, allocations: 321.1 MB / 0.6749 GB, free: 3.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.8638, allocations: 79.27 kB / 0.675 GB, free: 3.551 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.105/1.968, allocations: 269.6 MB / 0.9383 GB, free: 73.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.524e-06/1.968, allocations: 0 / 0.9383 GB, free: 73.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002012/1.969, allocations: 41.36 kB / 0.9383 GB, free: 73.01 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00769/1.976, allocations: 1.811 MB / 0.9401 GB, free: 72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/1.976, allocations: 9.469 kB / 0.9401 GB, free: 72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/1.978, allocations: 175.5 kB / 0.9402 GB, free: 71.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/1.982, allocations: 1.125 MB / 0.9413 GB, free: 71.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/1.982, allocations: 176.7 kB / 0.9415 GB, free: 71.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005508/1.983, allocations: 97.2 kB / 0.9416 GB, free: 71.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004196/1.987, allocations: 1.741 MB / 0.9433 GB, free: 71.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.267e-05/1.987, allocations: 4.812 kB / 0.9433 GB, free: 71.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003449/1.987, allocations: 42.66 kB / 0.9433 GB, free: 71.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002298/1.987, allocations: 108.8 kB / 0.9434 GB, free: 71.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004265/1.992, allocations: 1.748 MB / 0.9452 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/2.003, allocations: 6.366 MB / 0.9514 GB, free: 68.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/2.005, allocations: 1.156 MB / 0.9525 GB, free: 68.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008822/2.006, allocations: 0.7056 MB / 0.9532 GB, free: 67.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005205/2.011, allocations: 4.267 MB / 0.9574 GB, free: 64.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/2.011, allocations: 44.66 kB / 0.9574 GB, free: 64.67 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001126/2.012, allocations: 210.1 kB / 0.9576 GB, free: 64.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 3.696e-06/2.012, allocations: 6.75 kB / 0.9576 GB, free: 64.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.00853/2.021, allocations: 3.775 MB / 0.9613 GB, free: 62.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/2.021, allocations: 144.4 kB / 0.9614 GB, free: 62.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/2.022, allocations: 1.088 MB / 0.9625 GB, free: 61.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/2.022, allocations: 48.95 kB / 0.9625 GB, free: 61.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/2.023, allocations: 0.597 MB / 0.9631 GB, free: 61.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002948/2.023, allocations: 393 kB / 0.9635 GB, free: 60.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/2.023, allocations: 31.41 kB / 0.9635 GB, free: 60.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/2.023, allocations: 363.5 kB / 0.9639 GB, free: 60.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/2.024, allocations: 0.6175 MB / 0.9645 GB, free: 60.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/2.025, allocations: 0.9564 MB / 0.9654 GB, free: 59.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009928/2.026, allocations: 0.7486 MB / 0.9661 GB, free: 58.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/2.026, allocations: 0 / 0.9661 GB, free: 58.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003151/2.029, allocations: 2.079 MB / 0.9682 GB, free: 56.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008526/2.03, allocations: 3.513 MB / 0.9716 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/2.03, allocations: 8 kB / 0.9716 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006318/2.037, allocations: 1.221 MB / 0.9728 GB, free: 51.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/2.038, allocations: 295.5 kB / 0.9731 GB, free: 51.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/2.04, allocations: 1.515 MB / 0.9746 GB, free: 49.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/2.042, allocations: 95.66 kB / 0.9747 GB, free: 49.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/2.042, allocations: 67.97 kB / 0.9747 GB, free: 49.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/2.042, allocations: 4 kB / 0.9747 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002884/2.045, allocations: 1.853 MB / 0.9765 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/2.045, allocations: 8 kB / 0.9765 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00554/2.051, allocations: 1.068 MB / 0.9776 GB, free: 46.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/2.052, allocations: 302.9 kB / 0.9779 GB, free: 46.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/2.054, allocations: 1.368 MB / 0.9792 GB, free: 44.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/2.057, allocations: 83.39 kB / 0.9793 GB, free: 44.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/2.057, allocations: 71.95 kB / 0.9794 GB, free: 44.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005049/2.057, allocations: 188.4 kB / 0.9795 GB, free: 44.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/2.058, allocations: 146.3 kB / 0.9797 GB, free: 44.35 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/2.062, allocations: 2.004 MB / 0.9816 GB, free: 42.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/2.062, allocations: 16.66 kB / 0.9816 GB, free: 42.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/2.062, allocations: 7.938 kB / 0.9817 GB, free: 42.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/2.062, allocations: 3.984 kB / 0.9817 GB, free: 42.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/2.067, allocations: 3.411 MB / 0.985 GB, free: 38.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/2.067, allocations: 0 / 0.985 GB, free: 38.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009065/2.067, allocations: 191.8 kB / 0.9852 GB, free: 38.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003514/2.071, allocations: 0.9381 MB / 0.9861 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/2.071, allocations: 35.97 kB / 0.9861 GB, free: 37.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/2.073, allocations: 1.56 MB / 0.9876 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/2.073, allocations: 0 / 0.9876 GB, free: 36.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003736/2.077, allocations: 2.704 MB / 0.9903 GB, free: 33.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/2.078, allocations: 407 kB / 0.9907 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002111/2.078, allocations: 23.25 kB / 0.9907 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/2.079, allocations: 86.47 kB / 0.9908 GB, free: 32.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/2.079, allocations: 97.16 kB / 0.9909 GB, free: 32.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/2.08, allocations: 51.31 kB / 0.9909 GB, free: 32.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00101/2.081, allocations: 0.8263 MB / 0.9917 GB, free: 31.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.081, allocations: 0 / 0.9917 GB, free: 31.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003328/2.084, allocations: 1.249 MB / 0.9929 GB, free: 30.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002636/2.087, allocations: 1.061 MB / 0.994 GB, free: 29.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005643/2.092, allocations: 2.622 MB / 0.9965 GB, free: 27.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.092, allocations: 5.875 kB / 0.9966 GB, free: 27.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/2.094, allocations: 0.8155 MB / 0.9973 GB, free: 26.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003352/2.097, allocations: 0.603 MB / 0.9979 GB, free: 25.72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004743/2.102, allocations: 2.441 MB / 1 GB, free: 23.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006057/2.103, allocations: 1.321 MB / 1.002 GB, free: 21.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002383/2.105, allocations: 0.667 MB / 1.002 GB, free: 21.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002942/2.105, allocations: 115.3 kB / 1.002 GB, free: 21.18 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/2.105, allocations: 0 / 1.002 GB, free: 21.18 MB / 426.7 MB Notification: Performance of Templates: time 0.3397/2.445, allocations: 42.8 MB / 1.044 GB, free: 65.81 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches