Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008838/0.0008838, allocations: 96.06 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.316e-05/1.318e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 50.43 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.75/0.8595, allocations: 328 MB / 0.6987 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.8599, allocations: 89.64 kB / 0.6988 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5432/1.403, allocations: 168.9 MB / 0.8637 GB, free: 31.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.283e-06/1.403, allocations: 3.938 kB / 0.8637 GB, free: 31.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.326e-05/1.403, allocations: 20 kB / 0.8637 GB, free: 31.68 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002019/1.405, allocations: 1.099 MB / 0.8648 GB, free: 30.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/1.405, allocations: 12.03 kB / 0.8648 GB, free: 30.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/1.406, allocations: 98.95 kB / 0.8649 GB, free: 30.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009488/1.407, allocations: 0.6323 MB / 0.8655 GB, free: 29.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/1.407, allocations: 20 kB / 0.8656 GB, free: 29.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.245e-05/1.407, allocations: 36 kB / 0.8656 GB, free: 29.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008898/1.408, allocations: 0.7015 MB / 0.8663 GB, free: 28.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009389/1.409, allocations: 0.7975 MB / 0.8671 GB, free: 28.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/1.409, allocations: 3.938 kB / 0.8671 GB, free: 28.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/1.409, allocations: 4 kB / 0.8671 GB, free: 28.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.675e-05/1.409, allocations: 45.28 kB / 0.8671 GB, free: 28.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/1.412, allocations: 3.641 MB / 0.8707 GB, free: 24.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/1.413, allocations: 0.4962 MB / 0.8711 GB, free: 23.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/1.413, allocations: 250.1 kB / 0.8714 GB, free: 23.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001662/1.415, allocations: 1.84 MB / 0.8732 GB, free: 21.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/1.415, allocations: 42.56 kB / 0.8732 GB, free: 21.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/1.415, allocations: 0 / 0.8732 GB, free: 21.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.005585/1.421, allocations: 1.818 MB / 0.875 GB, free: 19.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/1.421, allocations: 136.5 kB / 0.8751 GB, free: 19.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/1.421, allocations: 0.507 MB / 0.8756 GB, free: 18.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/1.421, allocations: 29.7 kB / 0.8756 GB, free: 18.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/1.421, allocations: 415.1 kB / 0.876 GB, free: 18.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.839e-05/1.422, allocations: 153.8 kB / 0.8762 GB, free: 18.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/1.422, allocations: 0 / 0.8762 GB, free: 18.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/1.422, allocations: 382.7 kB / 0.8766 GB, free: 17.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/1.422, allocations: 237.5 kB / 0.8768 GB, free: 17.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/1.422, allocations: 484.7 kB / 0.8772 GB, free: 17.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/1.424, allocations: 0.603 MB / 0.8778 GB, free: 16.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/1.424, allocations: 4 kB / 0.8778 GB, free: 16.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002643/1.427, allocations: 1.101 MB / 0.8789 GB, free: 15.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004483/1.427, allocations: 2.708 MB / 0.8816 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/1.428, allocations: 11.94 kB / 0.8816 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002676/1.428, allocations: 89.61 kB / 0.8817 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008601/1.429, allocations: 191.7 kB / 0.8818 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/1.43, allocations: 1.882 MB / 0.8837 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005781/1.43, allocations: 36.02 kB / 0.8837 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.197e-05/1.431, allocations: 39.92 kB / 0.8837 GB, free: 10.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/1.431, allocations: 8.062 kB / 0.8838 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0024/1.433, allocations: 0.979 MB / 0.8847 GB, free: 9.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.433, allocations: 11.98 kB / 0.8847 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/1.433, allocations: 89.59 kB / 0.8848 GB, free: 8.953 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/1.434, allocations: 175.8 kB / 0.885 GB, free: 8.781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008005/1.435, allocations: 1.245 MB / 0.8862 GB, free: 7.484 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/1.435, allocations: 40.03 kB / 0.8862 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.634e-05/1.435, allocations: 28 kB / 0.8863 GB, free: 7.418 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002109/1.435, allocations: 138.3 kB / 0.8864 GB, free: 7.277 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/1.436, allocations: 71.11 kB / 0.8865 GB, free: 7.207 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/1.437, allocations: 0.8352 MB / 0.8873 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/1.437, allocations: 8 kB / 0.8873 GB, free: 6.355 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/1.437, allocations: 7.984 kB / 0.8873 GB, free: 6.348 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/1.437, allocations: 0 / 0.8873 GB, free: 6.348 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/1.44, allocations: 1.521 MB / 0.8888 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/1.44, allocations: 0 / 0.8888 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005438/1.441, allocations: 136 kB / 0.8889 GB, free: 4.637 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/1.441, allocations: 73.61 kB / 0.889 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/1.441, allocations: 7.984 kB / 0.889 GB, free: 4.551 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008427/1.442, allocations: 1.784 MB / 0.8907 GB, free: 2.691 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/1.442, allocations: 0 / 0.8907 GB, free: 2.691 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/1.443, allocations: 1.138 MB / 0.8918 GB, free: 1.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/1.444, allocations: 164 kB / 0.892 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/1.444, allocations: 11.94 kB / 0.892 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/1.444, allocations: 23.98 kB / 0.892 GB, free: 1.285 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/1.444, allocations: 56.53 kB / 0.8921 GB, free: 1.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.403e-05/1.444, allocations: 27.98 kB / 0.8921 GB, free: 1.203 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004261/1.445, allocations: 395.2 kB / 0.8925 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.445, allocations: 0 / 0.8925 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001986/1.447, allocations: 0.6088 MB / 0.8931 GB, free: 220 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.2331/1.68, allocations: 0.6582 MB / 0.8937 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002833/1.683, allocations: 1.07 MB / 0.8948 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.683, allocations: 1.062 kB / 0.8948 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007892/1.684, allocations: 355.5 kB / 0.8951 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/1.685, allocations: 283 kB / 0.8954 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/1.688, allocations: 1.091 MB / 0.8964 GB, free: 89.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/1.688, allocations: 1.009 MB / 0.8974 GB, free: 88.87 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001238/1.69, allocations: 328 kB / 0.8977 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/1.69, allocations: 64.05 kB / 0.8978 GB, free: 88.86 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.69, allocations: 2.562 kB / 0.8978 GB, free: 88.86 MB / 442.7 MB Notification: Performance of Templates: time 0.03033/1.72, allocations: 18.71 MB / 0.9161 GB, free: 88.4 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches