Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00169/0.001695, allocations: 184.4 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 95.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003987, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3478, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02529/0.3732, allocations: 17.74 MB / 392.4 MB, free: 31.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.3849, allocations: 6.216 MB / 398.6 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.3865, allocations: 27.75 kB / 398.6 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.3884, allocations: 318.4 kB / 398.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003794/0.3922, allocations: 0.8997 MB / 399.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005539/0.3978, allocations: 1.426 MB / 401.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002546/0.4003, allocations: 1.211 MB / 402.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009136/0.4013, allocations: 491 kB / 402.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.4029, allocations: 0.6426 MB / 403.6 MB, free: 19.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009027/0.4038, allocations: 0.5021 MB / 404.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.404, allocations: 40 kB / 404.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002877/0.4069, allocations: 1.108 MB / 405.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000429/0.4073, allocations: 231.3 kB / 405.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003396/0.4077, allocations: 181.3 kB / 405.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003063/0.4108, allocations: 1.341 MB / 407 MB, free: 16.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.4108, allocations: 4 kB / 407 MB, free: 16.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4108, allocations: 0 / 407 MB, free: 16.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.4109, allocations: 0 / 407 MB, free: 16.42 MB / 298.7 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.0032/0.4141, allocations: 1.114 MB / 408.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4142, allocations: 8.031 kB / 408.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002546/0.4144, allocations: 114.4 kB / 408.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004968/0.4149, allocations: 94.97 kB / 408.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/0.4163, allocations: 0.5778 MB / 408.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.055e-05/0.4164, allocations: 41.31 kB / 408.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.4165, allocations: 59.98 kB / 409 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.4186, allocations: 0.8789 MB / 409.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.4186, allocations: 3.938 kB / 409.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.4187, allocations: 24 kB / 409.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-05/0.4189, allocations: 49.23 kB / 409.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.4209, allocations: 0.8091 MB / 410.7 MB, free: 12.5 MB / 298.7 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.007228/0.4282, allocations: 3.847 MB / 414.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.4295, allocations: 0.5442 MB / 415.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003983/0.43, allocations: 0.4995 MB / 415.6 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.43, allocations: 39 kB / 415.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/0.43, allocations: 3.938 kB / 415.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.006779/0.4368, allocations: 2.125 MB / 417.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.4369, allocations: 140.9 kB / 417.9 MB, free: 4.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.4381, allocations: 0.7191 MB / 418.7 MB, free: 4.074 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.4382, allocations: 41.7 kB / 418.7 MB, free: 4.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002943/0.4385, allocations: 398.4 kB / 419.1 MB, free: 3.637 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.4387, allocations: 177.5 kB / 419.3 MB, free: 3.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.134e-05/0.4388, allocations: 16 kB / 419.3 MB, free: 3.445 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.345e-05/0.4389, allocations: 338.8 kB / 419.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/0.4396, allocations: 301.8 kB / 419.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.4405, allocations: 0.4992 MB / 420.4 MB, free: 2.219 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008639/0.4414, allocations: 358 kB / 420.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4414, allocations: 0 / 420.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002363/0.4438, allocations: 0.9294 MB / 421.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009144/0.4448, allocations: 2.274 MB / 424 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.4448, allocations: 8 kB / 424 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003016/0.4478, allocations: 289.4 kB / 424.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.449, allocations: 147.7 kB / 424.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.4509, allocations: 1.315 MB / 425.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.452, allocations: 56.09 kB / 425.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.4522, allocations: 31.98 kB / 425.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.4522, allocations: 4 kB / 425.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002594/0.4548, allocations: 0.8421 MB / 426.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.4548, allocations: 4 kB / 426.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/0.4569, allocations: 186.1 kB / 426.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.4583, allocations: 171.7 kB / 427 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.4596, allocations: 1.179 MB / 428.2 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.4604, allocations: 52.03 kB / 428.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4606, allocations: 35.98 kB / 428.3 MB, free: 10.05 MB / 314.7 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.0007026/0.4613, allocations: 333.9 kB / 428.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.4615, allocations: 79.06 kB / 428.7 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.4646, allocations: 0.9846 MB / 429.6 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/0.4647, allocations: 8 kB / 429.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4647, allocations: 0 / 429.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.4647, allocations: 7.922 kB / 429.7 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004971/0.4697, allocations: 1.766 MB / 431.4 MB, free: 6.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4698, allocations: 0 / 431.4 MB, free: 6.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000909/0.4707, allocations: 103.9 kB / 431.5 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/0.4725, allocations: 249.7 kB / 431.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.4727, allocations: 19.95 kB / 431.8 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.4741, allocations: 1.269 MB / 433.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4742, allocations: 8.062 kB / 433.1 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.4777, allocations: 1.333 MB / 434.4 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.4782, allocations: 180 kB / 434.6 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.4784, allocations: 15.98 kB / 434.6 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009729/0.4794, allocations: 35.89 kB / 434.6 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.4797, allocations: 64.47 kB / 434.7 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.4798, allocations: 27.98 kB / 434.7 MB, free: 3.367 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001085/0.4809, allocations: 0.5068 MB / 435.2 MB, free: 2.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4809, allocations: 0 / 435.2 MB, free: 2.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002612/0.4835, allocations: 0.5857 MB / 435.8 MB, free: 2.281 MB / 314.7 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.005817/0.4894, allocations: 2.482 MB / 438.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004315/0.4938, allocations: 1.191 MB / 439.5 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.4938, allocations: 1.5 kB / 439.5 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.4951, allocations: 395.2 kB / 439.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.4986, allocations: 394.8 kB / 440.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008554/0.5072, allocations: 6.446 MB / 446.7 MB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009149/0.5082, allocations: 0.9992 MB / 447.7 MB, free: 6.137 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009022/0.5091, allocations: 299.3 kB / 448 MB, free: 5.844 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.5091, allocations: 4 kB / 448 MB, free: 5.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.264/3.773, allocations: 25.96 MB / 474 MB, free: 11.85 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat