Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008053/0.0008055, allocations: 93.45 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.0009431/0.000943, allocations: 205.2 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.191/1.191, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000185/0.0001851, allocations: 8 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07434/0.07454, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1535/0.2281, allocations: 20.76 MB / 380.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007904/0.236, allocations: 7.283 MB / 387.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005363/0.2366, allocations: 37.19 kB / 387.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000701/0.2373, allocations: 318.1 kB / 387.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.2392, allocations: 1.032 MB / 388.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003274/0.2425, allocations: 1.566 MB / 390.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002672/0.2452, allocations: 3.136 MB / 393.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005811/0.2458, allocations: 0.5061 MB / 394 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009208/0.2467, allocations: 0.707 MB / 394.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007999/0.2475, allocations: 0.7597 MB / 395.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.2476, allocations: 39.41 kB / 395.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.2496, allocations: 1.245 MB / 396.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.2498, allocations: 255.2 kB / 397 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003466/0.2502, allocations: 444.7 kB / 397.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001625/0.2518, allocations: 1.852 MB / 399.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2518, allocations: 0 / 399.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2518, allocations: 4.969 kB / 399.3 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.2519, allocations: 0 / 399.3 MB, free: 0.5352 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.001806/0.2537, allocations: 1.115 MB / 400.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2537, allocations: 9.281 kB / 400.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.2538, allocations: 105.8 kB / 400.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.2542, allocations: 103.8 kB / 400.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007502/0.2549, allocations: 0.5902 MB / 401.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.255, allocations: 49.91 kB / 401.3 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.851e-05/0.2551, allocations: 52.31 kB / 401.3 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2563, allocations: 0.89 MB / 402.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2564, allocations: 9.312 kB / 402.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.481e-05/0.2564, allocations: 27.42 kB / 402.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.677e-05/0.2565, allocations: 49.72 kB / 402.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2577, allocations: 0.8099 MB / 403.1 MB, free: 13.95 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.004174/0.2618, allocations: 3.824 MB / 406.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.2626, allocations: 0.5428 MB / 407.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.263, allocations: 280.6 kB / 407.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003138/0.2633, allocations: 0.502 MB / 408.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.2634, allocations: 42.39 kB / 408.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 1.633e-06/0.2634, allocations: 0 / 408.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.003884/0.2673, allocations: 2.128 MB / 410.4 MB, free: 7.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.2673, allocations: 137 kB / 410.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007719/0.2681, allocations: 0.7269 MB / 411.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.2682, allocations: 45.69 kB / 411.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.2684, allocations: 380 kB / 411.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.2686, allocations: 185.4 kB / 411.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.054e-05/0.2687, allocations: 69.61 kB / 411.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2688, allocations: 386.8 kB / 412.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.2693, allocations: 305.8 kB / 412.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005634/0.2698, allocations: 0.5109 MB / 413.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009475/0.2708, allocations: 0.7778 MB / 413.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2708, allocations: 4 kB / 413.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001423/0.2722, allocations: 0.9919 MB / 414.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.2724, allocations: 264.8 kB / 415.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2724, allocations: 4 kB / 415.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.274, allocations: 305.4 kB / 415.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/0.2745, allocations: 151.7 kB / 415.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009011/0.2754, allocations: 1.3 MB / 416.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.2759, allocations: 56.03 kB / 417 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.389e-05/0.276, allocations: 36.61 kB / 417 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/0.276, allocations: 4 kB / 417 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001275/0.2773, allocations: 0.8427 MB / 417.8 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2773, allocations: 4 kB / 417.8 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.2784, allocations: 201.5 kB / 418 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.279, allocations: 171.7 kB / 418.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006611/0.2797, allocations: 1.183 MB / 419.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000453/0.2801, allocations: 55.81 kB / 419.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.203e-05/0.2802, allocations: 31.98 kB / 419.5 MB, free: 14.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (85): * Single equations (assignments): 83 * 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,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003124/0.2805, allocations: 335.1 kB / 419.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.2806, allocations: 79.06 kB / 419.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.2822, allocations: 0.9887 MB / 420.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.2822, allocations: 8 kB / 420.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2823, allocations: 0 / 420.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.2823, allocations: 3.984 kB / 420.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.2846, allocations: 1.751 MB / 422.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2846, allocations: 0 / 422.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.285, allocations: 107.8 kB / 422.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009697/0.286, allocations: 253.6 kB / 423 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.2861, allocations: 19.98 kB / 423 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007777/0.2868, allocations: 1.272 MB / 424.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2869, allocations: 4.172 kB / 424.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.2885, allocations: 1.32 MB / 425.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.2887, allocations: 168 kB / 425.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.2888, allocations: 16 kB / 425.8 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.2893, allocations: 39.97 kB / 425.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2894, allocations: 52.55 kB / 425.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-05/0.2894, allocations: 35.97 kB / 425.9 MB, free: 7.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005382/0.29, allocations: 0.5068 MB / 426.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.29, allocations: 0 / 426.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001332/0.2913, allocations: 0.5974 MB / 427 MB, free: 6.594 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002954/0.2943, allocations: 2.257 MB / 429.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.2962, allocations: 1.216 MB / 430.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2962, allocations: 0 / 430.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.2968, allocations: 395.3 kB / 430.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.2987, allocations: 399.2 kB / 431.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009468/0.3081, allocations: 8.019 MB / 439.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.3086, allocations: 0.9953 MB / 440.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009281/0.3096, allocations: 320.5 kB / 440.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.3099, allocations: 295.3 kB / 440.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3099, allocations: 0 / 440.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04317/0.3531, allocations: 29.44 MB / 470.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002419/0.3534, allocations: 288.9 kB / 470.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.367/2.721, allocations: 0 / 470.6 MB, free: 10.87 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches