Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.636/1.636, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009186/0.0009188, allocations: 92.91 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002463, allocations: 8 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2494, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7683/1.018, allocations: 322.6 MB / 0.7148 GB, free: 150.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/1.018, allocations: 89.55 kB / 0.7149 GB, free: 150.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7751/1.793, allocations: 272.9 MB / 0.9813 GB, free: 54.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.553e-06/1.793, allocations: 0 / 0.9813 GB, free: 54.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000168/1.793, allocations: 43.94 kB / 0.9814 GB, free: 54.52 MB / 458.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.006743/1.8, allocations: 1.981 MB / 0.9833 GB, free: 52.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.8, allocations: 12.03 kB / 0.9833 GB, free: 52.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/1.801, allocations: 175 kB / 0.9835 GB, free: 52.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/1.804, allocations: 1.163 MB / 0.9846 GB, free: 51.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/1.804, allocations: 174.8 kB / 0.9848 GB, free: 50.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004227/1.805, allocations: 103.5 kB / 0.9849 GB, free: 50.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003051/1.808, allocations: 1.774 MB / 0.9866 GB, free: 49.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/1.808, allocations: 3.906 kB / 0.9866 GB, free: 49.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/1.808, allocations: 42.41 kB / 0.9867 GB, free: 49.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/1.808, allocations: 109.9 kB / 0.9868 GB, free: 48.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002489/1.811, allocations: 1.772 MB / 0.9885 GB, free: 47.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009233/1.82, allocations: 6.326 MB / 0.9947 GB, free: 40.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/1.821, allocations: 1.169 MB / 0.9958 GB, free: 39.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000866/1.822, allocations: 0.722 MB / 0.9965 GB, free: 38.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004398/1.827, allocations: 4.125 MB / 1.001 GB, free: 34.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/1.827, allocations: 55.56 kB / 1.001 GB, free: 34.11 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007599/1.827, allocations: 213.5 kB / 1.001 GB, free: 33.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 3.237e-06/1.827, allocations: 0 / 1.001 GB, free: 33.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01471/1.842, allocations: 5.475 MB / 1.006 GB, free: 28.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/1.842, allocations: 145.5 kB / 1.006 GB, free: 28.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/1.844, allocations: 1.246 MB / 1.008 GB, free: 26.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.781e-05/1.844, allocations: 45.7 kB / 1.008 GB, free: 26.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002986/1.844, allocations: 0.596 MB / 1.008 GB, free: 26.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/1.844, allocations: 392.4 kB / 1.009 GB, free: 25.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/1.844, allocations: 28 kB / 1.009 GB, free: 25.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.916e-05/1.844, allocations: 361.9 kB / 1.009 GB, free: 25.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008815/1.845, allocations: 0.6363 MB / 1.01 GB, free: 24.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/1.846, allocations: 0.9704 MB / 1.01 GB, free: 23.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001872/1.848, allocations: 1.596 MB / 1.012 GB, free: 22.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/1.848, allocations: 4 kB / 1.012 GB, free: 22.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003007/1.851, allocations: 2.113 MB / 1.014 GB, free: 19.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/1.851, allocations: 358 kB / 1.014 GB, free: 19.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/1.851, allocations: 8 kB / 1.014 GB, free: 19.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006267/1.858, allocations: 1.222 MB / 1.016 GB, free: 18.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/1.859, allocations: 299.6 kB / 1.016 GB, free: 17.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/1.861, allocations: 1.528 MB / 1.017 GB, free: 16.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/1.862, allocations: 87.8 kB / 1.017 GB, free: 16.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/1.862, allocations: 71.95 kB / 1.018 GB, free: 16.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/1.862, allocations: 4 kB / 1.018 GB, free: 16.23 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002763/1.865, allocations: 1.882 MB / 1.019 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/1.865, allocations: 8.719 kB / 1.019 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005524/1.871, allocations: 1.058 MB / 1.02 GB, free: 13.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/1.872, allocations: 307.5 kB / 1.021 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/1.873, allocations: 1.366 MB / 1.022 GB, free: 11.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/1.875, allocations: 95.66 kB / 1.022 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/1.875, allocations: 67.97 kB / 1.022 GB, free: 11.42 MB / 458.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 () * Number of clocked 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.0008619/1.876, allocations: 464.3 kB / 1.023 GB, free: 10.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003285/1.876, allocations: 146.2 kB / 1.023 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/1.88, allocations: 2.019 MB / 1.025 GB, free: 8.785 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/1.88, allocations: 15.98 kB / 1.025 GB, free: 8.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.88, allocations: 0 / 1.025 GB, free: 8.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/1.88, allocations: 7.984 kB / 1.025 GB, free: 8.762 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/1.885, allocations: 3.416 MB / 1.028 GB, free: 5.316 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.885, allocations: 0 / 1.028 GB, free: 5.316 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008112/1.886, allocations: 199.8 kB / 1.028 GB, free: 5.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003304/1.889, allocations: 0.957 MB / 1.029 GB, free: 4.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/1.889, allocations: 31.92 kB / 1.029 GB, free: 4.129 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/1.891, allocations: 1.568 MB / 1.031 GB, free: 2.535 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.891, allocations: 0 / 1.031 GB, free: 2.535 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2773/2.168, allocations: 2.747 MB / 1.034 GB, free: 70.49 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/2.17, allocations: 394.1 kB / 1.034 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/2.17, allocations: 25.09 kB / 1.034 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/2.172, allocations: 86.59 kB / 1.034 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/2.172, allocations: 101.4 kB / 1.034 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/2.172, allocations: 48.41 kB / 1.034 GB, free: 70.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001503/2.173, allocations: 0.838 MB / 1.035 GB, free: 70.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.173, allocations: 1.031 kB / 1.035 GB, free: 70.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003672/2.177, allocations: 1.259 MB / 1.036 GB, free: 70.29 MB / 458.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 () * Number of clocked 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.002162/2.179, allocations: 1.07 MB / 1.037 GB, free: 70.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005491/2.185, allocations: 2.617 MB / 1.04 GB, free: 70.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/2.185, allocations: 7.844 kB / 1.04 GB, free: 70.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/2.186, allocations: 0.8281 MB / 1.041 GB, free: 70.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/2.189, allocations: 0.6214 MB / 1.041 GB, free: 70.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/2.195, allocations: 3.516 MB / 1.045 GB, free: 68.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/2.195, allocations: 1.294 MB / 1.046 GB, free: 68.22 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002075/2.197, allocations: 0.5608 MB / 1.046 GB, free: 68.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/2.198, allocations: 125.2 kB / 1.047 GB, free: 68.19 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/2.198, allocations: 0 / 1.047 GB, free: 68.19 MB / 458.7 MB Notification: Performance of Templates: time 0.05884/2.257, allocations: 41.42 MB / 1.087 GB, free: 66.31 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches