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.0009559/0.000956, allocations: 96.89 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.001278/0.001278, allocations: 202 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 247.5 MB, free: 9.504 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002446, allocations: 4 kB / 308.4 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1059, allocations: 51.52 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.2301/0.3361, allocations: 20.77 MB / 380.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.3466, allocations: 7.287 MB / 388 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.3481, allocations: 28.75 kB / 388 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.3493, allocations: 325.9 kB / 388.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003495/0.3528, allocations: 1.031 MB / 389.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004956/0.3578, allocations: 1.565 MB / 390.9 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004233/0.3621, allocations: 3.132 MB / 394 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.3632, allocations: 0.496 MB / 394.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0018/0.365, allocations: 0.7201 MB / 395.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.3668, allocations: 0.756 MB / 396 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002997/0.3671, allocations: 38.91 kB / 396.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.3704, allocations: 1.249 MB / 397.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005335/0.371, allocations: 249.7 kB / 397.5 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.3721, allocations: 449.4 kB / 398 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002498/0.3746, allocations: 1.366 MB / 399.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3746, allocations: 3.938 kB / 399.4 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3746, allocations: 0 / 399.4 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.873e-05/0.3746, allocations: 0 / 399.4 MB, free: 0.8242 MB / 302.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.002688/0.3773, allocations: 1.111 MB / 400.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3774, allocations: 13.28 kB / 400.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005838/0.378, allocations: 101.9 kB / 400.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.3793, allocations: 0.5936 MB / 401.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.3793, allocations: 46.34 kB / 401.2 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.3795, allocations: 55.61 kB / 401.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.3812, allocations: 0.8871 MB / 402.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.3813, allocations: 1.344 kB / 402.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.3814, allocations: 24.91 kB / 402.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.061e-05/0.3815, allocations: 49.97 kB / 402.2 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.383, allocations: 0.8124 MB / 403 MB, free: 14.33 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.005732/0.3887, allocations: 3.839 MB / 406.9 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009097/0.3897, allocations: 0.5423 MB / 407.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.3901, allocations: 273.8 kB / 407.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004271/0.3906, allocations: 0.5003 MB / 408.2 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.3906, allocations: 52.75 kB / 408.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.3907, allocations: 0 / 408.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004881/0.3955, allocations: 2.129 MB / 410.4 MB, free: 8.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.3956, allocations: 140.9 kB / 410.5 MB, free: 8.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.3967, allocations: 0.7347 MB / 411.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.997e-05/0.3968, allocations: 37.7 kB / 411.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.3972, allocations: 372 kB / 411.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.3973, allocations: 189.4 kB / 411.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3975, allocations: 69.62 kB / 411.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3976, allocations: 390.8 kB / 412.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.3982, allocations: 305.8 kB / 412.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006845/0.3989, allocations: 0.5032 MB / 413.1 MB, free: 5.648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4, allocations: 0.7739 MB / 413.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.4, allocations: 4 kB / 413.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001766/0.4018, allocations: 0.9958 MB / 414.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001903/0.402, allocations: 264.7 kB / 415.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.402, allocations: 4 kB / 415.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001782/0.4038, allocations: 297.4 kB / 415.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005937/0.4044, allocations: 147.8 kB / 415.6 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.4056, allocations: 1.311 MB / 416.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008115/0.4064, allocations: 60.03 kB / 416.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.968e-05/0.4065, allocations: 35.98 kB / 417 MB, free: 1.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.4066, allocations: 4 kB / 417 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001565/0.4081, allocations: 0.8501 MB / 417.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.4082, allocations: 4 kB / 417.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.4094, allocations: 186 kB / 418 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006983/0.4101, allocations: 179.7 kB / 418.2 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008776/0.411, allocations: 1.179 MB / 419.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006936/0.4117, allocations: 48.09 kB / 419.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/0.4118, allocations: 39.94 kB / 419.4 MB, free: 14.99 MB / 334.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.0005177/0.4123, allocations: 324.8 kB / 419.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.4125, allocations: 86.97 kB / 419.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.4144, allocations: 0.9782 MB / 420.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.4145, allocations: 4 kB / 420.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.4145, allocations: 3.984 kB / 420.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4145, allocations: 0 / 420.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00301/0.4175, allocations: 1.77 MB / 422.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4175, allocations: 0 / 422.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.418, allocations: 99.89 kB / 422.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.4191, allocations: 253.6 kB / 422.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.4192, allocations: 12 kB / 423 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009846/0.4202, allocations: 1.276 MB / 424.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4202, allocations: 4.109 kB / 424.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.4223, allocations: 1.32 MB / 425.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.4226, allocations: 168 kB / 425.7 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.4229, allocations: 24.05 kB / 425.7 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/0.4235, allocations: 35.98 kB / 425.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.4236, allocations: 56.47 kB / 425.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.4237, allocations: 27.98 kB / 425.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007878/0.4245, allocations: 0.5146 MB / 426.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4245, allocations: 0 / 426.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001992/0.4265, allocations: 0.5935 MB / 427 MB, free: 7.277 MB / 334.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.001534/0.4281, allocations: 0.5036 MB / 427.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.4306, allocations: 1.208 MB / 428.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.4306, allocations: 0 / 428.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006942/0.4313, allocations: 395.3 kB / 429.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.4336, allocations: 405.7 kB / 429.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.4368, allocations: 2.014 MB / 431.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006337/0.4374, allocations: 0.9877 MB / 432.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.4377, allocations: 87.34 kB / 432.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4377, allocations: 0 / 432.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of Templates: time 0.03498/0.4727, allocations: 23.04 MB / 455.6 MB, free: 10.69 MB / 366.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