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.001048/0.001048, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.3 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.00024, allocations: 4 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 51.5 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.2324/0.3459, allocations: 18.85 MB / 377 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.3592, allocations: 8.881 MB / 385.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.3607, allocations: 43.53 kB / 386 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.362, allocations: 348.8 kB / 386.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004631/0.3666, allocations: 1.161 MB / 387.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00757/0.3742, allocations: 2.042 MB / 389.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003842/0.3781, allocations: 1.425 MB / 390.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.3795, allocations: 0.5378 MB / 391.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00202/0.3815, allocations: 0.7765 MB / 392.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.3829, allocations: 0.634 MB / 392.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002016/0.3831, allocations: 45.81 kB / 392.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004909/0.388, allocations: 1.591 MB / 394.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005141/0.3886, allocations: 290.9 kB / 394.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.3891, allocations: 205.8 kB / 395 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00372/0.3928, allocations: 1.762 MB / 396.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3928, allocations: 0 / 396.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3928, allocations: 0 / 396.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.3929, allocations: 1.094 kB / 396.8 MB, free: 1.949 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.003121/0.396, allocations: 1.326 MB / 398.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.396, allocations: 9.25 kB / 398.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001885/0.3962, allocations: 111.5 kB / 398.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004517/0.3967, allocations: 113.4 kB / 398.3 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.398, allocations: 0.6631 MB / 399 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.3981, allocations: 48.36 kB / 399 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.3982, allocations: 63.39 kB / 399.1 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.3999, allocations: 1.057 MB / 400.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4, allocations: 5.312 kB / 400.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.983e-05/0.4001, allocations: 31.61 kB / 400.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.4002, allocations: 67.42 kB / 400.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.4019, allocations: 1.022 MB / 401.3 MB, free: 14.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.006869/0.4088, allocations: 4.517 MB / 405.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009739/0.4098, allocations: 0.5634 MB / 406.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002747/0.4125, allocations: 2.004 MB / 408.4 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.4126, allocations: 43.8 kB / 408.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.904e-06/0.4126, allocations: 0 / 408.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004479/0.4171, allocations: 1.957 MB / 410.4 MB, free: 7.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.4172, allocations: 162.2 kB / 410.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.4184, allocations: 0.9233 MB / 411.4 MB, free: 6.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.558e-05/0.4185, allocations: 41.7 kB / 411.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000378/0.4189, allocations: 482.9 kB / 412 MB, free: 5.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.419, allocations: 161.7 kB / 412.1 MB, free: 5.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.4191, allocations: 16 kB / 412.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4192, allocations: 346 kB / 412.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005022/0.4197, allocations: 317.8 kB / 412.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.4204, allocations: 0.6054 MB / 413.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005973/0.421, allocations: 405.9 kB / 413.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.421, allocations: 4 kB / 413.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001734/0.4228, allocations: 1.089 MB / 414.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001604/0.4244, allocations: 3.498 MB / 418.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.4244, allocations: 8.047 kB / 418.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/0.427, allocations: 389.2 kB / 418.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006995/0.4277, allocations: 175.7 kB / 418.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.4288, allocations: 1.352 MB / 420.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009686/0.4298, allocations: 43.98 kB / 420.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.066e-05/0.4299, allocations: 47.98 kB / 420.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.4299, allocations: 4 kB / 420.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001577/0.4315, allocations: 0.9711 MB / 421.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.4315, allocations: 15.94 kB / 421.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/0.4337, allocations: 350 kB / 421.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/0.4344, allocations: 183.7 kB / 421.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009996/0.4354, allocations: 1.304 MB / 423.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000838/0.4362, allocations: 64.03 kB / 423.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/0.4363, allocations: 43.98 kB / 423.3 MB, free: 9.867 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 ($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.0006252/0.4369, allocations: 359.4 kB / 423.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.4371, allocations: 94.88 kB / 423.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.4389, allocations: 0.7976 MB / 424.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.4389, allocations: 4 kB / 424.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4389, allocations: 0 / 424.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4389, allocations: 3.984 kB / 424.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.4416, allocations: 1.603 MB / 426.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.4416, allocations: 0 / 426.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.442, allocations: 79.84 kB / 426.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001437/0.4434, allocations: 305.5 kB / 426.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.4435, allocations: 16.17 kB / 426.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009333/0.4444, allocations: 1.296 MB / 427.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4444, allocations: 8.156 kB / 427.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.446, allocations: 1.095 MB / 428.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.4463, allocations: 199.9 kB / 429.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4465, allocations: 16.06 kB / 429.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/0.447, allocations: 40.78 kB / 429.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4472, allocations: 56.25 kB / 429.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.4472, allocations: 23.98 kB / 429.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008619/0.4481, allocations: 0.6403 MB / 429.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4481, allocations: 7.938 kB / 429.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00233/0.4504, allocations: 0.7535 MB / 430.7 MB, free: 2.281 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.003369/0.4538, allocations: 2.297 MB / 433 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002294/0.4561, allocations: 1.228 MB / 434.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4561, allocations: 0 / 434.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.4567, allocations: 318.6 kB / 434.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.4586, allocations: 368.6 kB / 434.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006381/0.465, allocations: 8.824 MB / 443.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.4656, allocations: 1.053 MB / 444.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001259/0.4668, allocations: 377.6 kB / 445.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.4673, allocations: 331.3 kB / 445.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4673, allocations: 4 kB / 445.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05547/0.5227, allocations: 32.05 MB / 477.5 MB, free: 3.484 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.523, allocations: 271.2 kB / 477.8 MB, free: 3.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.121/3.644, allocations: 1.875 kB / 477.8 MB, free: 3.125 MB / 382.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat