Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.001179, allocations: 92.28 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 206.3 kB / 18.29 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002139/0.0002138, allocations: 8 kB / 307.7 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.0959, allocations: 51.52 MB / 359.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.1806/0.2765, allocations: 31.69 MB / 390.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02007/0.2966, allocations: 14.74 MB / 405.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.2984, allocations: 56.91 kB / 405.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.2997, allocations: 0.4997 MB / 406.2 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005102/0.3048, allocations: 2.05 MB / 408.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008121/0.3129, allocations: 3.103 MB / 411.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006286/0.3192, allocations: 5.95 MB / 417.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.3207, allocations: 0.8629 MB / 418.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.323, allocations: 1.265 MB / 419.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.325, allocations: 1.518 MB / 421 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.3252, allocations: 72 kB / 421.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004686/0.3299, allocations: 2.289 MB / 423.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000573/0.3305, allocations: 498.5 kB / 423.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008743/0.3313, allocations: 0.7675 MB / 424.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.3361, allocations: 3.51 MB / 428.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3361, allocations: 0 / 428.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3361, allocations: 0 / 428.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.3361, allocations: 4 kB / 428.1 MB, free: 6.723 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003704/0.3398, allocations: 1.826 MB / 429.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3399, allocations: 8.031 kB / 430 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/0.3403, allocations: 166.2 kB / 430.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.3417, allocations: 0.956 MB / 431.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.436e-05/0.3418, allocations: 85.95 kB / 431.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.342, allocations: 91.92 kB / 431.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.3445, allocations: 1.643 MB / 432.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/0.3445, allocations: 4 kB / 432.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.3447, allocations: 43.97 kB / 432.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/0.3448, allocations: 97.94 kB / 433 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.3474, allocations: 1.647 MB / 434.7 MB, free: 15.98 MB / 350.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.009097/0.3565, allocations: 6.673 MB / 441.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.358, allocations: 0.9299 MB / 442.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008316/0.3589, allocations: 0.5508 MB / 442.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003627/0.3625, allocations: 2.816 MB / 445.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.3625, allocations: 43.22 kB / 445.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.216e-06/0.3626, allocations: 3.938 kB / 445.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008276/0.3708, allocations: 3.726 MB / 449.4 MB, free: 488 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.115e-05/0.371, allocations: 192.9 kB / 449.6 MB, free: 252 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.3727, allocations: 1.314 MB / 450.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.3728, allocations: 53.69 kB / 451 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005012/0.3733, allocations: 0.6432 MB / 451.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.3736, allocations: 327.4 kB / 451.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.3737, allocations: 125.6 kB / 452.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.3738, allocations: 301.1 kB / 452.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009707/0.3748, allocations: 0.5816 MB / 452.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.3761, allocations: 1.001 MB / 453.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.3781, allocations: 1.485 MB / 455.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.3781, allocations: 4 kB / 455.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003114/0.3812, allocations: 1.9 MB / 457.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.3815, allocations: 443 kB / 457.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.3816, allocations: 16.06 kB / 457.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005362/0.3869, allocations: 0.7906 MB / 458.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.3881, allocations: 287.5 kB / 458.8 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.3901, allocations: 2.168 MB / 461 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.3913, allocations: 96.06 kB / 461.1 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.3914, allocations: 67.98 kB / 461.2 MB, free: 4.023 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.3915, allocations: 4 kB / 461.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002818/0.3943, allocations: 1.658 MB / 462.8 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/0.3943, allocations: 12 kB / 462.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004636/0.399, allocations: 0.6308 MB / 463.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.4, allocations: 295.5 kB / 463.8 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.4017, allocations: 2.004 MB / 465.8 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.4029, allocations: 96.08 kB / 465.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.403, allocations: 63.98 kB / 465.9 MB, free: 15.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00077/0.4038, allocations: 476.4 kB / 466.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.404, allocations: 150.2 kB / 466.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.407, allocations: 1.52 MB / 468.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.407, allocations: 12 kB / 468.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.407, allocations: 0 / 468.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.407, allocations: 3.984 kB / 468.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.4114, allocations: 2.815 MB / 470.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4114, allocations: 7.938 kB / 470.9 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/0.4121, allocations: 147.8 kB / 471 MB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003062/0.4152, allocations: 0.6382 MB / 471.7 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-05/0.4152, allocations: 36.08 kB / 471.7 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001679/0.4169, allocations: 2.118 MB / 473.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4169, allocations: 0 / 473.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.42, allocations: 2.102 MB / 475.9 MB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003271/0.4204, allocations: 247.1 kB / 476.2 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002065/0.4206, allocations: 28.08 kB / 476.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008575/0.4215, allocations: 71.89 kB / 476.3 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.4217, allocations: 100.8 kB / 476.4 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.575e-05/0.4218, allocations: 35.98 kB / 476.4 MB, free: 4.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.423, allocations: 0.9044 MB / 477.3 MB, free: 3.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.423, allocations: 0 / 477.3 MB, free: 3.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002615/0.4256, allocations: 1.121 MB / 478.4 MB, free: 2.418 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001939/0.4276, allocations: 0.8246 MB / 479.3 MB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004038/0.4316, allocations: 2.243 MB / 481.5 MB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4316, allocations: 1.938 kB / 481.5 MB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.4329, allocations: 0.6812 MB / 482.2 MB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/0.4359, allocations: 0.5999 MB / 482.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004312/0.4403, allocations: 3.306 MB / 486.1 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.4411, allocations: 1.256 MB / 487.3 MB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001785/0.4429, allocations: 0.5693 MB / 487.9 MB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.4432, allocations: 119.4 kB / 488 MB, free: 8.773 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4432, allocations: 0 / 488 MB, free: 8.773 MB / 398.1 MB Notification: Performance of Templates: time 0.05628/0.4995, allocations: 37.84 MB / 0.5135 GB, free: 3.152 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches