Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00153/0.00153, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247.5 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 67.92 kB / 307.7 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1091, allocations: 50.52 MB / 358.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.1988/0.308, allocations: 21.92 MB / 380.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.3206, allocations: 10.01 MB / 390.1 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.3221, allocations: 28.62 kB / 390.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.3234, allocations: 400.9 kB / 390.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004249/0.3276, allocations: 1.435 MB / 392 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006975/0.3346, allocations: 2.627 MB / 394.6 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003584/0.3382, allocations: 2.571 MB / 397.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.3396, allocations: 0.6616 MB / 397.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00234/0.3419, allocations: 0.9841 MB / 398.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.3438, allocations: 0.971 MB / 399.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002396/0.344, allocations: 93.53 kB / 399.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004268/0.3483, allocations: 1.749 MB / 401.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005808/0.3489, allocations: 365 kB / 402 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000937/0.3499, allocations: 0.5283 MB / 402.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005337/0.3552, allocations: 2.494 MB / 405 MB, free: 11.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3553, allocations: 0 / 405 MB, free: 11.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3553, allocations: 0 / 405 MB, free: 11.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.087e-05/0.3553, allocations: 0 / 405 MB, free: 11.21 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003451/0.3588, allocations: 1.5 MB / 406.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.3588, allocations: 10.81 kB / 406.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.3592, allocations: 123.4 kB / 406.6 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.3604, allocations: 0.6796 MB / 407.3 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.3604, allocations: 52.42 kB / 407.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.3605, allocations: 68.09 kB / 407.4 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.3623, allocations: 1.058 MB / 408.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.3623, allocations: 5.312 kB / 408.5 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.965e-05/0.3624, allocations: 28.08 kB / 408.5 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.825e-05/0.3625, allocations: 70.27 kB / 408.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3643, allocations: 1.038 MB / 409.6 MB, free: 8.008 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.007337/0.3716, allocations: 4.436 MB / 414 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.3727, allocations: 0.5714 MB / 414.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/0.3733, allocations: 322 kB / 414.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002922/0.3762, allocations: 1.977 MB / 416.9 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.3763, allocations: 42.89 kB / 417 MB, free: 168 kB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.535e-06/0.3763, allocations: 0 / 417 MB, free: 168 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004901/0.3812, allocations: 1.948 MB / 418.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.3813, allocations: 170.2 kB / 419.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.3827, allocations: 0.9235 MB / 420 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.286e-05/0.3828, allocations: 37.7 kB / 420 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.3832, allocations: 494.8 kB / 420.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3834, allocations: 165.7 kB / 420.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/0.3837, allocations: 178.5 kB / 420.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3839, allocations: 341.9 kB / 421.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000615/0.3845, allocations: 340.6 kB / 421.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008709/0.3854, allocations: 0.6251 MB / 422.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.3867, allocations: 0.8851 MB / 423 MB, free: 9.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3868, allocations: 4 kB / 423 MB, free: 9.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002143/0.3889, allocations: 1.125 MB / 424.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.389, allocations: 14.75 kB / 424.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.389, allocations: 8 kB / 424.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/0.3915, allocations: 381.2 kB / 424.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/0.3922, allocations: 179.7 kB / 424.7 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.3937, allocations: 1.343 MB / 426.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008711/0.3945, allocations: 44.09 kB / 426.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.978e-05/0.3946, allocations: 43.98 kB / 426.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009222/0.3956, allocations: 0.5175 MB / 426.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008847/0.3965, allocations: 0.6189 MB / 427.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001303/0.3978, allocations: 0.8753 MB / 428.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.132e-06/0.3978, allocations: 4 kB / 428.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.00202/0.3998, allocations: 1.097 MB / 429.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3998, allocations: 12 kB / 429.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3999, allocations: 9.562 kB / 429.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/0.4021, allocations: 337.8 kB / 429.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006583/0.4028, allocations: 183.7 kB / 429.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.4042, allocations: 1.312 MB / 431.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008139/0.405, allocations: 43.97 kB / 431.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.094e-05/0.4051, allocations: 47.92 kB / 431.2 MB, free: 1.066 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000359/0.4055, allocations: 244.1 kB / 431.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.4057, allocations: 90.88 kB / 431.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.4075, allocations: 0.7928 MB / 432.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.4075, allocations: 4 kB / 432.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4075, allocations: 0 / 432.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4076, allocations: 3.984 kB / 432.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.4104, allocations: 1.595 MB / 433.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4104, allocations: 0 / 433.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.4108, allocations: 73.47 kB / 434 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.4123, allocations: 265.5 kB / 434.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.4124, allocations: 19.98 kB / 434.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.4137, allocations: 1.308 MB / 435.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4137, allocations: 0 / 435.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.4157, allocations: 1.087 MB / 436.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.4161, allocations: 168 kB / 436.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/0.4163, allocations: 16 kB / 436.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.4169, allocations: 23.98 kB / 436.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4171, allocations: 44.44 kB / 436.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.591e-05/0.4171, allocations: 23.98 kB / 436.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001039/0.4182, allocations: 0.652 MB / 437.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4182, allocations: 0 / 437.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002281/0.4205, allocations: 0.7574 MB / 438.3 MB, free: 9.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001841/0.4223, allocations: 0.621 MB / 439 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.4255, allocations: 1.353 MB / 440.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.4255, allocations: 0 / 440.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/0.4262, allocations: 330.3 kB / 440.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.4284, allocations: 409.9 kB / 441 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.4317, allocations: 1.79 MB / 442.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008143/0.4326, allocations: 1.026 MB / 443.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.4329, allocations: 83.42 kB / 443.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4329, allocations: 4 kB / 443.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of Templates: time 0.03935/0.4723, allocations: 26.4 MB / 470.3 MB, free: 9.738 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches