Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009009/0.0009009, allocations: 92.78 kB / 16.3 MB, free: 5.656 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.0008972/0.0008973, allocations: 181.7 kB / 17.19 MB, free: 5.59 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.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002947, allocations: 4 kB / 300.8 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09674, allocations: 50.41 MB / 351.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.0185/0.1153, allocations: 18.81 MB / 370 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1847/0.3001, allocations: 8.848 MB / 378.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.3012, allocations: 38.56 kB / 378.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009948/0.3022, allocations: 345.3 kB / 379.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003984/0.3062, allocations: 1.157 MB / 380.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007239/0.3135, allocations: 2.035 MB / 382.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003539/0.317, allocations: 1.42 MB / 383.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.3182, allocations: 0.5439 MB / 384.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.3201, allocations: 0.7813 MB / 385.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.3214, allocations: 0.6265 MB / 385.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.3215, allocations: 47.25 kB / 385.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004543/0.3261, allocations: 1.576 MB / 387.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005191/0.3266, allocations: 280.8 kB / 387.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005199/0.3272, allocations: 212.3 kB / 387.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003723/0.3309, allocations: 1.761 MB / 389.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3309, allocations: 0 / 389.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3309, allocations: 0 / 389.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.3309, allocations: 0 / 389.7 MB, free: 8.34 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.00283/0.3338, allocations: 1.321 MB / 391 MB, free: 7.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.3338, allocations: 9 kB / 391 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/0.334, allocations: 111.8 kB / 391.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003711/0.3344, allocations: 118 kB / 391.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3355, allocations: 0.6564 MB / 391.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.3356, allocations: 49.19 kB / 391.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.3357, allocations: 62.38 kB / 392 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.3374, allocations: 1.066 MB / 393.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.3374, allocations: 1.062 kB / 393.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-05/0.3375, allocations: 27.75 kB / 393.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-05/0.3376, allocations: 66.7 kB / 393.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.3391, allocations: 1.031 MB / 394.2 MB, free: 5.391 MB / 302.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.005956/0.345, allocations: 4.521 MB / 398.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008922/0.346, allocations: 0.5635 MB / 399.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002357/0.3483, allocations: 2.012 MB / 401.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.3484, allocations: 41.45 kB / 401.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.923e-06/0.3484, allocations: 0 / 401.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004319/0.3527, allocations: 1.951 MB / 403.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3528, allocations: 159.3 kB / 403.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.3541, allocations: 0.9256 MB / 404.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.983e-05/0.3542, allocations: 36.8 kB / 404.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004098/0.3546, allocations: 481.7 kB / 404.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3547, allocations: 173.1 kB / 405 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.3548, allocations: 19.31 kB / 405.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3549, allocations: 338.5 kB / 405.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004938/0.3554, allocations: 314.5 kB / 405.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007258/0.3562, allocations: 0.6133 MB / 406.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.3568, allocations: 405.3 kB / 406.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.3568, allocations: 6.641 kB / 406.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001847/0.3587, allocations: 1.086 MB / 407.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001522/0.3602, allocations: 3.495 MB / 411.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.3603, allocations: 12 kB / 411.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002609/0.3629, allocations: 385.2 kB / 411.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/0.3636, allocations: 171.7 kB / 411.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.3648, allocations: 1.343 MB / 413.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.3658, allocations: 55.97 kB / 413.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.597e-05/0.3659, allocations: 48.11 kB / 413.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.3659, allocations: 4 kB / 413.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001622/0.3676, allocations: 0.9678 MB / 414.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.3676, allocations: 8 kB / 414.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002314/0.3699, allocations: 356.5 kB / 414.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000671/0.3706, allocations: 179.7 kB / 414.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009986/0.3716, allocations: 1.312 MB / 416.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008558/0.3725, allocations: 60.03 kB / 416.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.793e-05/0.3726, allocations: 36 kB / 416.2 MB, free: 1.949 MB / 318.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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006081/0.3732, allocations: 365.7 kB / 416.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.3734, allocations: 98.83 kB / 416.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.375, allocations: 0.7977 MB / 417.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.375, allocations: 11.94 kB / 417.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.375, allocations: 4 kB / 417.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3751, allocations: 4 kB / 417.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.3777, allocations: 1.596 MB / 419.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3777, allocations: 64 / 419.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003669/0.3781, allocations: 79.89 kB / 419.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.3796, allocations: 304.7 kB / 419.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.3796, allocations: 15.95 kB / 419.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009563/0.3806, allocations: 1.303 MB / 420.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3806, allocations: 0 / 420.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.3823, allocations: 1.108 MB / 421.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/0.3827, allocations: 191.9 kB / 422.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.3828, allocations: 15.95 kB / 422.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.3834, allocations: 43.91 kB / 422.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.3835, allocations: 48.44 kB / 422.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.3835, allocations: 27.97 kB / 422.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008327/0.3844, allocations: 0.6403 MB / 422.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3844, allocations: 3.938 kB / 422.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00203/0.3864, allocations: 0.7457 MB / 423.6 MB, free: 10.37 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003058/0.3895, allocations: 2.292 MB / 425.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.3917, allocations: 1.23 MB / 427.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.3918, allocations: 4.375 kB / 427.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.3923, allocations: 302.3 kB / 427.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.3941, allocations: 374 kB / 427.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006818/0.4009, allocations: 8.833 MB / 436.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006619/0.4017, allocations: 1.061 MB / 437.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001353/0.403, allocations: 367.4 kB / 438 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000474/0.4035, allocations: 331.3 kB / 438.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4035, allocations: 0 / 438.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05448/0.458, allocations: 32.04 MB / 470.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.4582, allocations: 278.2 kB / 470.7 MB, free: 11.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.603/3.062, allocations: 0 / 470.7 MB, free: 11.37 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat