Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 175.5 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.356/1.356, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0009256/0.0009259, allocations: 83.08 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.542e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.879/1.001, allocations: 328.7 MB / 0.7061 GB, free: 3.262 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/1.001, allocations: 98.41 kB / 0.7062 GB, free: 3.211 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6119/1.613, allocations: 170 MB / 0.8722 GB, free: 13.65 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.393e-06/1.613, allocations: 0 / 0.8722 GB, free: 13.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.042e-05/1.613, allocations: 19.98 kB / 0.8722 GB, free: 13.63 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002619/1.615, allocations: 1.114 MB / 0.8733 GB, free: 12.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.616, allocations: 8.031 kB / 0.8733 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/1.616, allocations: 98.5 kB / 0.8734 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003567/1.616, allocations: 102.9 kB / 0.8735 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/1.617, allocations: 0.6284 MB / 0.8741 GB, free: 11.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/1.617, allocations: 49.3 kB / 0.8741 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/1.617, allocations: 59.92 kB / 0.8742 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/1.619, allocations: 0.8698 MB / 0.875 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/1.619, allocations: 3.938 kB / 0.875 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.306e-05/1.619, allocations: 27.98 kB / 0.8751 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.612e-05/1.619, allocations: 49.28 kB / 0.8751 GB, free: 10.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/1.62, allocations: 0.778 MB / 0.8759 GB, free: 9.695 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004173/1.624, allocations: 3.783 MB / 0.8796 GB, free: 5.684 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/1.625, allocations: 0.5113 MB / 0.8801 GB, free: 5.164 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/1.625, allocations: 258.1 kB / 0.8803 GB, free: 4.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0018/1.627, allocations: 1.892 MB / 0.8822 GB, free: 2.805 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/1.627, allocations: 46.34 kB / 0.8822 GB, free: 2.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 1.983e-06/1.627, allocations: 3.938 kB / 0.8822 GB, free: 2.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.002383/1.629, allocations: 1.364 MB / 0.8835 GB, free: 1.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/1.629, allocations: 136.5 kB / 0.8837 GB, free: 1.156 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007282/1.63, allocations: 0.6522 MB / 0.8843 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/1.63, allocations: 37.7 kB / 0.8843 GB, free: 464 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/1.63, allocations: 399 kB / 0.8847 GB, free: 60 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2546/1.885, allocations: 161.2 kB / 0.8849 GB, free: 83.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/1.885, allocations: 13.78 kB / 0.8849 GB, free: 83.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002884/1.886, allocations: 392.2 kB / 0.8853 GB, free: 83.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006035/1.886, allocations: 250 kB / 0.8855 GB, free: 83.37 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006159/1.887, allocations: 497.9 kB / 0.886 GB, free: 83.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005717/1.887, allocations: 314.9 kB / 0.8863 GB, free: 83.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/1.887, allocations: 2.906 kB / 0.8863 GB, free: 83.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001928/1.889, allocations: 0.8759 MB / 0.8871 GB, free: 83.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006023/1.89, allocations: 2.7 MB / 0.8898 GB, free: 80.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/1.89, allocations: 9.672 kB / 0.8898 GB, free: 80.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/1.891, allocations: 166.1 kB / 0.8899 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.892, allocations: 189.5 kB / 0.8901 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/1.893, allocations: 1.806 MB / 0.8919 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009287/1.894, allocations: 52.47 kB / 0.8919 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/1.894, allocations: 37.3 kB / 0.892 GB, free: 78.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/1.894, allocations: 4.781 kB / 0.892 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00155/1.896, allocations: 0.7733 MB / 0.8927 GB, free: 78.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/1.896, allocations: 10.78 kB / 0.8927 GB, free: 78.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/1.897, allocations: 170.9 kB / 0.8929 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/1.897, allocations: 174.5 kB / 0.8931 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007362/1.898, allocations: 1.181 MB / 0.8942 GB, free: 77.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007496/1.899, allocations: 55.45 kB / 0.8943 GB, free: 77.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/1.899, allocations: 45.53 kB / 0.8943 GB, free: 77.51 MB / 442.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 () * 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.0002638/1.899, allocations: 148.5 kB / 0.8945 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/1.9, allocations: 87.16 kB / 0.8945 GB, free: 77.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/1.901, allocations: 0.8078 MB / 0.8953 GB, free: 77.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/1.901, allocations: 7.062 kB / 0.8953 GB, free: 77.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.901, allocations: 3.656 kB / 0.8953 GB, free: 77.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/1.901, allocations: 3.953 kB / 0.8953 GB, free: 77.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/1.903, allocations: 1.557 MB / 0.8969 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/1.903, allocations: 0 / 0.8969 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006059/1.904, allocations: 136.3 kB / 0.897 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000574/1.905, allocations: 124.4 kB / 0.8971 GB, free: 76.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/1.905, allocations: 17.72 kB / 0.8971 GB, free: 76.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007133/1.905, allocations: 1.75 MB / 0.8988 GB, free: 75.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.905, allocations: 0 / 0.8988 GB, free: 75.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/1.907, allocations: 1.113 MB / 0.8999 GB, free: 75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/1.907, allocations: 176.3 kB / 0.9001 GB, free: 74.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/1.907, allocations: 18.97 kB / 0.9001 GB, free: 74.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/1.908, allocations: 39.83 kB / 0.9002 GB, free: 74.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/1.908, allocations: 60.62 kB / 0.9002 GB, free: 74.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.936e-05/1.908, allocations: 31.19 kB / 0.9002 GB, free: 74.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007943/1.909, allocations: 0.5151 MB / 0.9007 GB, free: 74.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.909, allocations: 0 / 0.9007 GB, free: 74.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002551/1.912, allocations: 0.6552 MB / 0.9014 GB, free: 74.75 MB / 442.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]) * 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.003873/1.915, allocations: 2.425 MB / 0.9037 GB, free: 73.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003089/1.918, allocations: 1.163 MB / 0.9049 GB, free: 73.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.919, allocations: 1.094 kB / 0.9049 GB, free: 73.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009142/1.919, allocations: 384.9 kB / 0.9053 GB, free: 73.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001995/1.921, allocations: 359.3 kB / 0.9056 GB, free: 73.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/1.925, allocations: 1.489 MB / 0.9071 GB, free: 73.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/1.926, allocations: 1.002 MB / 0.908 GB, free: 72.67 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00144/1.927, allocations: 385.1 kB / 0.9084 GB, free: 72.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003886/1.927, allocations: 287.8 kB / 0.9087 GB, free: 72.65 MB / 442.7 MB Notification: Performance of SimCode: time 8.82e-07/1.927, allocations: 0 / 0.9087 GB, free: 72.65 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05038/1.978, allocations: 30.63 MB / 0.9386 GB, free: 71.63 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/1.978, allocations: 241.6 kB / 0.9388 GB, free: 71.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.982/4.96, allocations: 0 / 0.9388 GB, free: 71.32 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat