Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001065, allocations: 94 kB / 17.3 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 180.2 kB / 18.21 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006553/0.0006554, allocations: 12 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1207, allocations: 47.59 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01839/0.1392, allocations: 17.77 MB / 346.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009258/0.1485, allocations: 6.231 MB / 353 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009222/0.1494, allocations: 31.75 kB / 353 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008675/0.1503, allocations: 286.4 kB / 353.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002481/0.1528, allocations: 0.9762 MB / 354.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003877/0.1567, allocations: 1.357 MB / 355.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003434/0.1601, allocations: 3.053 MB / 358.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00065/0.1608, allocations: 425.5 kB / 359.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009865/0.1618, allocations: 0.6226 MB / 359.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009458/0.1627, allocations: 0.7356 MB / 360.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.721e-05/0.1628, allocations: 32 kB / 360.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002116/0.165, allocations: 1.096 MB / 361.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.1652, allocations: 227.3 kB / 361.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004038/0.1656, allocations: 395.8 kB / 362.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.1676, allocations: 1.624 MB / 363.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.1677, allocations: 0 / 363.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1677, allocations: 0 / 363.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1677, allocations: 0 / 363.8 MB, free: 0.7891 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.001978/0.1697, allocations: 1.036 MB / 364.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1697, allocations: 8.031 kB / 364.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.17, allocations: 88.08 kB / 364.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007626/0.1708, allocations: 0.5555 MB / 365.5 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.1708, allocations: 40.98 kB / 365.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.1709, allocations: 43.98 kB / 365.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.172, allocations: 0.7411 MB / 366.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.1721, allocations: 0 / 366.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.72e-05/0.1722, allocations: 19.98 kB / 366.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-05/0.1722, allocations: 44.97 kB / 366.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.1733, allocations: 0.6986 MB / 367.1 MB, free: 13.4 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.004195/0.1775, allocations: 3.054 MB / 370.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007302/0.1783, allocations: 488.9 kB / 370.6 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003815/0.1787, allocations: 266 kB / 370.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002591/0.179, allocations: 344.8 kB / 371.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.179, allocations: 35 kB / 371.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.773e-06/0.179, allocations: 0 / 371.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005168/0.1842, allocations: 2.331 MB / 373.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.1842, allocations: 81.67 kB / 373.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007436/0.185, allocations: 0.625 MB / 374.3 MB, free: 5.789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.529e-05/0.1851, allocations: 37.7 kB / 374.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/0.1853, allocations: 332.4 kB / 374.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.1855, allocations: 205.1 kB / 374.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.1856, allocations: 65.69 kB / 374.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1857, allocations: 382.8 kB / 375.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004762/0.1862, allocations: 301.8 kB / 375.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005876/0.1868, allocations: 481.3 kB / 376 MB, free: 3.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.1878, allocations: 0.7483 MB / 376.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1878, allocations: 3.938 kB / 376.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001482/0.1893, allocations: 0.9695 MB / 377.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.1895, allocations: 225.2 kB / 378 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1895, allocations: 4 kB / 378 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.1922, allocations: 432.3 kB / 378.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.1928, allocations: 147.8 kB / 378.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008593/0.1936, allocations: 0.8332 MB / 379.4 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.1942, allocations: 43.97 kB / 379.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.923e-05/0.1942, allocations: 31.98 kB / 379.4 MB, free: 340 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.1943, allocations: 8.062 kB / 379.5 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1969/0.3912, allocations: 0.8099 MB / 380.3 MB, free: 29.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.3913, allocations: 6.844 kB / 380.3 MB, free: 29.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/0.3935, allocations: 288.9 kB / 380.6 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006202/0.3942, allocations: 156.7 kB / 380.7 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005711/0.3947, allocations: 0.7153 MB / 381.4 MB, free: 29.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005795/0.3953, allocations: 46.55 kB / 381.5 MB, free: 29.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.3954, allocations: 33.89 kB / 381.5 MB, free: 29.41 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.0004594/0.3959, allocations: 324.8 kB / 381.8 MB, free: 29.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.396, allocations: 70.97 kB / 381.9 MB, free: 29.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/0.3978, allocations: 0.866 MB / 382.8 MB, free: 29.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-06/0.3978, allocations: 6.469 kB / 382.8 MB, free: 29.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3978, allocations: 3.625 kB / 382.8 MB, free: 29.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.3978, allocations: 5.25 kB / 382.8 MB, free: 29.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002704/0.4005, allocations: 1.725 MB / 384.5 MB, free: 28.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4006, allocations: 0 / 384.5 MB, free: 28.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.4011, allocations: 109.5 kB / 384.6 MB, free: 28.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.4027, allocations: 354.5 kB / 384.9 MB, free: 28.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.4028, allocations: 15.48 kB / 385 MB, free: 28.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007274/0.4035, allocations: 0.8087 MB / 385.8 MB, free: 28.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4035, allocations: 1.406 kB / 385.8 MB, free: 28.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.4056, allocations: 1.296 MB / 387.1 MB, free: 28.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.4058, allocations: 158.4 kB / 387.2 MB, free: 28.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.4059, allocations: 17.22 kB / 387.2 MB, free: 28.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004656/0.4064, allocations: 41.84 kB / 387.3 MB, free: 28.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4066, allocations: 50.89 kB / 387.3 MB, free: 28.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/0.4066, allocations: 28.7 kB / 387.4 MB, free: 28.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006067/0.4072, allocations: 442.6 kB / 387.8 MB, free: 27.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4072, allocations: 0 / 387.8 MB, free: 27.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001616/0.4089, allocations: 0.5283 MB / 388.3 MB, free: 27.93 MB / 318.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.0009781/0.4099, allocations: 449.3 kB / 388.8 MB, free: 27.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.4122, allocations: 1.17 MB / 389.9 MB, free: 27.83 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4122, allocations: 1.312 kB / 389.9 MB, free: 27.83 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007707/0.413, allocations: 398.8 kB / 390.3 MB, free: 27.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/0.4148, allocations: 343.3 kB / 390.7 MB, free: 27.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.4175, allocations: 1.948 MB / 392.6 MB, free: 26.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004634/0.418, allocations: 0.973 MB / 393.6 MB, free: 26.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000974/0.419, allocations: 288 kB / 393.9 MB, free: 26.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.4192, allocations: 59.2 kB / 393.9 MB, free: 26.08 MB / 318.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4192, allocations: 0 / 393.9 MB, free: 26.08 MB / 318.1 MB Notification: Performance of Templates: time 0.02563/0.4448, allocations: 19.24 MB / 413.2 MB, free: 14.17 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches