Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,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.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,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.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001134/0.001134, allocations: 95.95 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 201.4 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.7 MB / 247.5 MB, free: 11.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002548/0.0002549, allocations: 4 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1029, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.2086/0.3115, allocations: 22.06 MB / 382 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.3254, allocations: 10.31 MB / 392.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.3271, allocations: 36.41 kB / 392.3 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.3284, allocations: 343.5 kB / 392.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004487/0.3329, allocations: 1.344 MB / 394 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006677/0.3396, allocations: 2.216 MB / 396.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004799/0.3444, allocations: 3.808 MB / 400 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.3455, allocations: 0.5623 MB / 400.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.3473, allocations: 0.8376 MB / 401.4 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.3488, allocations: 0.9739 MB / 402.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.349, allocations: 45.78 kB / 402.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004321/0.3533, allocations: 1.703 MB / 404.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004744/0.3538, allocations: 319.8 kB / 404.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007091/0.3545, allocations: 0.5058 MB / 405 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.3571, allocations: 1.77 MB / 406.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3572, allocations: 0 / 406.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.3572, allocations: 0 / 406.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.3572, allocations: 3.938 kB / 406.7 MB, free: 11.9 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002569/0.3598, allocations: 1.313 MB / 408.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3598, allocations: 12.59 kB / 408.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.3602, allocations: 116.4 kB / 408.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009757/0.3612, allocations: 0.6889 MB / 408.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.3612, allocations: 49.17 kB / 408.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.3613, allocations: 62.33 kB / 409 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.363, allocations: 1.058 MB / 410 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.363, allocations: 3.938 kB / 410 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.914e-05/0.3631, allocations: 35.91 kB / 410.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-05/0.3632, allocations: 61.28 kB / 410.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.3648, allocations: 1.039 MB / 411.2 MB, free: 8.305 MB / 318.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.006148/0.3709, allocations: 4.442 MB / 415.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009472/0.3719, allocations: 0.5781 MB / 416.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.3724, allocations: 318 kB / 416.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002518/0.3749, allocations: 1.973 MB / 418.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.375, allocations: 38.89 kB / 418.5 MB, free: 472 kB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.314e-06/0.375, allocations: 0 / 418.5 MB, free: 472 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004684/0.3797, allocations: 1.97 MB / 420.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/0.3798, allocations: 158.2 kB / 420.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.3812, allocations: 0.9273 MB / 421.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.3813, allocations: 49.62 kB / 421.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.3817, allocations: 478.9 kB / 422.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.3819, allocations: 161.7 kB / 422.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.382, allocations: 81.67 kB / 422.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3821, allocations: 345.9 kB / 422.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005627/0.3827, allocations: 321.8 kB / 423 MB, free: 11.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007597/0.3834, allocations: 0.6328 MB / 423.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.3847, allocations: 0.8812 MB / 424.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3847, allocations: 4 kB / 424.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002038/0.3867, allocations: 1.121 MB / 425.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002518/0.387, allocations: 364.9 kB / 426 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.387, allocations: 8 kB / 426 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002739/0.3898, allocations: 393.2 kB / 426.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007262/0.3905, allocations: 175.7 kB / 426.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/0.3918, allocations: 1.35 MB / 427.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009974/0.3928, allocations: 63.94 kB / 427.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3929, allocations: 48.8 kB / 428 MB, free: 6.348 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.393, allocations: 2.969 kB / 428 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001841/0.3948, allocations: 0.9795 MB / 429 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.3948, allocations: 8 kB / 429 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.3973, allocations: 365.3 kB / 429.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.398, allocations: 175.7 kB / 429.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.3991, allocations: 1.308 MB / 430.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008618/0.4, allocations: 60.09 kB / 430.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.4001, allocations: 40 kB / 430.9 MB, free: 3.359 MB / 334.1 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.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 (104): * Single equations (assignments): 102 * 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,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005906/0.4007, allocations: 371.5 kB / 431.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.401, allocations: 90.88 kB / 431.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.4027, allocations: 0.7926 MB / 432.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.4028, allocations: 7.938 kB / 432.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4028, allocations: 0 / 432.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.4028, allocations: 7.984 kB / 432.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.4056, allocations: 1.591 MB / 433.8 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4056, allocations: 4 kB / 433.8 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003828/0.406, allocations: 79.89 kB / 433.9 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.4076, allocations: 293.5 kB / 434.1 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.4076, allocations: 19.98 kB / 434.2 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.4087, allocations: 1.3 MB / 435.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4087, allocations: 4.031 kB / 435.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.4104, allocations: 1.087 MB / 436.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.4108, allocations: 187.9 kB / 436.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.4111, allocations: 12 kB / 436.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006779/0.4117, allocations: 47.81 kB / 436.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.4119, allocations: 48.38 kB / 436.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.368e-05/0.4119, allocations: 23.98 kB / 436.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.413, allocations: 0.652 MB / 437.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.413, allocations: 0 / 437.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002371/0.4154, allocations: 0.7535 MB / 438.3 MB, free: 11.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001902/0.4173, allocations: 0.623 MB / 438.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002808/0.4201, allocations: 1.27 MB / 440.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.4201, allocations: 1.75 kB / 440.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006135/0.4207, allocations: 318.3 kB / 440.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.4231, allocations: 396.4 kB / 440.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.4265, allocations: 2.141 MB / 443 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/0.4272, allocations: 1.026 MB / 444 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.4275, allocations: 83.42 kB / 444.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4275, allocations: 0 / 444.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of Templates: time 0.0379/0.4654, allocations: 26.31 MB / 470.4 MB, free: 11.67 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches