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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 198.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008826/0.0008827, allocations: 100.8 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002841, allocations: 4 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2179, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7617/0.9796, allocations: 329.6 MB / 0.7217 GB, free: 111.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.98, allocations: 102.6 kB / 0.7218 GB, free: 111.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5258/1.506, allocations: 170.3 MB / 0.8882 GB, free: 110.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.033e-06/1.506, allocations: 0 / 0.8882 GB, free: 110.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.643e-05/1.506, allocations: 23.61 kB / 0.8882 GB, free: 110.3 MB / 458.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.002896/1.509, allocations: 1.214 MB / 0.8894 GB, free: 109.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/1.509, allocations: 11.59 kB / 0.8894 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003015/1.509, allocations: 103.1 kB / 0.8895 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004594/1.51, allocations: 97.48 kB / 0.8896 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/1.511, allocations: 0.6399 MB / 0.8902 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/1.511, allocations: 42.16 kB / 0.8903 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/1.511, allocations: 54.91 kB / 0.8903 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/1.512, allocations: 0.8923 MB / 0.8912 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/1.513, allocations: 1.406 kB / 0.8912 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.389e-05/1.513, allocations: 33.44 kB / 0.8912 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.352e-05/1.513, allocations: 44.09 kB / 0.8913 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/1.514, allocations: 0.7888 MB / 0.892 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00462/1.518, allocations: 3.778 MB / 0.8957 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008003/1.519, allocations: 0.5325 MB / 0.8962 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001944/1.521, allocations: 1.845 MB / 0.898 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/1.521, allocations: 37.91 kB / 0.8981 GB, free: 105.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/1.521, allocations: 0 / 0.8981 GB, free: 105.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.003187/1.524, allocations: 1.764 MB / 0.8998 GB, free: 105.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.525, allocations: 132.3 kB / 0.8999 GB, free: 105 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009548/1.526, allocations: 0.6568 MB / 0.9006 GB, free: 104.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.437e-05/1.526, allocations: 40.98 kB / 0.9006 GB, free: 104.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/1.526, allocations: 395.7 kB / 0.901 GB, free: 104.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/1.526, allocations: 167.2 kB / 0.9011 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/1.526, allocations: 13.44 kB / 0.9011 GB, free: 104.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/1.526, allocations: 396.9 kB / 0.9015 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/1.527, allocations: 253.8 kB / 0.9018 GB, free: 104.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005833/1.527, allocations: 0.495 MB / 0.9023 GB, free: 103.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005478/1.528, allocations: 325 kB / 0.9026 GB, free: 103.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/1.528, allocations: 3.812 kB / 0.9026 GB, free: 103.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001578/1.53, allocations: 0.8866 MB / 0.9034 GB, free: 103.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006544/1.53, allocations: 2.7 MB / 0.9061 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/1.53, allocations: 7.344 kB / 0.9061 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/1.531, allocations: 164.8 kB / 0.9062 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009924/1.532, allocations: 196.4 kB / 0.9064 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/1.533, allocations: 1.809 MB / 0.9082 GB, free: 98.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/1.534, allocations: 56.36 kB / 0.9082 GB, free: 98.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.892e-05/1.534, allocations: 31.28 kB / 0.9083 GB, free: 98.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/1.534, allocations: 6.094 kB / 0.9083 GB, free: 98.66 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001201/1.535, allocations: 0.7914 MB / 0.909 GB, free: 98.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.536, allocations: 10.88 kB / 0.9091 GB, free: 98.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008573/1.536, allocations: 162.6 kB / 0.9092 GB, free: 98.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/1.537, allocations: 176.1 kB / 0.9094 GB, free: 98.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000527/1.538, allocations: 1.19 MB / 0.9105 GB, free: 97.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/1.538, allocations: 52.53 kB / 0.9106 GB, free: 97.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.032e-05/1.538, allocations: 35.56 kB / 0.9106 GB, free: 97.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004602/1.539, allocations: 335.2 kB / 0.9109 GB, free: 96.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/1.539, allocations: 86.03 kB / 0.911 GB, free: 96.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/1.54, allocations: 0.8197 MB / 0.9118 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/1.54, allocations: 7.312 kB / 0.9118 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/1.54, allocations: 0 / 0.9118 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/1.54, allocations: 3.656 kB / 0.9118 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/1.543, allocations: 1.566 MB / 0.9134 GB, free: 95.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-06/1.543, allocations: 0 / 0.9134 GB, free: 95.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006167/1.543, allocations: 139.7 kB / 0.9135 GB, free: 95.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005525/1.544, allocations: 123.7 kB / 0.9136 GB, free: 95.72 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.088e-05/1.544, allocations: 15.5 kB / 0.9136 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000678/1.545, allocations: 1.746 MB / 0.9153 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.545, allocations: 6.562 kB / 0.9153 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/1.546, allocations: 1.127 MB / 0.9164 GB, free: 93.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/1.546, allocations: 176.2 kB / 0.9166 GB, free: 93.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/1.546, allocations: 22.11 kB / 0.9166 GB, free: 93.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005874/1.547, allocations: 41.14 kB / 0.9167 GB, free: 93.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.547, allocations: 56.88 kB / 0.9167 GB, free: 93.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/1.547, allocations: 29.81 kB / 0.9168 GB, free: 93.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005918/1.548, allocations: 0.515 MB / 0.9173 GB, free: 93.01 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.548, allocations: 0 / 0.9173 GB, free: 93.01 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001951/1.55, allocations: 0.6682 MB / 0.9179 GB, free: 92.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003111/1.553, allocations: 2.466 MB / 0.9203 GB, free: 91.37 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002461/1.555, allocations: 1.155 MB / 0.9214 GB, free: 91.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.555, allocations: 0 / 0.9214 GB, free: 91.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000735/1.556, allocations: 389.8 kB / 0.9218 GB, free: 90.93 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/1.558, allocations: 370.5 kB / 0.9222 GB, free: 90.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004439/1.562, allocations: 7.201 MB / 0.9292 GB, free: 84.69 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/1.563, allocations: 1.011 MB / 0.9302 GB, free: 83.96 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001051/1.564, allocations: 319 kB / 0.9305 GB, free: 83.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003629/1.564, allocations: 300.8 kB / 0.9308 GB, free: 83.73 MB / 458.7 MB Notification: Performance of SimCode: time 7.52e-07/1.564, allocations: 0 / 0.9308 GB, free: 83.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04545/1.609, allocations: 29.19 MB / 0.9593 GB, free: 61.39 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/1.61, allocations: 262.1 kB / 0.9595 GB, free: 61.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/4.348, allocations: 0 / 0.9595 GB, free: 61.04 MB / 458.7 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