Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.001536/0.001535, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.001029/0.001029, allocations: 88.75 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.086e-05/2.048e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.116, allocations: 50.41 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8826/0.9988, allocations: 324.1 MB / 0.695 GB, free: 4.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.9991, allocations: 90.52 kB / 0.695 GB, free: 4.527 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.107/2.106, allocations: 285.6 MB / 0.9739 GB, free: 73.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.223e-06/2.106, allocations: 0 / 0.9739 GB, free: 73.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001115/2.107, allocations: 41.66 kB / 0.974 GB, free: 73.66 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004533/2.111, allocations: 1.79 MB / 0.9757 GB, free: 72.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/2.111, allocations: 12.84 kB / 0.9757 GB, free: 72.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006163/2.112, allocations: 169.8 kB / 0.9759 GB, free: 72.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/2.114, allocations: 1.027 MB / 0.9769 GB, free: 71.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/2.114, allocations: 45.17 kB / 0.977 GB, free: 71.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/2.114, allocations: 61.72 kB / 0.977 GB, free: 71.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001948/2.116, allocations: 1.424 MB / 0.9784 GB, free: 71.47 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/2.118, allocations: 1.47 MB / 0.9798 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/2.118, allocations: 6.531 kB / 0.9798 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/2.118, allocations: 3.625 kB / 0.9798 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/2.118, allocations: 106.7 kB / 0.9799 GB, free: 70.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007823/2.126, allocations: 6.295 MB / 0.9861 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/2.127, allocations: 0.8818 MB / 0.987 GB, free: 66.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005801/2.128, allocations: 0.5225 MB / 0.9875 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003236/2.131, allocations: 2.835 MB / 0.9902 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/2.131, allocations: 47.06 kB / 0.9903 GB, free: 64.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.174e-06/2.131, allocations: 0 / 0.9903 GB, free: 64.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.008499/2.139, allocations: 3.135 MB / 0.9933 GB, free: 62.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/2.139, allocations: 195.1 kB / 0.9935 GB, free: 62.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/2.141, allocations: 0.8663 MB / 0.9944 GB, free: 62.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/2.141, allocations: 32.11 kB / 0.9944 GB, free: 62.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/2.141, allocations: 0.6543 MB / 0.995 GB, free: 61.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/2.141, allocations: 308.1 kB / 0.9953 GB, free: 61.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/2.141, allocations: 0 / 0.9953 GB, free: 61.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.559e-05/2.141, allocations: 364.2 kB / 0.9957 GB, free: 61.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006606/2.142, allocations: 0.528 MB / 0.9962 GB, free: 60.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008106/2.143, allocations: 0.9172 MB / 0.9971 GB, free: 60.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/2.146, allocations: 1.2 MB / 0.9983 GB, free: 59.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/2.146, allocations: 3.875 kB / 0.9983 GB, free: 59.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005761/2.152, allocations: 2.259 MB / 1 GB, free: 58.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001637/2.154, allocations: 4.358 MB / 1.005 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.435e-05/2.154, allocations: 12 kB / 1.005 GB, free: 54.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/2.155, allocations: 327.3 kB / 1.005 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/2.156, allocations: 280.2 kB / 1.005 GB, free: 53.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/2.16, allocations: 2.461 MB / 1.008 GB, free: 51.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/2.162, allocations: 70.75 kB / 1.008 GB, free: 51.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/2.162, allocations: 67.22 kB / 1.008 GB, free: 51.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/2.162, allocations: 5.406 kB / 1.008 GB, free: 51.12 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004598/2.167, allocations: 1.964 MB / 1.01 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/2.167, allocations: 12 kB / 1.01 GB, free: 49.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008388/2.167, allocations: 266.2 kB / 1.01 GB, free: 48.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/2.168, allocations: 290.7 kB / 1.01 GB, free: 48.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002657/2.171, allocations: 2.215 MB / 1.012 GB, free: 46.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/2.173, allocations: 76.06 kB / 1.013 GB, free: 46.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/2.173, allocations: 67.97 kB / 1.013 GB, free: 46.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004953/2.173, allocations: 147.5 kB / 1.013 GB, free: 46.04 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00404/2.177, allocations: 1.355 MB / 1.014 GB, free: 44.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/2.178, allocations: 126.5 kB / 1.014 GB, free: 44.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003518/2.181, allocations: 1.522 MB / 1.016 GB, free: 43.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/2.181, allocations: 12 kB / 1.016 GB, free: 43.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/2.181, allocations: 0 / 1.016 GB, free: 43.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/2.181, allocations: 7.969 kB / 1.016 GB, free: 43.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00488/2.186, allocations: 2.725 MB / 1.018 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/2.186, allocations: 0 / 1.018 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/2.187, allocations: 151.8 kB / 1.019 GB, free: 40.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009232/2.188, allocations: 318.7 kB / 1.019 GB, free: 39.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-05/2.188, allocations: 11.98 kB / 1.019 GB, free: 39.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/2.19, allocations: 2.266 MB / 1.021 GB, free: 37.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/2.19, allocations: 2.406 kB / 1.021 GB, free: 37.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/2.193, allocations: 2.144 MB / 1.023 GB, free: 35.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004223/2.194, allocations: 226.5 kB / 1.023 GB, free: 35.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/2.194, allocations: 8 kB / 1.023 GB, free: 35.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/2.195, allocations: 56.88 kB / 1.023 GB, free: 34.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/2.195, allocations: 95.23 kB / 1.024 GB, free: 34.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/2.195, allocations: 47.91 kB / 1.024 GB, free: 34.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008132/2.196, allocations: 0.6647 MB / 1.024 GB, free: 34.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/2.196, allocations: 0 / 1.024 GB, free: 34.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003468/2.2, allocations: 1.136 MB / 1.025 GB, free: 33.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006026/2.206, allocations: 3.965 MB / 1.029 GB, free: 29.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003455/2.209, allocations: 2.085 MB / 1.031 GB, free: 27.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/2.209, allocations: 0 / 1.031 GB, free: 27.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/2.21, allocations: 0.647 MB / 1.032 GB, free: 26.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/2.213, allocations: 483.9 kB / 1.032 GB, free: 25.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005291/2.218, allocations: 2.61 MB / 1.035 GB, free: 23.33 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/2.219, allocations: 1.284 MB / 1.036 GB, free: 22.01 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001899/2.22, allocations: 0.5747 MB / 1.037 GB, free: 21.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00055/2.221, allocations: 0.4954 MB / 1.037 GB, free: 20.96 MB / 442.7 MB Notification: Performance of SimCode: time 7.91e-07/2.221, allocations: 8 kB / 1.037 GB, free: 20.96 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3483/2.569, allocations: 46.85 MB / 1.083 GB, free: 65.31 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/2.57, allocations: 192.5 kB / 1.083 GB, free: 65.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.713/6.283, allocations: 0 / 1.083 GB, free: 65.11 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat