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.001566/0.001566, allocations: 117.7 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 202.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.462/2.462, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 63.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4924/0.4949, allocations: 50.53 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.0351/0.5301, allocations: 21.93 MB / 431.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02382/0.554, allocations: 10 MB / 441.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.5561, allocations: 35.81 kB / 441.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.5583, allocations: 389.5 kB / 442.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006774/0.5651, allocations: 1.438 MB / 443.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01214/0.5773, allocations: 2.617 MB / 446.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006861/0.5842, allocations: 2.572 MB / 448.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.5861, allocations: 0.6639 MB / 449.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003456/0.5896, allocations: 1.001 MB / 450.6 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.5926, allocations: 0.9811 MB / 451.5 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000466/0.5931, allocations: 95.94 kB / 451.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007143/0.6002, allocations: 1.732 MB / 453.4 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.6015, allocations: 367 kB / 453.7 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001391/0.6029, allocations: 0.5327 MB / 454.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008403/0.6114, allocations: 2.47 MB / 456.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.6114, allocations: 0 / 456.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6115, allocations: 0 / 456.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.873e-05/0.6115, allocations: 0 / 456.7 MB, free: 2.625 MB / 366.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.005656/0.6172, allocations: 1.507 MB / 458.2 MB, free: 1.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.839e-05/0.6173, allocations: 12.03 kB / 458.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006595/0.6179, allocations: 118.7 kB / 458.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.62, allocations: 0.7138 MB / 459.1 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.973e-05/0.6201, allocations: 49.3 kB / 459.1 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.6203, allocations: 63.98 kB / 459.2 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.623, allocations: 1.064 MB / 460.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.6231, allocations: 4 kB / 460.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.6232, allocations: 35.91 kB / 460.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001503/0.6234, allocations: 65.27 kB / 460.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/0.6258, allocations: 1.032 MB / 461.4 MB, free: 13.82 MB / 382.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.01001/0.6359, allocations: 4.438 MB / 465.8 MB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.6373, allocations: 0.5621 MB / 466.4 MB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006458/0.638, allocations: 322 kB / 466.7 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004524/0.6426, allocations: 1.973 MB / 468.7 MB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.284e-05/0.6427, allocations: 42.89 kB / 468.7 MB, free: 5.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 3.847e-06/0.6427, allocations: 0 / 468.7 MB, free: 5.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.006654/0.6493, allocations: 1.962 MB / 470.7 MB, free: 3.934 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.6495, allocations: 158.2 kB / 470.8 MB, free: 3.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/0.6524, allocations: 0.9235 MB / 471.8 MB, free: 2.793 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.6526, allocations: 45.64 kB / 471.8 MB, free: 2.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005093/0.6531, allocations: 486.8 kB / 472.3 MB, free: 2.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.6534, allocations: 161.7 kB / 472.4 MB, free: 2.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004301/0.6538, allocations: 186.5 kB / 472.6 MB, free: 1.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.654, allocations: 342 kB / 473 MB, free: 1.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.6549, allocations: 336.7 kB / 473.3 MB, free: 1.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.6562, allocations: 0.6212 MB / 473.9 MB, free: 488 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/0.6584, allocations: 0.8813 MB / 474.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.6584, allocations: 7.984 kB / 474.8 MB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003084/0.6615, allocations: 1.128 MB / 475.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.6616, allocations: 11.94 kB / 475.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/0.6616, allocations: 12 kB / 475.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003474/0.6651, allocations: 373.6 kB / 476.3 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6663, allocations: 179.7 kB / 476.5 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.6682, allocations: 1.347 MB / 477.8 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.6695, allocations: 36.03 kB / 477.9 MB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/0.6696, allocations: 51.97 kB / 477.9 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001487/0.6711, allocations: 0.5174 MB / 478.4 MB, free: 11.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001123/0.6723, allocations: 0.6306 MB / 479.1 MB, free: 10.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001747/0.674, allocations: 0.8714 MB / 479.9 MB, free: 9.977 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.092e-05/0.6741, allocations: 4 kB / 479.9 MB, free: 9.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.002863/0.677, allocations: 1.093 MB / 481 MB, free: 8.863 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.677, allocations: 8 kB / 481 MB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.677, allocations: 11.94 kB / 481 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002899/0.6799, allocations: 337.9 kB / 481.4 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.681, allocations: 183.7 kB / 481.6 MB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.6826, allocations: 1.315 MB / 482.9 MB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.6838, allocations: 39.98 kB / 482.9 MB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.684, allocations: 47.98 kB / 483 MB, free: 6.875 MB / 398.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.0004103/0.6844, allocations: 252.3 kB / 483.2 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.6846, allocations: 94.88 kB / 483.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/0.6869, allocations: 0.7848 MB / 484.1 MB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.687, allocations: 8.234 kB / 484.1 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.687, allocations: 0 / 484.1 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.687, allocations: 7.984 kB / 484.1 MB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.6911, allocations: 1.583 MB / 485.7 MB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6912, allocations: 4 kB / 485.7 MB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006608/0.6918, allocations: 71.91 kB / 485.8 MB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/0.6942, allocations: 273.5 kB / 486 MB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.6943, allocations: 12 kB / 486 MB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.6962, allocations: 1.315 MB / 487.4 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.6962, allocations: 0 / 487.4 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/0.6988, allocations: 1.081 MB / 488.4 MB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000497/0.6994, allocations: 172 kB / 488.6 MB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.6996, allocations: 23.97 kB / 488.6 MB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008378/0.7005, allocations: 23.98 kB / 488.6 MB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.7007, allocations: 48.36 kB / 488.7 MB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.783e-05/0.7008, allocations: 23.98 kB / 488.7 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001397/0.7022, allocations: 0.6442 MB / 489.4 MB, free: 284 kB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7022, allocations: 0 / 489.4 MB, free: 284 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003944/0.7062, allocations: 0.7535 MB / 490.1 MB, free: 15.52 MB / 414.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.002884/0.7091, allocations: 0.618 MB / 490.7 MB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00429/0.7134, allocations: 1.271 MB / 492 MB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.629e-05/0.7135, allocations: 4 kB / 492 MB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.7145, allocations: 334.7 kB / 492.3 MB, free: 13.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002983/0.7175, allocations: 409.2 kB / 492.7 MB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004237/0.7218, allocations: 1.76 MB / 494.5 MB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007807/0.7226, allocations: 1.033 MB / 495.5 MB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000513/0.7232, allocations: 83.42 kB / 495.6 MB, free: 9.965 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7232, allocations: 4 kB / 495.6 MB, free: 9.961 MB / 414.1 MB Notification: Performance of Templates: time 0.05713/0.7803, allocations: 26.68 MB / 0.51 GB, free: 15.37 MB / 446.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.0.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