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.0022/0.0022, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.248/2.248, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001155/0.001154, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.945e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09742, allocations: 47.58 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.146, allocations: 328.1 MB / 0.681 GB, free: 14.33 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/1.147, allocations: 92.44 kB / 0.681 GB, free: 14.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8559/2.003, allocations: 166.4 MB / 0.8436 GB, free: 23.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/2.003, allocations: 0 / 0.8436 GB, free: 23.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.485e-05/2.003, allocations: 16 kB / 0.8436 GB, free: 23.73 MB / 426.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.003186/2.006, allocations: 1.118 MB / 0.8447 GB, free: 22.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/2.006, allocations: 11.97 kB / 0.8447 GB, free: 22.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001941/2.006, allocations: 102.5 kB / 0.8448 GB, free: 22.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000522/2.007, allocations: 98.92 kB / 0.8449 GB, free: 22.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/2.008, allocations: 0.6208 MB / 0.8455 GB, free: 21.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.927e-05/2.009, allocations: 49.25 kB / 0.8455 GB, free: 21.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/2.009, allocations: 59.98 kB / 0.8456 GB, free: 21.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/2.011, allocations: 0.8698 MB / 0.8464 GB, free: 20.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.479e-05/2.011, allocations: 3.938 kB / 0.8464 GB, free: 20.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/2.011, allocations: 27.98 kB / 0.8465 GB, free: 20.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.033e-05/2.011, allocations: 45.28 kB / 0.8465 GB, free: 20.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/2.013, allocations: 0.7742 MB / 0.8473 GB, free: 19.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007239/2.02, allocations: 3.787 MB / 0.851 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/2.021, allocations: 0.5167 MB / 0.8515 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/2.022, allocations: 266 kB / 0.8517 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003141/2.025, allocations: 1.891 MB / 0.8536 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/2.025, allocations: 34.56 kB / 0.8536 GB, free: 12.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.477e-06/2.025, allocations: 3.938 kB / 0.8536 GB, free: 12.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.004007/2.029, allocations: 1.375 MB / 0.855 GB, free: 11.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/2.029, allocations: 136.5 kB / 0.8551 GB, free: 11.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/2.03, allocations: 0.656 MB / 0.8557 GB, free: 10.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.47e-05/2.03, allocations: 37.7 kB / 0.8558 GB, free: 10.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/2.031, allocations: 409.5 kB / 0.8562 GB, free: 10.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/2.031, allocations: 165.7 kB / 0.8563 GB, free: 9.965 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.167e-05/2.031, allocations: 16 kB / 0.8563 GB, free: 9.949 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.258e-05/2.031, allocations: 338.8 kB / 0.8566 GB, free: 9.609 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000635/2.032, allocations: 253.5 kB / 0.8569 GB, free: 9.363 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007673/2.033, allocations: 490.2 kB / 0.8574 GB, free: 8.777 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007288/2.033, allocations: 326.4 kB / 0.8577 GB, free: 8.461 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/2.033, allocations: 4 kB / 0.8577 GB, free: 8.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002025/2.035, allocations: 0.8246 MB / 0.8585 GB, free: 7.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005206/2.036, allocations: 2.708 MB / 0.8611 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/2.036, allocations: 8 kB / 0.8611 GB, free: 4.691 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001588/2.037, allocations: 169.5 kB / 0.8613 GB, free: 4.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/2.039, allocations: 179.8 kB / 0.8615 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/2.041, allocations: 1.804 MB / 0.8632 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/2.042, allocations: 63.94 kB / 0.8633 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/2.042, allocations: 39.98 kB / 0.8633 GB, free: 2.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/2.042, allocations: 0 / 0.8633 GB, free: 2.363 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001902/2.044, allocations: 0.7717 MB / 0.8641 GB, free: 1.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/2.044, allocations: 8.875 kB / 0.8641 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/2.046, allocations: 161.7 kB / 0.8642 GB, free: 1.414 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/2.047, allocations: 179.7 kB / 0.8644 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000864/2.048, allocations: 1.175 MB / 0.8656 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2903/2.338, allocations: 51.02 kB / 0.8656 GB, free: 84.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/2.338, allocations: 36.22 kB / 0.8656 GB, free: 84.47 MB / 426.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.0003488/2.339, allocations: 158.9 kB / 0.8658 GB, free: 84.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/2.339, allocations: 84.06 kB / 0.8659 GB, free: 84.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002723/2.342, allocations: 0.8054 MB / 0.8667 GB, free: 84.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/2.342, allocations: 7.391 kB / 0.8667 GB, free: 84.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/2.342, allocations: 3.625 kB / 0.8667 GB, free: 84.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/2.342, allocations: 3.469 kB / 0.8667 GB, free: 84.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004477/2.346, allocations: 1.556 MB / 0.8682 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/2.346, allocations: 1.156 kB / 0.8682 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/2.348, allocations: 136.9 kB / 0.8683 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/2.349, allocations: 121.5 kB / 0.8684 GB, free: 83.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/2.349, allocations: 16.02 kB / 0.8685 GB, free: 83.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/2.35, allocations: 1.75 MB / 0.8702 GB, free: 82.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/2.35, allocations: 4.906 kB / 0.8702 GB, free: 82.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/2.353, allocations: 1.116 MB / 0.8713 GB, free: 82.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/2.354, allocations: 177.1 kB / 0.8714 GB, free: 81.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/2.354, allocations: 19.06 kB / 0.8714 GB, free: 81.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009853/2.355, allocations: 39.03 kB / 0.8715 GB, free: 81.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/2.355, allocations: 54.41 kB / 0.8715 GB, free: 81.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/2.355, allocations: 25.31 kB / 0.8716 GB, free: 81.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001156/2.356, allocations: 0.5104 MB / 0.8721 GB, free: 81.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.356, allocations: 0.9375 kB / 0.8721 GB, free: 81.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003104/2.359, allocations: 0.654 MB / 0.8727 GB, free: 81.86 MB / 426.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.005383/2.365, allocations: 2.44 MB / 0.8751 GB, free: 80.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004357/2.369, allocations: 1.126 MB / 0.8762 GB, free: 80.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/2.369, allocations: 3.438 kB / 0.8762 GB, free: 80.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/2.371, allocations: 380.1 kB / 0.8765 GB, free: 80.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/2.374, allocations: 364.8 kB / 0.8769 GB, free: 80.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/2.379, allocations: 1.513 MB / 0.8784 GB, free: 80.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/2.38, allocations: 1.006 MB / 0.8794 GB, free: 79.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/2.381, allocations: 296.5 kB / 0.8796 GB, free: 79.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/2.381, allocations: 0 / 0.8796 GB, free: 79.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.467/5.847, allocations: 29.22 MB / 0.9082 GB, free: 78.81 MB / 426.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