Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000907/0.0009068, allocations: 97.83 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.652e-05/2.654e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8546/0.9712, allocations: 324.4 MB / 0.7019 GB, free: 7.441 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.9714, allocations: 85.33 kB / 0.702 GB, free: 7.398 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.921/1.892, allocations: 196 MB / 0.8934 GB, free: 78.22 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.892, allocations: 1.781 kB / 0.8934 GB, free: 78.22 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.873e-05/1.893, allocations: 26.28 kB / 0.8934 GB, free: 78.22 MB / 442.7 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.003088/1.896, allocations: 1.302 MB / 0.8947 GB, free: 77.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/1.896, allocations: 7.875 kB / 0.8947 GB, free: 77.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/1.896, allocations: 113.1 kB / 0.8948 GB, free: 77.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003751/1.896, allocations: 109 kB / 0.8949 GB, free: 77.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/1.898, allocations: 0.7348 MB / 0.8956 GB, free: 77.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/1.898, allocations: 52.41 kB / 0.8957 GB, free: 77.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/1.898, allocations: 62.41 kB / 0.8957 GB, free: 77.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/1.9, allocations: 1.046 MB / 0.8968 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/1.9, allocations: 2.141 kB / 0.8968 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.08e-05/1.9, allocations: 30.05 kB / 0.8968 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/1.9, allocations: 63.36 kB / 0.8968 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/1.902, allocations: 0.9971 MB / 0.8978 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00645/1.908, allocations: 4.398 MB / 0.9021 GB, free: 75.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009232/1.909, allocations: 0.5562 MB / 0.9027 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/1.91, allocations: 318.4 kB / 0.903 GB, free: 75.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002364/1.912, allocations: 2.081 MB / 0.905 GB, free: 73.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/1.912, allocations: 40.33 kB / 0.905 GB, free: 73.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 1.883e-06/1.912, allocations: 2.156 kB / 0.905 GB, free: 73.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.003039/1.915, allocations: 1.497 MB / 0.9065 GB, free: 73.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/1.915, allocations: 162.5 kB / 0.9066 GB, free: 73.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/1.916, allocations: 0.8089 MB / 0.9074 GB, free: 72.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/1.916, allocations: 40.73 kB / 0.9075 GB, free: 72.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/1.916, allocations: 484 kB / 0.9079 GB, free: 72.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/1.917, allocations: 157.7 kB / 0.9081 GB, free: 72.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/1.917, allocations: 20.06 kB / 0.9081 GB, free: 72.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.64e-05/1.917, allocations: 341.6 kB / 0.9084 GB, free: 72.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004514/1.917, allocations: 305.3 kB / 0.9087 GB, free: 72.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/1.918, allocations: 0.5812 MB / 0.9093 GB, free: 72.01 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006138/1.918, allocations: 399.5 kB / 0.9097 GB, free: 72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/1.918, allocations: 1.969 kB / 0.9097 GB, free: 72 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001745/1.92, allocations: 1.069 MB / 0.9107 GB, free: 71.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005873/1.921, allocations: 3.309 MB / 0.914 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-05/1.921, allocations: 11.69 kB / 0.914 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/1.923, allocations: 316.8 kB / 0.9143 GB, free: 68.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/1.923, allocations: 189.2 kB / 0.9144 GB, free: 68.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009429/1.924, allocations: 1.343 MB / 0.9158 GB, free: 67.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008698/1.925, allocations: 62.33 kB / 0.9158 GB, free: 67.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.641e-05/1.925, allocations: 38.62 kB / 0.9159 GB, free: 67.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/1.925, allocations: 4.312 kB / 0.9159 GB, free: 67.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001424/1.927, allocations: 0.9396 MB / 0.9168 GB, free: 67.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/1.927, allocations: 8.719 kB / 0.9168 GB, free: 67.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/1.928, allocations: 295.4 kB / 0.9171 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000635/1.929, allocations: 177.8 kB / 0.9172 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007976/1.93, allocations: 1.307 MB / 0.9185 GB, free: 66.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007577/1.931, allocations: 57.36 kB / 0.9186 GB, free: 66.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-05/1.931, allocations: 43.56 kB / 0.9186 GB, free: 66.31 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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.0002282/1.931, allocations: 158.6 kB / 0.9188 GB, free: 66.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/1.931, allocations: 100.8 kB / 0.9189 GB, free: 66.15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/1.933, allocations: 0.7681 MB / 0.9196 GB, free: 66.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/1.933, allocations: 5.625 kB / 0.9196 GB, free: 66.06 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/1.933, allocations: 4.719 kB / 0.9196 GB, free: 66.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/1.933, allocations: 3.703 kB / 0.9196 GB, free: 66.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/1.935, allocations: 1.582 MB / 0.9212 GB, free: 65.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.935, allocations: 0 / 0.9212 GB, free: 65.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/1.935, allocations: 80.56 kB / 0.9212 GB, free: 65.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/1.937, allocations: 285.2 kB / 0.9215 GB, free: 65.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-05/1.937, allocations: 18.14 kB / 0.9215 GB, free: 65.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006981/1.938, allocations: 1.309 MB / 0.9228 GB, free: 64.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/1.938, allocations: 0 / 0.9228 GB, free: 64.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/1.939, allocations: 1.096 MB / 0.9239 GB, free: 64.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/1.939, allocations: 196.7 kB / 0.9241 GB, free: 64.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/1.939, allocations: 15.94 kB / 0.9241 GB, free: 64.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000573/1.94, allocations: 44.31 kB / 0.9241 GB, free: 64.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/1.94, allocations: 56.66 kB / 0.9242 GB, free: 64.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/1.94, allocations: 25.91 kB / 0.9242 GB, free: 64.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006825/1.941, allocations: 0.6301 MB / 0.9248 GB, free: 64.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.941, allocations: 0 / 0.9248 GB, free: 64.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002039/1.943, allocations: 0.8332 MB / 0.9256 GB, free: 64 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * 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.002882/1.946, allocations: 2.486 MB / 0.9281 GB, free: 62.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002011/1.948, allocations: 1.24 MB / 0.9293 GB, free: 62.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.948, allocations: 0 / 0.9293 GB, free: 62.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006975/1.948, allocations: 346.3 kB / 0.9296 GB, free: 62.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/1.95, allocations: 373.4 kB / 0.93 GB, free: 62.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/1.952, allocations: 1.7 MB / 0.9316 GB, free: 62.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/1.953, allocations: 1.055 MB / 0.9326 GB, free: 61.69 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00116/1.954, allocations: 417.8 kB / 0.933 GB, free: 61.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003266/1.954, allocations: 320.9 kB / 0.9333 GB, free: 61.67 MB / 442.7 MB Notification: Performance of SimCode: time 3.51e-07/1.954, allocations: 2.156 kB / 0.9334 GB, free: 61.67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04835/2.003, allocations: 35.2 MB / 0.9677 GB, free: 60.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/2.003, allocations: 237.6 kB / 0.968 GB, free: 59.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/5.026, allocations: 0 / 0.968 GB, free: 59.95 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat