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.001386/0.001386, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 59.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2414, allocations: 50.55 MB / 409.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01753/0.2589, allocations: 17.65 MB / 426.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009624/0.2686, allocations: 6.035 MB / 432.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009735/0.2696, allocations: 23.88 kB / 433 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.2707, allocations: 326 kB / 433.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002781/0.2735, allocations: 1.061 MB / 434.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004134/0.2777, allocations: 1.647 MB / 436 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002429/0.2801, allocations: 1.949 MB / 437.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006796/0.2808, allocations: 481.7 kB / 438.4 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.2819, allocations: 0.7397 MB / 439.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009297/0.2829, allocations: 0.7279 MB / 439.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.283, allocations: 68 kB / 439.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.285, allocations: 1.135 MB / 441.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000295/0.2853, allocations: 259.3 kB / 441.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004273/0.2858, allocations: 410 kB / 441.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.288, allocations: 1.696 MB / 443.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.288, allocations: 0 / 443.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.288, allocations: 3.938 kB / 443.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.288, allocations: 0 / 443.4 MB, free: 15.25 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.002158/0.2902, allocations: 1.172 MB / 444.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.2902, allocations: 8.031 kB / 444.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.2905, allocations: 91.98 kB / 444.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008421/0.2914, allocations: 0.5792 MB / 445.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/0.2914, allocations: 36.98 kB / 445.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.2915, allocations: 51.98 kB / 445.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2927, allocations: 0.7411 MB / 446.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2927, allocations: 3.938 kB / 446.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-05/0.2928, allocations: 19.98 kB / 446.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-05/0.2929, allocations: 44.97 kB / 446.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.294, allocations: 0.6909 MB / 446.9 MB, free: 11.69 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.0042/0.2982, allocations: 3.026 MB / 449.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007892/0.299, allocations: 0.4887 MB / 450.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003997/0.2994, allocations: 266 kB / 450.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/0.2997, allocations: 349.3 kB / 451 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.2997, allocations: 39 kB / 451 MB, free: 7.219 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.2998, allocations: 0 / 451 MB, free: 7.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005193/0.305, allocations: 2.299 MB / 453.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.305, allocations: 89.67 kB / 453.4 MB, free: 4.742 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007064/0.3057, allocations: 0.621 MB / 454 MB, free: 4.109 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.278e-05/0.3058, allocations: 41.7 kB / 454.1 MB, free: 4.062 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.306, allocations: 324.4 kB / 454.4 MB, free: 3.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.3062, allocations: 213 kB / 454.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.3064, allocations: 134.6 kB / 454.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3066, allocations: 386.8 kB / 455.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.3071, allocations: 316.7 kB / 455.4 MB, free: 2.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006143/0.3078, allocations: 481.3 kB / 455.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.3088, allocations: 0.7406 MB / 456.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3088, allocations: 0 / 456.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001563/0.3104, allocations: 0.9698 MB / 457.6 MB, free: 376 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3104, allocations: 8.062 kB / 457.6 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3104, allocations: 8 kB / 457.6 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.3129, allocations: 416.2 kB / 458 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.3135, allocations: 151.8 kB / 458.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008924/0.3144, allocations: 0.8255 MB / 459 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.3149, allocations: 31.92 kB / 459 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/0.3149, allocations: 35.98 kB / 459.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006761/0.3156, allocations: 469.9 kB / 459.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006048/0.3162, allocations: 474.2 kB / 460 MB, free: 13.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001002/0.3173, allocations: 0.7319 MB / 460.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.725e-06/0.3173, allocations: 0 / 460.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001453/0.3187, allocations: 0.9084 MB / 461.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.3188, allocations: 8 kB / 461.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3188, allocations: 4.625 kB / 461.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.3206, allocations: 276.5 kB / 461.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005876/0.3212, allocations: 155.8 kB / 462 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006239/0.3218, allocations: 0.7084 MB / 462.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004904/0.3223, allocations: 31.98 kB / 462.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.94e-05/0.3224, allocations: 36.05 kB / 462.8 MB, free: 10.93 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.0002409/0.3226, allocations: 228 kB / 463 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.3228, allocations: 75.09 kB / 463.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.3244, allocations: 0.8813 MB / 464 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3244, allocations: 8 kB / 464 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.3244, allocations: 3.938 kB / 464 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3245, allocations: 3.984 kB / 464 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.3272, allocations: 1.699 MB / 465.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3272, allocations: 96 / 465.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004992/0.3277, allocations: 111.8 kB / 465.8 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.3291, allocations: 328.5 kB / 466.1 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-05/0.3292, allocations: 19.94 kB / 466.2 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008424/0.33, allocations: 0.8138 MB / 467 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3301, allocations: 0 / 467 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.3321, allocations: 1.296 MB / 468.3 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.3323, allocations: 148.2 kB / 468.4 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.94e-05/0.3324, allocations: 16 kB / 468.4 MB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.3329, allocations: 23.98 kB / 468.5 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.333, allocations: 56.48 kB / 468.5 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.88e-05/0.3331, allocations: 31.92 kB / 468.5 MB, free: 5.047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005172/0.3336, allocations: 439 kB / 469 MB, free: 4.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3336, allocations: 4 kB / 469 MB, free: 4.617 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001417/0.335, allocations: 0.531 MB / 469.5 MB, free: 4.086 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.0009895/0.336, allocations: 454 kB / 470 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.3383, allocations: 1.191 MB / 471.1 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3383, allocations: 1.625 kB / 471.1 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007043/0.339, allocations: 403 kB / 471.5 MB, free: 2.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.3405, allocations: 380 kB / 471.9 MB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.3429, allocations: 1.569 MB / 473.5 MB, free: 96 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.3434, allocations: 0.9674 MB / 474.4 MB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007632/0.3442, allocations: 289.3 kB / 474.7 MB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.3443, allocations: 63.42 kB / 474.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3444, allocations: 3.938 kB / 474.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of Templates: time 0.0305/0.3749, allocations: 20.59 MB / 495.4 MB, free: 10.3 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