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.0009283/0.0009283, allocations: 96.23 kB / 16.99 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.0009616/0.0009616, allocations: 205.7 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.355/1.355, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003572, allocations: 7.984 kB / 306.7 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1299, allocations: 51.5 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.229/0.3589, allocations: 17.78 MB / 376 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009435/0.3684, allocations: 6.296 MB / 382.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.3695, allocations: 28.81 kB / 382.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.3706, allocations: 325.6 kB / 382.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003151/0.3738, allocations: 0.91 MB / 383.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00516/0.3789, allocations: 1.418 MB / 385 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00279/0.3817, allocations: 1.212 MB / 386.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009202/0.3827, allocations: 495 kB / 386.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3842, allocations: 0.6439 MB / 387.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008626/0.3851, allocations: 0.4934 MB / 387.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.3852, allocations: 38 kB / 387.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.3885, allocations: 1.141 MB / 389 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003378/0.3888, allocations: 224.2 kB / 389.2 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003798/0.3892, allocations: 185.2 kB / 389.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00256/0.3918, allocations: 1.353 MB / 390.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3918, allocations: 1.094 kB / 390.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3918, allocations: 0 / 390.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.3919, allocations: 0 / 390.7 MB, free: 5.84 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.002667/0.3945, allocations: 1.116 MB / 391.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3946, allocations: 9.469 kB / 391.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001807/0.3948, allocations: 116.8 kB / 392 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004057/0.3952, allocations: 98.95 kB / 392.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.3963, allocations: 0.5716 MB / 392.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.3963, allocations: 45.39 kB / 392.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.585e-05/0.3964, allocations: 51.84 kB / 392.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.3978, allocations: 0.8814 MB / 393.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.3979, allocations: 5.016 kB / 393.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-05/0.398, allocations: 27.55 kB / 393.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.573e-05/0.3981, allocations: 50.92 kB / 393.7 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.3994, allocations: 0.8125 MB / 394.5 MB, free: 3.273 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.005161/0.4046, allocations: 3.843 MB / 398.3 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009784/0.4056, allocations: 0.5403 MB / 398.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/0.406, allocations: 0.4977 MB / 399.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.4061, allocations: 43.22 kB / 399.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.806e-06/0.4061, allocations: 0 / 399.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004763/0.4108, allocations: 2.124 MB / 401.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/0.4109, allocations: 134.6 kB / 401.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.4119, allocations: 0.7237 MB / 402.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.889e-05/0.412, allocations: 38.83 kB / 402.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.4123, allocations: 379.1 kB / 402.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.4125, allocations: 184.8 kB / 403 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.4126, allocations: 21.97 kB / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.4127, allocations: 389.2 kB / 403.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.4132, allocations: 294.8 kB / 403.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006352/0.4139, allocations: 0.4937 MB / 404.2 MB, free: 11.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005663/0.4145, allocations: 362.3 kB / 404.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4145, allocations: 0 / 404.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001566/0.416, allocations: 0.9787 MB / 405.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007811/0.4168, allocations: 2.269 MB / 407.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4169, allocations: 14.22 kB / 407.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.4185, allocations: 309 kB / 408.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005902/0.4192, allocations: 144.2 kB / 408.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.4203, allocations: 1.306 MB / 409.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007615/0.421, allocations: 50.62 kB / 409.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.4211, allocations: 37.95 kB / 409.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.4212, allocations: 3.594 kB / 409.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001423/0.4226, allocations: 0.8424 MB / 410.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4226, allocations: 4.625 kB / 410.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.4237, allocations: 183.7 kB / 410.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007088/0.4244, allocations: 168.9 kB / 410.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008534/0.4253, allocations: 1.191 MB / 412 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008759/0.4262, allocations: 51.91 kB / 412.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.732e-05/0.4263, allocations: 32.05 kB / 412.1 MB, free: 5.105 MB / 318.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.0006066/0.4269, allocations: 335.1 kB / 412.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.4271, allocations: 79.06 kB / 412.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.4289, allocations: 0.9861 MB / 413.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.4289, allocations: 8 kB / 413.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4289, allocations: 0 / 413.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4289, allocations: 8.078 kB / 413.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00303/0.432, allocations: 1.755 MB / 415.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.432, allocations: 7.984 kB / 415.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.4325, allocations: 103.9 kB / 415.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.4335, allocations: 249.4 kB / 415.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.4336, allocations: 19.98 kB / 415.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009173/0.4345, allocations: 1.269 MB / 416.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4346, allocations: 32 / 416.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.4366, allocations: 1.337 MB / 418.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/0.437, allocations: 184 kB / 418.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.4371, allocations: 12 kB / 418.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/0.4377, allocations: 44.03 kB / 418.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.4378, allocations: 52.48 kB / 418.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-05/0.4379, allocations: 31.97 kB / 418.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007505/0.4387, allocations: 0.5029 MB / 419 MB, free: 13.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4387, allocations: 3.938 kB / 419 MB, free: 13.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002143/0.4408, allocations: 0.5974 MB / 419.6 MB, free: 13.34 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 (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.003669/0.4445, allocations: 2.48 MB / 422.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.4469, allocations: 1.204 MB / 423.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.447, allocations: 0 / 423.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006449/0.4476, allocations: 387 kB / 423.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.4497, allocations: 390.6 kB / 424.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005837/0.4555, allocations: 6.408 MB / 430.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.4562, allocations: 1.003 MB / 431.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.4574, allocations: 320.2 kB / 431.8 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.4579, allocations: 295.3 kB / 432.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4579, allocations: 3.938 kB / 432.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05143/0.5093, allocations: 28.71 MB / 460.8 MB, free: 4.273 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003877/0.5098, allocations: 272.3 kB / 461.1 MB, free: 3.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/3.407, allocations: 0 / 461.1 MB, free: 3.91 MB / 366.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat