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.001228/0.001228, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 63.52 kB / 306.9 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.2085/0.3152, allocations: 22.7 MB / 380.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.329, allocations: 10.47 MB / 390.6 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001925/0.331, allocations: 43.69 kB / 390.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.3324, allocations: 341.8 kB / 391 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004673/0.3371, allocations: 1.343 MB / 392.3 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007277/0.3444, allocations: 2.2 MB / 394.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005482/0.3499, allocations: 3.814 MB / 398.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.3512, allocations: 0.5764 MB / 398.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.3535, allocations: 0.848 MB / 399.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001955/0.3555, allocations: 0.9761 MB / 400.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002116/0.3557, allocations: 48.12 kB / 400.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004442/0.3601, allocations: 1.71 MB / 402.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005917/0.3607, allocations: 321.7 kB / 402.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009279/0.3617, allocations: 498 kB / 403.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003298/0.365, allocations: 1.796 MB / 405.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.365, allocations: 3.984 kB / 405.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.365, allocations: 0 / 405.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.365, allocations: 0 / 405.1 MB, free: 11.37 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.003234/0.3683, allocations: 1.504 MB / 406.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3683, allocations: 8 kB / 406.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004298/0.3688, allocations: 116.2 kB / 406.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3698, allocations: 0.679 MB / 407.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.3699, allocations: 52.77 kB / 407.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.37, allocations: 59.95 kB / 407.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.3717, allocations: 1.06 MB / 408.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.3717, allocations: 0 / 408.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.649e-05/0.3718, allocations: 27.98 kB / 408.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.372, allocations: 77.14 kB / 408.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.3737, allocations: 1.036 MB / 409.7 MB, free: 7.727 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.006634/0.3804, allocations: 4.426 MB / 414.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009847/0.3814, allocations: 0.5781 MB / 414.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00047/0.3818, allocations: 318 kB / 415 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002414/0.3843, allocations: 1.969 MB / 417 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.3843, allocations: 46.83 kB / 417.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.3843, allocations: 0 / 417.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004563/0.3889, allocations: 1.961 MB / 419 MB, free: 13.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.389, allocations: 162.2 kB / 419.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.3902, allocations: 0.9273 MB / 420.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.473e-05/0.3903, allocations: 41.69 kB / 420.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.3906, allocations: 482.8 kB / 420.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.3907, allocations: 169.7 kB / 420.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.391, allocations: 182.5 kB / 421 MB, free: 11.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3912, allocations: 345.9 kB / 421.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.3917, allocations: 328.7 kB / 421.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007529/0.3925, allocations: 0.6251 MB / 422.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.3936, allocations: 0.8851 MB / 423.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3937, allocations: 0 / 423.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001858/0.3955, allocations: 1.128 MB / 424.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3956, allocations: 11.94 kB / 424.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.3956, allocations: 8 kB / 424.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/0.3982, allocations: 377.9 kB / 424.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.3989, allocations: 183.7 kB / 424.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.4001, allocations: 1.347 MB / 426.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000944/0.401, allocations: 47.91 kB / 426.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.4011, allocations: 44 kB / 426.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008925/0.402, allocations: 0.5224 MB / 426.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000824/0.4029, allocations: 0.6191 MB / 427.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001268/0.4042, allocations: 0.8753 MB / 428.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.989e-06/0.4042, allocations: 4 kB / 428.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.002115/0.4063, allocations: 1.097 MB / 429.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.4063, allocations: 8 kB / 429.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.4064, allocations: 8 kB / 429.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002363/0.4087, allocations: 333.7 kB / 429.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000699/0.4094, allocations: 187.7 kB / 429.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.4107, allocations: 1.311 MB / 431.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4117, allocations: 60.09 kB / 431.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.4118, allocations: 47.92 kB / 431.3 MB, free: 0.7656 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.0003634/0.4122, allocations: 233.6 kB / 431.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003048/0.4125, allocations: 94.88 kB / 431.6 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.4144, allocations: 0.796 MB / 432.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.4144, allocations: 4 kB / 432.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.4144, allocations: 4 kB / 432.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.4144, allocations: 3.984 kB / 432.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.4174, allocations: 1.591 MB / 434 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.4174, allocations: 0 / 434 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.4178, allocations: 79.97 kB / 434.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.4194, allocations: 281.4 kB / 434.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.145e-05/0.4194, allocations: 11.98 kB / 434.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.4205, allocations: 1.304 MB / 435.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4205, allocations: 0 / 435.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.4223, allocations: 1.088 MB / 436.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.4226, allocations: 171.8 kB / 437 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.4228, allocations: 12 kB / 437 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006752/0.4235, allocations: 35.91 kB / 437 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.4237, allocations: 48.36 kB / 437.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.108e-05/0.4237, allocations: 32.05 kB / 437.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.4248, allocations: 0.6442 MB / 437.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4248, allocations: 4 kB / 437.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002525/0.4273, allocations: 0.7535 MB / 438.5 MB, free: 9.395 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.00209/0.4294, allocations: 0.6151 MB / 439.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002903/0.4323, allocations: 1.263 MB / 440.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.4324, allocations: 0 / 440.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.433, allocations: 318.2 kB / 440.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/0.4354, allocations: 395.2 kB / 441.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.4392, allocations: 2.047 MB / 443.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007559/0.44, allocations: 1.038 MB / 444.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.4404, allocations: 83.42 kB / 444.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4404, allocations: 0 / 444.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of Templates: time 0.0385/0.4789, allocations: 26.44 MB / 470.7 MB, free: 9.25 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