Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001769/0.001769, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 61.06 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1855/0.2892, allocations: 17.64 MB / 376.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007908/0.2971, allocations: 6.039 MB / 382.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009564/0.2981, allocations: 24.81 kB / 382.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008479/0.299, allocations: 329 kB / 382.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002486/0.3015, allocations: 1.052 MB / 384 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004277/0.3058, allocations: 1.647 MB / 385.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00344/0.3092, allocations: 1.946 MB / 387.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008244/0.3101, allocations: 485.2 kB / 388.1 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.3115, allocations: 0.7172 MB / 388.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.3126, allocations: 0.7369 MB / 389.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.3127, allocations: 69.53 kB / 389.6 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003022/0.3157, allocations: 1.126 MB / 390.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.3161, allocations: 262.3 kB / 391 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005197/0.3166, allocations: 410 kB / 391.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002452/0.3191, allocations: 1.698 MB / 393.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3191, allocations: 1.125 kB / 393.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3191, allocations: 0 / 393.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.3191, allocations: 0 / 393.1 MB, free: 4.297 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00227/0.3214, allocations: 1.171 MB / 394.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3214, allocations: 13.34 kB / 394.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.3218, allocations: 85.66 kB / 394.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009167/0.3227, allocations: 0.5813 MB / 394.9 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.3228, allocations: 37.86 kB / 394.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.43e-05/0.3229, allocations: 46.8 kB / 395 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.324, allocations: 0.7428 MB / 395.7 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.324, allocations: 1.219 kB / 395.7 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/0.3241, allocations: 21.67 kB / 395.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-05/0.3242, allocations: 42.72 kB / 395.8 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.3252, allocations: 0.6941 MB / 396.5 MB, free: 1.969 MB / 302.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.003727/0.329, allocations: 3.04 MB / 399.5 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.3297, allocations: 498 kB / 400 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004094/0.3302, allocations: 263.5 kB / 400.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.3305, allocations: 343.3 kB / 400.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3305, allocations: 46.34 kB / 400.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.3305, allocations: 0 / 400.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005348/0.3359, allocations: 2.299 MB / 403 MB, free: 13.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.3359, allocations: 94.08 kB / 403.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006808/0.3366, allocations: 0.6209 MB / 403.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.865e-05/0.3367, allocations: 42.11 kB / 403.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.3369, allocations: 324.8 kB / 404 MB, free: 12.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.3371, allocations: 214 kB / 404.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.3373, allocations: 134.2 kB / 404.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3375, allocations: 387.5 kB / 404.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3379, allocations: 312.8 kB / 405.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.3386, allocations: 482.6 kB / 405.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009992/0.3396, allocations: 0.7426 MB / 406.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3396, allocations: 2.406 kB / 406.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001575/0.3412, allocations: 0.9704 MB / 407.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3412, allocations: 8 kB / 407.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3412, allocations: 4 kB / 407.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/0.3437, allocations: 412.4 kB / 407.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006084/0.3443, allocations: 149.7 kB / 407.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009036/0.3452, allocations: 0.8347 MB / 408.6 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005418/0.3458, allocations: 27.98 kB / 408.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.875e-05/0.3459, allocations: 39.86 kB / 408.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007078/0.3466, allocations: 478 kB / 409.2 MB, free: 8.191 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005801/0.3472, allocations: 470.1 kB / 409.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009636/0.3482, allocations: 0.732 MB / 410.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.875e-06/0.3482, allocations: 0 / 410.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001516/0.3497, allocations: 0.9052 MB / 411.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3497, allocations: 8.062 kB / 411.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3498, allocations: 8 kB / 411.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.3516, allocations: 272.4 kB / 411.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/0.3522, allocations: 159.8 kB / 411.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006154/0.3528, allocations: 0.7092 MB / 412.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.3534, allocations: 36.05 kB / 412.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.3535, allocations: 31.98 kB / 412.5 MB, free: 4.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * 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: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.3537, allocations: 224.1 kB / 412.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3539, allocations: 71.16 kB / 412.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.3554, allocations: 0.8641 MB / 413.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3554, allocations: 8 kB / 413.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3554, allocations: 0 / 413.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3554, allocations: 8.016 kB / 413.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.3581, allocations: 1.71 MB / 415.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3582, allocations: 4 kB / 415.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.3587, allocations: 107.9 kB / 415.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.3601, allocations: 328.6 kB / 415.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.834e-05/0.3601, allocations: 19.94 kB / 415.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007368/0.3609, allocations: 0.8136 MB / 416.6 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3609, allocations: 4.062 kB / 416.6 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.3627, allocations: 1.292 MB / 417.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.363, allocations: 148.2 kB / 418.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.3631, allocations: 16 kB / 418.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.3635, allocations: 23.98 kB / 418.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3636, allocations: 56.48 kB / 418.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.013e-05/0.3637, allocations: 27.92 kB / 418.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005076/0.3642, allocations: 447 kB / 418.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3642, allocations: 0 / 418.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001458/0.3657, allocations: 0.5427 MB / 419.2 MB, free: 13.87 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008855/0.3666, allocations: 434.8 kB / 419.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.3688, allocations: 1.192 MB / 420.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3688, allocations: 0 / 420.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.3695, allocations: 407.3 kB / 421.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.3709, allocations: 361.9 kB / 421.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.3732, allocations: 1.573 MB / 423.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.3737, allocations: 0.9674 MB / 424.1 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008005/0.3745, allocations: 289.8 kB / 424.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.3747, allocations: 59.42 kB / 424.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3747, allocations: 3.938 kB / 424.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of Templates: time 0.04058/0.4153, allocations: 20.41 MB / 444.8 MB, free: 4.281 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches