Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008495/0.0008498, allocations: 96.59 kB / 16.3 MB, free: 5.996 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.0008695/0.0008695, allocations: 182.3 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 6.516 kB / 300.7 MB, free: 6.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08635, allocations: 50.42 MB / 351.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02645/0.1128, allocations: 26.89 MB / 378 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.1304, allocations: 12.69 MB / 390.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.1322, allocations: 55.5 kB / 390.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.1339, allocations: 0.5052 MB / 391.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005357/0.1393, allocations: 1.764 MB / 393 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007626/0.147, allocations: 2.888 MB / 395.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003717/0.1507, allocations: 2.187 MB / 398.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.1523, allocations: 0.8243 MB / 398.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.1546, allocations: 1.172 MB / 400.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.1564, allocations: 0.9733 MB / 401.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003948/0.1568, allocations: 76 kB / 401.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.1612, allocations: 2.138 MB / 403.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007278/0.1619, allocations: 450.7 kB / 403.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005506/0.1625, allocations: 301 kB / 404 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004034/0.1665, allocations: 2.584 MB / 406.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1665, allocations: 0 / 406.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1665, allocations: 0 / 406.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.169e-05/0.1666, allocations: 4 kB / 406.6 MB, free: 4.285 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.004218/0.1708, allocations: 1.842 MB / 408.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1709, allocations: 8.031 kB / 408.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006799/0.1716, allocations: 166.2 kB / 408.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.1734, allocations: 0.9101 MB / 409.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.679e-05/0.1735, allocations: 77.98 kB / 409.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.1737, allocations: 99.88 kB / 409.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.1764, allocations: 1.625 MB / 411.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.698e-05/0.1765, allocations: 11.88 kB / 411.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.1766, allocations: 43.98 kB / 411.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/0.1768, allocations: 105.9 kB / 411.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.1794, allocations: 1.635 MB / 413.1 MB, free: 13.59 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.009426/0.1888, allocations: 6.73 MB / 419.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.1902, allocations: 0.9236 MB / 420.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003742/0.194, allocations: 2.856 MB / 423.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.194, allocations: 47.22 kB / 423.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.114e-06/0.194, allocations: 4 kB / 423.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.173/0.367, allocations: 3.707 MB / 427.4 MB, free: 26.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.3671, allocations: 191.2 kB / 427.6 MB, free: 26.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.3689, allocations: 1.293 MB / 428.9 MB, free: 26.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.369, allocations: 48.25 kB / 428.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.3694, allocations: 0.6484 MB / 429.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.3697, allocations: 325.2 kB / 429.9 MB, free: 25.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.3698, allocations: 28.19 kB / 429.9 MB, free: 25.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.3699, allocations: 367.3 kB / 430.3 MB, free: 25.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008832/0.3708, allocations: 0.5584 MB / 430.8 MB, free: 25.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.3719, allocations: 0.9775 MB / 431.8 MB, free: 24.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3729, allocations: 0.6751 MB / 432.5 MB, free: 24.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.373, allocations: 7 kB / 432.5 MB, free: 24.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003365/0.3763, allocations: 1.862 MB / 434.4 MB, free: 24.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007613/0.3771, allocations: 4.652 MB / 439 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.3771, allocations: 12.09 kB / 439 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00496/0.3821, allocations: 0.7779 MB / 439.8 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3833, allocations: 286.9 kB / 440.1 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.3849, allocations: 2.167 MB / 442.3 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.3862, allocations: 96.53 kB / 442.3 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.3863, allocations: 68.83 kB / 442.4 MB, free: 18.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.3864, allocations: 5.656 kB / 442.4 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002835/0.3892, allocations: 1.655 MB / 444.1 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.3892, allocations: 11.88 kB / 444.1 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004149/0.3934, allocations: 0.632 MB / 444.7 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.3946, allocations: 288.3 kB / 445 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.3959, allocations: 2.011 MB / 447 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.397, allocations: 102.4 kB / 447.1 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3972, allocations: 64.48 kB / 447.2 MB, free: 16.71 MB / 350.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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006996/0.3979, allocations: 475.1 kB / 447.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.3981, allocations: 143.1 kB / 447.8 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002584/0.4007, allocations: 1.526 MB / 449.3 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.4007, allocations: 14.41 kB / 449.3 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4007, allocations: 2.625 kB / 449.3 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4007, allocations: 5.672 kB / 449.3 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.4047, allocations: 2.82 MB / 452.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4047, allocations: 1.469 kB / 452.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006689/0.4054, allocations: 157.5 kB / 452.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002831/0.4082, allocations: 0.6419 MB / 452.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.4083, allocations: 27.05 kB / 453 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.4096, allocations: 2.11 MB / 455.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4096, allocations: 3.875 kB / 455.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.4124, allocations: 2.149 MB / 457.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/0.4128, allocations: 250.8 kB / 457.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/0.413, allocations: 23.97 kB / 457.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007968/0.4138, allocations: 76.75 kB / 457.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.4139, allocations: 96.62 kB / 457.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-05/0.414, allocations: 39.53 kB / 457.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001103/0.4151, allocations: 0.8945 MB / 458.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4152, allocations: 0 / 458.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002563/0.4177, allocations: 1.113 MB / 459.7 MB, free: 13.54 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.4194, allocations: 0.8226 MB / 460.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003862/0.4233, allocations: 2.244 MB / 462.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4233, allocations: 1.781 kB / 462.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.4245, allocations: 0.6759 MB / 463.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.4268, allocations: 0.5751 MB / 464 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.4304, allocations: 3.153 MB / 467.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006103/0.4311, allocations: 1.292 MB / 468.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.4327, allocations: 0.5719 MB / 469.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.433, allocations: 117.2 kB / 469.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4331, allocations: 0 / 469.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Templates: time 0.04992/0.483, allocations: 36.59 MB / 0.4939 GB, free: 6.527 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches