Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001399/0.001399, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001468, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2756, allocations: 50.56 MB / 409.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02182/0.2975, allocations: 20.73 MB / 430.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.3081, allocations: 7.062 MB / 437.7 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009912/0.3091, allocations: 23.88 kB / 437.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.3105, allocations: 365.6 kB / 438.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.314, allocations: 1.1 MB / 439.2 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005041/0.3191, allocations: 1.868 MB / 441.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002987/0.3221, allocations: 2.14 MB / 443.2 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.3233, allocations: 0.5775 MB / 443.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.325, allocations: 0.8293 MB / 444.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.3265, allocations: 0.7551 MB / 445.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002722/0.3268, allocations: 76 kB / 445.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002802/0.3296, allocations: 1.271 MB / 446.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004472/0.3301, allocations: 287.1 kB / 447 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007651/0.3308, allocations: 465.8 kB / 447.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003497/0.3343, allocations: 1.902 MB / 449.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3344, allocations: 0 / 449.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3344, allocations: 4 kB / 449.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.776e-05/0.3344, allocations: 0 / 449.4 MB, free: 9.973 MB / 366.1 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.003105/0.3375, allocations: 1.274 MB / 450.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3376, allocations: 8.031 kB / 450.6 MB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004484/0.338, allocations: 107.8 kB / 450.8 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.3392, allocations: 0.6285 MB / 451.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.3392, allocations: 45.3 kB / 451.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3393, allocations: 55.98 kB / 451.5 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.3409, allocations: 0.8789 MB / 452.4 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.341, allocations: 4 kB / 452.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-05/0.3411, allocations: 27.98 kB / 452.4 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-05/0.3412, allocations: 45.3 kB / 452.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.3426, allocations: 0.8169 MB / 453.3 MB, free: 5.941 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005602/0.3482, allocations: 3.819 MB / 457.1 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009767/0.3492, allocations: 0.5462 MB / 457.6 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004309/0.3496, allocations: 274 kB / 457.9 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004149/0.3501, allocations: 0.5034 MB / 458.4 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.3501, allocations: 39 kB / 458.4 MB, free: 400 kB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.965e-06/0.3501, allocations: 0 / 458.4 MB, free: 400 kB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.00478/0.3549, allocations: 2.116 MB / 460.5 MB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/0.355, allocations: 144.9 kB / 460.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.3561, allocations: 0.7309 MB / 461.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.873e-05/0.3562, allocations: 37.7 kB / 461.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.3565, allocations: 383.8 kB / 461.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.3567, allocations: 181.5 kB / 462 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.3569, allocations: 150.5 kB / 462.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3571, allocations: 386.8 kB / 462.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.3577, allocations: 316.7 kB / 462.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007369/0.3584, allocations: 0.5188 MB / 463.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.3596, allocations: 0.7778 MB / 464.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3596, allocations: 4 kB / 464.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00178/0.3614, allocations: 0.9919 MB / 465.1 MB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.3614, allocations: 10.97 kB / 465.1 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.3614, allocations: 12.06 kB / 465.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/0.3631, allocations: 297.4 kB / 465.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.3637, allocations: 151.7 kB / 465.6 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.3649, allocations: 1.304 MB / 466.9 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006156/0.3655, allocations: 35.97 kB / 466.9 MB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.97e-05/0.3656, allocations: 32 kB / 467 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007698/0.3664, allocations: 481.9 kB / 467.4 MB, free: 6.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006645/0.3671, allocations: 0.5041 MB / 467.9 MB, free: 6.379 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001106/0.3682, allocations: 0.7591 MB / 468.7 MB, free: 5.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.454e-06/0.3682, allocations: 0 / 468.7 MB, free: 5.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001753/0.37, allocations: 0.9489 MB / 469.6 MB, free: 4.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.37, allocations: 12.03 kB / 469.7 MB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.37, allocations: 4 kB / 469.7 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.3711, allocations: 177.4 kB / 469.8 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/0.3718, allocations: 171.7 kB / 470 MB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009293/0.3728, allocations: 1.183 MB / 471.2 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006207/0.3734, allocations: 39.86 kB / 471.2 MB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.3735, allocations: 39.98 kB / 471.3 MB, free: 2.898 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002817/0.3738, allocations: 228 kB / 471.5 MB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.374, allocations: 79.3 kB / 471.6 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.3758, allocations: 0.9816 MB / 472.5 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.3759, allocations: 15.98 kB / 472.6 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3759, allocations: 0 / 472.6 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.3759, allocations: 3.984 kB / 472.6 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.3787, allocations: 1.751 MB / 474.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3787, allocations: 0 / 474.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.3791, allocations: 95.89 kB / 474.4 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3802, allocations: 245.5 kB / 474.6 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.275e-05/0.3803, allocations: 19.98 kB / 474.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009404/0.3812, allocations: 1.269 MB / 475.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3812, allocations: 0 / 475.9 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.3831, allocations: 1.313 MB / 477.2 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.3834, allocations: 160 kB / 477.4 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.3835, allocations: 16 kB / 477.4 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/0.384, allocations: 27.97 kB / 477.4 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.3842, allocations: 56.55 kB / 477.5 MB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.701e-05/0.3843, allocations: 31.98 kB / 477.5 MB, free: 12.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006898/0.385, allocations: 0.5107 MB / 478 MB, free: 11.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.385, allocations: 0 / 478 MB, free: 11.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001713/0.3867, allocations: 0.5974 MB / 478.6 MB, free: 11.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001478/0.3882, allocations: 0.5008 MB / 479.1 MB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.3906, allocations: 1.219 MB / 480.4 MB, free: 9.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/0.3907, allocations: 8.188 kB / 480.4 MB, free: 9.605 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006926/0.3914, allocations: 398.9 kB / 480.8 MB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/0.3934, allocations: 419.1 kB / 481.2 MB, free: 8.816 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.3964, allocations: 1.632 MB / 482.8 MB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.397, allocations: 0.9914 MB / 483.8 MB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.3973, allocations: 83.42 kB / 483.9 MB, free: 6.031 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3973, allocations: 0 / 483.9 MB, free: 6.031 MB / 398.1 MB Notification: Performance of Templates: time 0.03166/0.429, allocations: 23.26 MB / 0.4952 GB, free: 14.87 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches