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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008151/0.0008152, allocations: 93 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009887/0.0009888, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 227.7 MB / 246.8 MB, free: 9.656 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000186/0.0001861, allocations: 4 kB / 307.8 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07323/0.07343, allocations: 51.53 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.155/0.2284, allocations: 22.07 MB / 381.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009976/0.2385, allocations: 10.31 MB / 391.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005917/0.2391, allocations: 35.47 kB / 391.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.2398, allocations: 349.4 kB / 392.1 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.2422, allocations: 1.347 MB / 393.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004325/0.2465, allocations: 2.201 MB / 395.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003415/0.25, allocations: 3.814 MB / 399.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007027/0.2507, allocations: 0.5651 MB / 400 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.2518, allocations: 0.8388 MB / 400.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.2529, allocations: 0.9738 MB / 401.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.253, allocations: 46.56 kB / 401.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002683/0.2557, allocations: 1.696 MB / 403.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.256, allocations: 325 kB / 403.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004509/0.2565, allocations: 0.5195 MB / 404.4 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.2587, allocations: 2.388 MB / 406.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2587, allocations: 1.906 kB / 406.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2587, allocations: 0 / 406.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.2587, allocations: 3.938 kB / 406.8 MB, free: 10.95 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.002195/0.2609, allocations: 1.319 MB / 408.1 MB, free: 9.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.261, allocations: 11.66 kB / 408.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.2611, allocations: 115.1 kB / 408.3 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003114/0.2614, allocations: 119.9 kB / 408.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008525/0.2623, allocations: 0.6739 MB / 409.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.2624, allocations: 52.5 kB / 409.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.951e-05/0.2625, allocations: 60.67 kB / 409.2 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.2639, allocations: 1.061 MB / 410.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.2639, allocations: 0 / 410.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.894e-05/0.264, allocations: 31.92 kB / 410.3 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.053e-05/0.2641, allocations: 69.27 kB / 410.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.2656, allocations: 1.036 MB / 411.4 MB, free: 7.242 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.005484/0.2711, allocations: 4.446 MB / 415.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008671/0.272, allocations: 0.5781 MB / 416.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004538/0.2725, allocations: 318 kB / 416.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002061/0.2745, allocations: 1.985 MB / 418.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2746, allocations: 42.89 kB / 418.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.392e-06/0.2746, allocations: 0 / 418.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00389/0.2785, allocations: 1.966 MB / 420.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.2786, allocations: 158.2 kB / 420.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.2796, allocations: 0.9312 MB / 421.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.2796, allocations: 37.7 kB / 421.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.28, allocations: 482.9 kB / 422.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.2801, allocations: 165.7 kB / 422.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.2802, allocations: 81.67 kB / 422.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2803, allocations: 338 kB / 422.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.2808, allocations: 325.8 kB / 423.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.2815, allocations: 0.6211 MB / 423.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.2825, allocations: 0.889 MB / 424.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2826, allocations: 4 kB / 424.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001624/0.2842, allocations: 1.128 MB / 425.8 MB, free: 7.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.2844, allocations: 353 kB / 426.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.2844, allocations: 8 kB / 426.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.2868, allocations: 393.2 kB / 426.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005812/0.2874, allocations: 179.7 kB / 426.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009696/0.2884, allocations: 1.344 MB / 428.1 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006451/0.289, allocations: 63.94 kB / 428.1 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.021e-05/0.2891, allocations: 47.92 kB / 428.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.489e-06/0.2891, allocations: 4 kB / 428.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00143/0.2906, allocations: 0.9832 MB / 429.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.2906, allocations: 8 kB / 429.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/0.2928, allocations: 357.5 kB / 429.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.2934, allocations: 187.7 kB / 429.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008836/0.2943, allocations: 1.308 MB / 431 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.2948, allocations: 55.97 kB / 431.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.423e-05/0.2949, allocations: 40 kB / 431.1 MB, free: 2.277 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.0003651/0.2953, allocations: 376.2 kB / 431.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.2954, allocations: 98.72 kB / 431.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.2969, allocations: 0.7849 MB / 432.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.2969, allocations: 7.938 kB / 432.4 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2969, allocations: 0 / 432.4 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2969, allocations: 3.984 kB / 432.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.2991, allocations: 1.591 MB / 434 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2991, allocations: 4 kB / 434 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003279/0.2994, allocations: 75.91 kB / 434 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.3008, allocations: 297.5 kB / 434.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.3008, allocations: 16 kB / 434.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008443/0.3017, allocations: 1.3 MB / 435.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3017, allocations: 4.188 kB / 435.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3031, allocations: 1.084 MB / 436.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.3033, allocations: 191.9 kB / 436.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.3034, allocations: 12 kB / 436.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.3039, allocations: 47.88 kB / 437 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.304, allocations: 44.38 kB / 437 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.3041, allocations: 23.98 kB / 437 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007438/0.3048, allocations: 0.652 MB / 437.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3048, allocations: 0 / 437.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001541/0.3064, allocations: 0.7496 MB / 438.4 MB, free: 10.73 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.002873/0.3093, allocations: 2.162 MB / 440.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.3114, allocations: 1.274 MB / 441.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.3114, allocations: 0 / 441.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005064/0.3119, allocations: 318.3 kB / 442.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.3137, allocations: 387.2 kB / 442.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.3247, allocations: 9.218 MB / 451.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.3252, allocations: 1.037 MB / 452.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.3263, allocations: 373.8 kB / 453.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.3267, allocations: 327.3 kB / 453.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3267, allocations: 0 / 453.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04732/0.374, allocations: 32.59 MB / 486.1 MB, free: 10.88 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.3742, allocations: 289 kB / 486.4 MB, free: 10.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/2.788, allocations: 0 / 486.4 MB, free: 10.5 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > 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