Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009228/0.0009229, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009354/0.0009356, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.364/1.364, allocations: 223.2 MB / 241.1 MB, free: 5.398 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003111, allocations: 6 kB / 300.8 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1068, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01735/0.1242, allocations: 17.74 MB / 369 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008555/0.1328, allocations: 6.279 MB / 375.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007294/0.1335, allocations: 31.69 kB / 375.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008306/0.1344, allocations: 322.3 kB / 375.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002176/0.1366, allocations: 0.8958 MB / 376.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003389/0.14, allocations: 1.429 MB / 377.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.1416, allocations: 1.207 MB / 379.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006422/0.1423, allocations: 478 kB / 379.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009759/0.1432, allocations: 0.6465 MB / 380.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000627/0.1439, allocations: 0.4982 MB / 380.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.253e-05/0.144, allocations: 40 kB / 380.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.1461, allocations: 1.112 MB / 381.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.1464, allocations: 227.4 kB / 382.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.1467, allocations: 185.3 kB / 382.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.1485, allocations: 1.345 MB / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1485, allocations: 0 / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1485, allocations: 0 / 383.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1485, allocations: 0 / 383.6 MB, free: 11.12 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002066/0.1506, allocations: 1.13 MB / 384.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1506, allocations: 8.031 kB / 384.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.1508, allocations: 102.5 kB / 384.9 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003452/0.1511, allocations: 107 kB / 385 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009296/0.1521, allocations: 0.5701 MB / 385.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.1521, allocations: 49.3 kB / 385.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.234e-05/0.1522, allocations: 52 kB / 385.6 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.1535, allocations: 0.8751 MB / 386.5 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.1535, allocations: 7.844 kB / 386.5 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-05/0.1536, allocations: 24 kB / 386.6 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.358e-05/0.1537, allocations: 41.3 kB / 386.6 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1549, allocations: 0.8014 MB / 387.4 MB, free: 7.203 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.005111/0.16, allocations: 3.862 MB / 391.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000847/0.1609, allocations: 0.5441 MB / 391.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003625/0.1613, allocations: 0.4952 MB / 392.3 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.1613, allocations: 46.94 kB / 392.3 MB, free: 1.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.474e-06/0.1613, allocations: 4 kB / 392.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.00442/0.1657, allocations: 2.117 MB / 394.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.1659, allocations: 137 kB / 394.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009527/0.1668, allocations: 0.723 MB / 395.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.492e-05/0.1669, allocations: 41.69 kB / 395.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.1672, allocations: 379.9 kB / 395.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.1673, allocations: 181.4 kB / 395.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.1674, allocations: 16 kB / 395.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1676, allocations: 394.7 kB / 396.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/0.168, allocations: 293.8 kB / 396.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.1686, allocations: 0.5031 MB / 397.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005303/0.1692, allocations: 357.9 kB / 397.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1692, allocations: 4 kB / 397.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001657/0.1708, allocations: 0.9763 MB / 398.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008938/0.1717, allocations: 2.27 MB / 400.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.1718, allocations: 4 kB / 400.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.1735, allocations: 309.3 kB / 401 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006067/0.1741, allocations: 143.8 kB / 401.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.1752, allocations: 1.3 MB / 402.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006656/0.1758, allocations: 52.09 kB / 402.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.121e-05/0.1759, allocations: 32 kB / 402.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.1759, allocations: 7.953 kB / 402.5 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001388/0.1773, allocations: 0.8349 MB / 403.4 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1774, allocations: 12.06 kB / 403.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.1784, allocations: 185.5 kB / 403.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000678/0.1791, allocations: 167.8 kB / 403.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008707/0.18, allocations: 1.198 MB / 404.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007226/0.1807, allocations: 55.81 kB / 405 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/0.1808, allocations: 31.98 kB / 405 MB, free: 4.652 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 ($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 (85): * Single equations (assignments): 83 * 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 2,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005653/0.1814, allocations: 335.1 kB / 405.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.1815, allocations: 79.06 kB / 405.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.1834, allocations: 0.9775 MB / 406.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.1834, allocations: 11.98 kB / 406.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1834, allocations: 0 / 406.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1834, allocations: 0 / 406.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.1862, allocations: 1.763 MB / 408.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.1862, allocations: 0 / 408.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/0.1866, allocations: 103.8 kB / 408.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.1877, allocations: 249.6 kB / 408.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.1878, allocations: 20 kB / 408.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009002/0.1887, allocations: 1.272 MB / 409.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1887, allocations: 4.031 kB / 409.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.1905, allocations: 1.341 MB / 411.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.1908, allocations: 172 kB / 411.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.1909, allocations: 16 kB / 411.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004828/0.1914, allocations: 40.03 kB / 411.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.1915, allocations: 64.42 kB / 411.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.852e-05/0.1916, allocations: 27.98 kB / 411.5 MB, free: 14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006204/0.1922, allocations: 0.5029 MB / 412 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1922, allocations: 0 / 412 MB, free: 13.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001606/0.1939, allocations: 0.5896 MB / 412.6 MB, free: 12.91 MB / 350.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 (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 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003301/0.1972, allocations: 2.486 MB / 415 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.1994, allocations: 1.192 MB / 416.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.1995, allocations: 8.062 kB / 416.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006255/0.2001, allocations: 391 kB / 416.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/0.2019, allocations: 389.9 kB / 417 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.2067, allocations: 6.401 MB / 423.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.2072, allocations: 1.007 MB / 424.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.2083, allocations: 318.5 kB / 424.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000394/0.2087, allocations: 295 kB / 425 MB, free: 236 kB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2087, allocations: 0 / 425 MB, free: 236 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.207/0.4157, allocations: 28.64 MB / 453.7 MB, free: 50.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.4159, allocations: 269.3 kB / 453.9 MB, free: 50.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/2.908, allocations: 0 / 453.9 MB, free: 50.13 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat