Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 98.56 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.505e-05/1.507e-05, allocations: 4 kB / 343.7 MB, free: 8.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 51.48 MB / 395.2 MB, free: 4.723 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7831/0.8877, allocations: 324.9 MB / 0.7032 GB, free: 32.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.888, allocations: 91.33 kB / 0.7033 GB, free: 32.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.116/2.004, allocations: 284.7 MB / 0.9813 GB, free: 56.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/2.004, allocations: 0 / 0.9813 GB, free: 56.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002169/2.004, allocations: 44.56 kB / 0.9814 GB, free: 56.28 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006473/2.01, allocations: 1.784 MB / 0.9831 GB, free: 55.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/2.011, allocations: 9.969 kB / 0.9831 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/2.012, allocations: 165.3 kB / 0.9833 GB, free: 55.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002762/2.014, allocations: 1.038 MB / 0.9843 GB, free: 54.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.023e-05/2.015, allocations: 35.14 kB / 0.9843 GB, free: 54.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003768/2.015, allocations: 60.69 kB / 0.9844 GB, free: 54.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002553/2.018, allocations: 1.429 MB / 0.9858 GB, free: 54.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002636/2.02, allocations: 1.472 MB / 0.9872 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/2.02, allocations: 2.812 kB / 0.9872 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/2.02, allocations: 3.562 kB / 0.9872 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/2.021, allocations: 103.8 kB / 0.9873 GB, free: 54.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00864/2.029, allocations: 6.306 MB / 0.9935 GB, free: 51.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/2.03, allocations: 0.8753 MB / 0.9943 GB, free: 51.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000703/2.031, allocations: 0.5263 MB / 0.9948 GB, free: 51.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003396/2.034, allocations: 2.841 MB / 0.9976 GB, free: 49.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/2.035, allocations: 45.97 kB / 0.9977 GB, free: 49.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.515e-06/2.035, allocations: 0 / 0.9977 GB, free: 49.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.01024/2.045, allocations: 3.125 MB / 1.001 GB, free: 48.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/2.045, allocations: 195.2 kB / 1.001 GB, free: 48.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/2.047, allocations: 0.8786 MB / 1.002 GB, free: 47.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/2.047, allocations: 29.58 kB / 1.002 GB, free: 47.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/2.047, allocations: 0.657 MB / 1.002 GB, free: 47.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/2.048, allocations: 305.3 kB / 1.003 GB, free: 46.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/2.048, allocations: 0 / 1.003 GB, free: 46.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/2.048, allocations: 360.7 kB / 1.003 GB, free: 46.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000731/2.049, allocations: 0.5252 MB / 1.004 GB, free: 46.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008767/2.05, allocations: 0.916 MB / 1.004 GB, free: 45.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004442/2.054, allocations: 1.355 MB / 1.006 GB, free: 45.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/2.054, allocations: 3.969 kB / 1.006 GB, free: 45.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.006371/2.061, allocations: 2.411 MB / 1.008 GB, free: 44.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001148/2.062, allocations: 4.367 MB / 1.012 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/2.062, allocations: 14.66 kB / 1.012 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009578/2.063, allocations: 328.9 kB / 1.013 GB, free: 39.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009645/2.064, allocations: 276.2 kB / 1.013 GB, free: 39.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003067/2.067, allocations: 2.454 MB / 1.015 GB, free: 38.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/2.068, allocations: 77.81 kB / 1.015 GB, free: 38.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/2.068, allocations: 67.19 kB / 1.016 GB, free: 38.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/2.068, allocations: 3.969 kB / 1.016 GB, free: 38.08 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005343/2.074, allocations: 2.122 MB / 1.018 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/2.074, allocations: 11.84 kB / 1.018 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007928/2.074, allocations: 263 kB / 1.018 GB, free: 37.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009383/2.075, allocations: 285.7 kB / 1.018 GB, free: 37.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/2.078, allocations: 2.223 MB / 1.02 GB, free: 35.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/2.079, allocations: 69.34 kB / 1.02 GB, free: 35.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/2.079, allocations: 62.14 kB / 1.02 GB, free: 35.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003614/2.079, allocations: 154.2 kB / 1.021 GB, free: 35.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/2.08, allocations: 126 kB / 1.021 GB, free: 35.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/2.083, allocations: 1.52 MB / 1.022 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/2.083, allocations: 11.12 kB / 1.022 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/2.083, allocations: 5.828 kB / 1.022 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/2.083, allocations: 7.594 kB / 1.022 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/2.088, allocations: 2.729 MB / 1.025 GB, free: 33.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/2.088, allocations: 0 / 1.025 GB, free: 33.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006422/2.089, allocations: 160.1 kB / 1.025 GB, free: 33.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008985/2.089, allocations: 312.6 kB / 1.025 GB, free: 33.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/2.09, allocations: 14.72 kB / 1.025 GB, free: 33.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/2.092, allocations: 2.267 MB / 1.028 GB, free: 31.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/2.092, allocations: 3.062 kB / 1.028 GB, free: 31.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003411/2.095, allocations: 2.138 MB / 1.03 GB, free: 30.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/2.095, allocations: 224.8 kB / 1.03 GB, free: 30.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/2.096, allocations: 3.25 kB / 1.03 GB, free: 30.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008185/2.097, allocations: 56.47 kB / 1.03 GB, free: 30.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/2.097, allocations: 91.09 kB / 1.03 GB, free: 30.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.311e-05/2.097, allocations: 49.72 kB / 1.03 GB, free: 30.68 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008099/2.098, allocations: 0.6625 MB / 1.031 GB, free: 30.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.42e-07/2.098, allocations: 0 / 1.031 GB, free: 30.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003536/2.101, allocations: 1.152 MB / 1.032 GB, free: 30.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002471/2.104, allocations: 1.113 MB / 1.033 GB, free: 29.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003248/2.107, allocations: 2.091 MB / 1.035 GB, free: 29.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/2.107, allocations: 3.844 kB / 1.035 GB, free: 29.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000956/2.108, allocations: 0.6382 MB / 1.036 GB, free: 28.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/2.11, allocations: 486.9 kB / 1.036 GB, free: 28.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/2.113, allocations: 2.024 MB / 1.038 GB, free: 27.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006041/2.114, allocations: 1.282 MB / 1.039 GB, free: 26.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001853/2.116, allocations: 0.5769 MB / 1.04 GB, free: 26.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/2.116, allocations: 90.89 kB / 1.04 GB, free: 26.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/2.116, allocations: 3.938 kB / 1.04 GB, free: 26.12 MB / 442.7 MB Notification: Performance of Templates: time 0.04936/2.165, allocations: 34.88 MB / 1.074 GB, free: 10.39 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches