Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 96.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.000297, allocations: 8 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1113, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2359/0.3472, allocations: 26.94 MB / 385.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.3664, allocations: 12.72 MB / 397.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002451/0.3689, allocations: 55.97 kB / 397.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.3705, allocations: 0.5061 MB / 398.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00593/0.3764, allocations: 1.771 MB / 400.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008983/0.3854, allocations: 2.856 MB / 403 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005048/0.3905, allocations: 2.195 MB / 405.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.392, allocations: 0.8307 MB / 406.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002745/0.3948, allocations: 1.169 MB / 407.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001737/0.3966, allocations: 0.9766 MB / 408.2 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.3968, allocations: 73.56 kB / 408.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007269/0.4041, allocations: 2.154 MB / 410.4 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007544/0.4048, allocations: 449 kB / 410.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006274/0.4055, allocations: 300.7 kB / 411.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004427/0.4099, allocations: 2.61 MB / 413.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.4099, allocations: 0 / 413.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4099, allocations: 0 / 413.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.41, allocations: 0 / 413.8 MB, free: 4.594 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003875/0.4138, allocations: 1.842 MB / 415.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4139, allocations: 12.03 kB / 415.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002375/0.4141, allocations: 156.3 kB / 415.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004832/0.4146, allocations: 170.2 kB / 416 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.4162, allocations: 0.9177 MB / 416.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.477e-05/0.4163, allocations: 77.97 kB / 416.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.4165, allocations: 99.97 kB / 417 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/0.4188, allocations: 1.621 MB / 418.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.4188, allocations: 0 / 418.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.419, allocations: 43.97 kB / 418.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.4191, allocations: 105.9 kB / 418.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.4216, allocations: 1.635 MB / 420.4 MB, free: 13.73 MB / 334.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.009932/0.4315, allocations: 6.738 MB / 427.2 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.4329, allocations: 0.9222 MB / 428.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003863/0.4368, allocations: 2.852 MB / 431 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.4369, allocations: 43.22 kB / 431 MB, free: 2.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.906e-06/0.4369, allocations: 0 / 431 MB, free: 2.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.008225/0.4451, allocations: 3.721 MB / 434.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.4453, allocations: 192.9 kB / 434.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/0.4472, allocations: 1.298 MB / 436.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.4475, allocations: 45.7 kB / 436.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004912/0.448, allocations: 0.6472 MB / 436.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.4483, allocations: 327.4 kB / 437.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.4483, allocations: 32 kB / 437.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4485, allocations: 361.9 kB / 437.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009254/0.4494, allocations: 0.5583 MB / 438.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.4506, allocations: 0.9771 MB / 439.1 MB, free: 10 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.4517, allocations: 0.6822 MB / 439.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4517, allocations: 4 kB / 439.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003111/0.4548, allocations: 1.857 MB / 441.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001668/0.4565, allocations: 4.646 MB / 446.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/0.4565, allocations: 12 kB / 446.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004891/0.4614, allocations: 0.7866 MB / 447.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.4627, allocations: 279.5 kB / 447.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.4646, allocations: 2.168 MB / 449.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.4661, allocations: 92.11 kB / 449.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.4663, allocations: 63.97 kB / 449.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.4663, allocations: 4 kB / 449.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002873/0.4692, allocations: 1.662 MB / 451.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.4692, allocations: 12 kB / 451.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004151/0.4734, allocations: 0.6345 MB / 452 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4746, allocations: 287.5 kB / 452.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.4763, allocations: 2.012 MB / 454.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4776, allocations: 92.02 kB / 454.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4777, allocations: 67.97 kB / 454.5 MB, free: 10.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007925/0.4785, allocations: 469.2 kB / 454.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.4788, allocations: 154.2 kB / 455.1 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.4816, allocations: 1.525 MB / 456.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.4817, allocations: 15.95 kB / 456.6 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4817, allocations: 3.938 kB / 456.6 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.4817, allocations: 3.984 kB / 456.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004493/0.4862, allocations: 2.819 MB / 459.5 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4862, allocations: 4.125 kB / 459.5 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006748/0.4869, allocations: 155.8 kB / 459.6 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/0.4898, allocations: 0.6385 MB / 460.3 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/0.4899, allocations: 31.98 kB / 460.3 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.4917, allocations: 2.109 MB / 462.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4917, allocations: 0 / 462.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003185/0.4949, allocations: 2.14 MB / 464.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005694/0.4955, allocations: 255.2 kB / 464.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.4957, allocations: 27.98 kB / 464.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008213/0.4965, allocations: 71.8 kB / 464.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.4967, allocations: 96.8 kB / 465 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.865e-05/0.4968, allocations: 47.92 kB / 465 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001213/0.498, allocations: 0.8927 MB / 465.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4981, allocations: 96 / 465.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003178/0.5012, allocations: 1.128 MB / 467 MB, free: 13.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005259/0.5065, allocations: 3.665 MB / 470.7 MB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004215/0.5108, allocations: 2.249 MB / 473 MB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5108, allocations: 0 / 473 MB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.5121, allocations: 0.6893 MB / 473.6 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.5148, allocations: 0.5905 MB / 474.2 MB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009189/0.524, allocations: 12.35 MB / 486.6 MB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008073/0.5248, allocations: 1.279 MB / 487.9 MB, free: 8.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002066/0.5269, allocations: 0.5783 MB / 488.4 MB, free: 7.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006878/0.5276, allocations: 0.5266 MB / 489 MB, free: 6.949 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5276, allocations: 0 / 489 MB, free: 6.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07653/0.6041, allocations: 49.37 MB / 0.5257 GB, free: 5.969 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.6044, allocations: 270 kB / 0.526 GB, free: 5.609 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.476/4.081, allocations: 0 / 0.526 GB, free: 5.609 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat