Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0027/0.002705, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.427/3.427, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001793/0.001793, allocations: 112 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006192/0.0006196, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5723/0.5729, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.03799/0.611, allocations: 15.28 MB / 389.8 MB, free: 33.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.6281, allocations: 5.463 MB / 395.3 MB, free: 28.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.6301, allocations: 31.75 kB / 395.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002491/0.6327, allocations: 290.5 kB / 395.6 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006391/0.6392, allocations: 0.849 MB / 396.4 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007692/0.6469, allocations: 1.246 MB / 397.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003742/0.6507, allocations: 1.083 MB / 398.8 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.6522, allocations: 413.4 kB / 399.2 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002539/0.6548, allocations: 0.5452 MB / 399.7 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.6568, allocations: 466.3 kB / 400.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004634/0.6573, allocations: 39.98 kB / 400.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004596/0.662, allocations: 1.01 MB / 401.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000842/0.6629, allocations: 207.4 kB / 401.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004849/0.6634, allocations: 165.3 kB / 401.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004392/0.6679, allocations: 1.209 MB / 402.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.6679, allocations: 0 / 402.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.668, allocations: 0 / 402.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.668, allocations: 4 kB / 402.8 MB, free: 20.54 MB / 298.7 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.004475/0.6725, allocations: 1.028 MB / 403.8 MB, free: 19.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.6726, allocations: 15.91 kB / 403.8 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008202/0.6734, allocations: 87.05 kB / 403.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.6754, allocations: 0.5326 MB / 404.5 MB, free: 18.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.938e-05/0.6756, allocations: 33 kB / 404.5 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.6758, allocations: 47.98 kB / 404.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.6785, allocations: 0.7333 MB / 405.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.737e-05/0.6787, allocations: 7.953 kB / 405.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.6788, allocations: 19.98 kB / 405.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.679, allocations: 44.97 kB / 405.3 MB, free: 17.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002903/0.6819, allocations: 0.6947 MB / 406 MB, free: 17.18 MB / 298.7 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.01027/0.6923, allocations: 3.05 MB / 409.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.6942, allocations: 497 kB / 409.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005179/0.6948, allocations: 341.3 kB / 409.9 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.132e-05/0.6949, allocations: 39 kB / 409.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 4.709e-06/0.6949, allocations: 4 kB / 409.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.01362/0.7086, allocations: 2.312 MB / 412.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.7087, allocations: 81.67 kB / 412.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.7103, allocations: 0.6133 MB / 412.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002371/0.7106, allocations: 45.69 kB / 413 MB, free: 9.805 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003775/0.711, allocations: 354.9 kB / 413.3 MB, free: 9.457 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.7114, allocations: 205 kB / 413.5 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.7116, allocations: 20 kB / 413.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7117, allocations: 342.8 kB / 413.9 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.713, allocations: 293.8 kB / 414.2 MB, free: 8.605 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.7145, allocations: 469.8 kB / 414.6 MB, free: 8.074 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.716, allocations: 347.1 kB / 415 MB, free: 7.738 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.7161, allocations: 0 / 415 MB, free: 7.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003779/0.7199, allocations: 0.9195 MB / 415.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006606/0.7206, allocations: 1.832 MB / 417.7 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.7207, allocations: 8 kB / 417.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006893/0.7276, allocations: 416.3 kB / 418.1 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.7294, allocations: 159.7 kB / 418.3 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.7313, allocations: 0.8216 MB / 419.1 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.733, allocations: 51.94 kB / 419.2 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.7332, allocations: 31.98 kB / 419.2 MB, free: 3.328 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.7332, allocations: 4 kB / 419.2 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003368/0.7366, allocations: 0.8122 MB / 420 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.7367, allocations: 4 kB / 420 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005422/0.7422, allocations: 289.1 kB / 420.3 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/0.7441, allocations: 159.7 kB / 420.5 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.7455, allocations: 0.7007 MB / 421.2 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.7469, allocations: 51.97 kB / 421.2 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.7471, allocations: 31.94 kB / 421.2 MB, free: 1.254 MB / 298.7 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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009672/0.7481, allocations: 318.3 kB / 421.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/0.7484, allocations: 79.11 kB / 421.6 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.7522, allocations: 0.8633 MB / 422.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.499e-05/0.7523, allocations: 8 kB / 422.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.7523, allocations: 4 kB / 422.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.4e-05/0.7523, allocations: 3.984 kB / 422.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008518/0.7609, allocations: 1.723 MB / 424.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.761, allocations: 4 kB / 424.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.7624, allocations: 107.9 kB / 424.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003791/0.7662, allocations: 353.3 kB / 424.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/0.7665, allocations: 15.98 kB / 424.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/0.7683, allocations: 0.815 MB / 425.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.7684, allocations: 0 / 425.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005137/0.7735, allocations: 1.31 MB / 426.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000553/0.7741, allocations: 156.2 kB / 427 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/0.7745, allocations: 12 kB / 427 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.7758, allocations: 39.97 kB / 427 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.7761, allocations: 52.48 kB / 427.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.7763, allocations: 28.09 kB / 427.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001353/0.7777, allocations: 447 kB / 427.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7777, allocations: 0 / 427.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003806/0.7815, allocations: 0.531 MB / 428.1 MB, free: 10.25 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002519/0.7841, allocations: 438.8 kB / 428.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006074/0.7903, allocations: 1.161 MB / 429.7 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.762e-05/0.7904, allocations: 0 / 429.7 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.7923, allocations: 387 kB / 430 MB, free: 8.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00405/0.7965, allocations: 335.5 kB / 430.4 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006552/0.8031, allocations: 1.904 MB / 432.3 MB, free: 6.012 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/0.8043, allocations: 0.9754 MB / 433.2 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006557/0.805, allocations: 67.42 kB / 433.3 MB, free: 4.941 MB / 314.7 MB Notification: Performance of SimCode: time 1.923e-06/0.805, allocations: 0 / 433.3 MB, free: 4.941 MB / 314.7 MB Notification: Performance of Templates: time 0.06044/0.8655, allocations: 17.34 MB / 450.7 MB, free: 3.578 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches