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.001317/0.001317, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2307, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0164/0.2471, allocations: 17.66 MB / 426.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007764/0.2549, allocations: 6.043 MB / 432.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005657/0.2555, allocations: 19.88 kB / 433 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007944/0.2563, allocations: 333.9 kB / 433.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.2585, allocations: 1.034 MB / 434.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003377/0.2619, allocations: 1.651 MB / 436 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002087/0.264, allocations: 1.937 MB / 437.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007582/0.2647, allocations: 481.6 kB / 438.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.266, allocations: 0.7436 MB / 439.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.2671, allocations: 0.7279 MB / 439.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2672, allocations: 68 kB / 439.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001872/0.2691, allocations: 1.143 MB / 441.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.2694, allocations: 251.3 kB / 441.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004227/0.2698, allocations: 406.1 kB / 441.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.2718, allocations: 1.696 MB / 443.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2718, allocations: 0 / 443.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2718, allocations: 0 / 443.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.2718, allocations: 0 / 443.4 MB, free: 15.31 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002068/0.2739, allocations: 1.18 MB / 444.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2739, allocations: 8.031 kB / 444.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.2742, allocations: 91.98 kB / 444.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.2751, allocations: 0.5791 MB / 445.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.2752, allocations: 40.98 kB / 445.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.743e-05/0.2753, allocations: 47.94 kB / 445.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.2764, allocations: 0.7373 MB / 446.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.2764, allocations: 7.938 kB / 446.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.2765, allocations: 16 kB / 446.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.646e-05/0.2766, allocations: 48.97 kB / 446.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.2777, allocations: 0.6909 MB / 446.8 MB, free: 11.74 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.004226/0.282, allocations: 3.038 MB / 449.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000749/0.2827, allocations: 492.4 kB / 450.4 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003909/0.2831, allocations: 266 kB / 450.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002891/0.2834, allocations: 345.3 kB / 451 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.2835, allocations: 39 kB / 451 MB, free: 7.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.544e-06/0.2835, allocations: 0 / 451 MB, free: 7.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005386/0.2889, allocations: 2.299 MB / 453.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.2889, allocations: 85.67 kB / 453.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006941/0.2896, allocations: 0.625 MB / 454 MB, free: 4.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.2897, allocations: 37.7 kB / 454 MB, free: 4.121 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/0.2899, allocations: 328.4 kB / 454.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.2901, allocations: 209 kB / 454.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.2903, allocations: 142.6 kB / 454.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.2905, allocations: 382.8 kB / 455.1 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004887/0.291, allocations: 312.7 kB / 455.4 MB, free: 2.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.2915, allocations: 484.8 kB / 455.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.2926, allocations: 0.7445 MB / 456.6 MB, free: 1.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2926, allocations: 4 kB / 456.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001495/0.2941, allocations: 0.9737 MB / 457.6 MB, free: 424 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.2941, allocations: 8 kB / 457.6 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2941, allocations: 4 kB / 457.6 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.2965, allocations: 408.4 kB / 458 MB, free: 0 / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006114/0.2971, allocations: 147.8 kB / 458.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008482/0.298, allocations: 0.8332 MB / 459 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/0.2985, allocations: 31.92 kB / 459 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.2985, allocations: 31.98 kB / 459 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006681/0.2992, allocations: 477.9 kB / 459.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005571/0.2998, allocations: 474.1 kB / 460 MB, free: 13.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009541/0.3007, allocations: 0.7242 MB / 460.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.976e-06/0.3007, allocations: 0 / 460.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001401/0.3022, allocations: 0.9129 MB / 461.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3022, allocations: 11.12 kB / 461.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3022, allocations: 8.031 kB / 461.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001873/0.3041, allocations: 268.5 kB / 461.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005805/0.3047, allocations: 163.7 kB / 462 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005895/0.3053, allocations: 0.7045 MB / 462.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.3058, allocations: 40.03 kB / 462.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-05/0.3058, allocations: 36.06 kB / 462.8 MB, free: 10.97 MB / 382.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.0002332/0.3061, allocations: 226.3 kB / 463 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.3062, allocations: 75.09 kB / 463.1 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.3077, allocations: 0.862 MB / 464 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3077, allocations: 8 kB / 464 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3077, allocations: 7.922 kB / 464 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3078, allocations: 0 / 464 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.3104, allocations: 1.71 MB / 465.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3105, allocations: 0 / 465.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.311, allocations: 111.8 kB / 465.8 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.3124, allocations: 327.9 kB / 466.1 MB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.724e-05/0.3125, allocations: 19.92 kB / 466.1 MB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007947/0.3133, allocations: 0.8099 MB / 467 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3133, allocations: 4.062 kB / 467 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.3152, allocations: 1.292 MB / 468.3 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/0.3154, allocations: 144.2 kB / 468.4 MB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-05/0.3155, allocations: 16.09 kB / 468.4 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.316, allocations: 35.91 kB / 468.4 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.3161, allocations: 48.5 kB / 468.5 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.792e-05/0.3162, allocations: 31.92 kB / 468.5 MB, free: 5.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005296/0.3167, allocations: 443 kB / 469 MB, free: 4.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3167, allocations: 0 / 469 MB, free: 4.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001356/0.3181, allocations: 0.5349 MB / 469.5 MB, free: 4.145 MB / 382.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.0009102/0.319, allocations: 450.6 kB / 469.9 MB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.3213, allocations: 1.196 MB / 471.1 MB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3213, allocations: 3.938 kB / 471.1 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006488/0.3219, allocations: 403.3 kB / 471.5 MB, free: 2.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.3236, allocations: 360.5 kB / 471.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.326, allocations: 1.582 MB / 473.5 MB, free: 152 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.3265, allocations: 0.9596 MB / 474.4 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008641/0.3274, allocations: 293.7 kB / 474.7 MB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.3276, allocations: 63.42 kB / 474.8 MB, free: 14.81 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3276, allocations: 3.938 kB / 474.8 MB, free: 14.8 MB / 398.1 MB Notification: Performance of Templates: time 0.03108/0.3587, allocations: 20.94 MB / 495.7 MB, free: 10.01 MB / 414.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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