Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009968/0.0009968, allocations: 86.77 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.547e-05/3.565e-05, allocations: 0 / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.122, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8721/0.9942, allocations: 323.1 MB / 0.7082 GB, free: 26 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.9944, allocations: 86.48 kB / 0.7083 GB, free: 25.96 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.544/1.538, allocations: 140 MB / 0.845 GB, free: 91.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.539, allocations: 0 / 0.845 GB, free: 91.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.746e-05/1.539, allocations: 23.94 kB / 0.845 GB, free: 91.57 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002231/1.541, allocations: 1.031 MB / 0.8461 GB, free: 90.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/1.541, allocations: 8.031 kB / 0.8461 GB, free: 90.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/1.541, allocations: 94.42 kB / 0.8461 GB, free: 90.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002887/1.541, allocations: 90.67 kB / 0.8462 GB, free: 90.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/1.542, allocations: 0.5869 MB / 0.8468 GB, free: 89.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/1.542, allocations: 36.91 kB / 0.8468 GB, free: 89.67 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-05/1.543, allocations: 47.91 kB / 0.8469 GB, free: 89.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/1.544, allocations: 0.7261 MB / 0.8476 GB, free: 88.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/1.544, allocations: 0 / 0.8476 GB, free: 88.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/1.544, allocations: 23.91 kB / 0.8476 GB, free: 88.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.176e-05/1.544, allocations: 44.95 kB / 0.8477 GB, free: 88.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008845/1.545, allocations: 0.6685 MB / 0.8483 GB, free: 88.14 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003404/1.548, allocations: 2.856 MB / 0.8511 GB, free: 85.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005658/1.549, allocations: 464.5 kB / 0.8515 GB, free: 84.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/1.549, allocations: 254.1 kB / 0.8518 GB, free: 84.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000237/1.549, allocations: 336.8 kB / 0.8521 GB, free: 84.01 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/1.549, allocations: 46.95 kB / 0.8522 GB, free: 83.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.004e-06/1.549, allocations: 4 kB / 0.8522 GB, free: 83.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.003474/1.553, allocations: 1.822 MB / 0.8539 GB, free: 82.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/1.553, allocations: 89.62 kB / 0.854 GB, free: 81.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/1.553, allocations: 0.5423 MB / 0.8546 GB, free: 81.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/1.553, allocations: 41.64 kB / 0.8546 GB, free: 81.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/1.553, allocations: 324.4 kB / 0.8549 GB, free: 81.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.554, allocations: 208.9 kB / 0.8551 GB, free: 80.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/1.554, allocations: 20 kB / 0.8551 GB, free: 80.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/1.554, allocations: 382.8 kB / 0.8555 GB, free: 80.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/1.554, allocations: 277.5 kB / 0.8558 GB, free: 80.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/1.555, allocations: 444.4 kB / 0.8562 GB, free: 79.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/1.555, allocations: 333.9 kB / 0.8565 GB, free: 79.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.555, allocations: 0 / 0.8565 GB, free: 79.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001126/1.556, allocations: 0.9141 MB / 0.8574 GB, free: 78.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003107/1.556, allocations: 1.756 MB / 0.8591 GB, free: 76.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/1.556, allocations: 4 kB / 0.8591 GB, free: 76.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/1.558, allocations: 340.5 kB / 0.8594 GB, free: 76.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/1.559, allocations: 155.7 kB / 0.8596 GB, free: 76.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006753/1.559, allocations: 0.8176 MB / 0.8604 GB, free: 75.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/1.56, allocations: 43.97 kB / 0.8604 GB, free: 75.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/1.56, allocations: 35.98 kB / 0.8605 GB, free: 75.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/1.56, allocations: 4 kB / 0.8605 GB, free: 75.13 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001024/1.561, allocations: 0.7723 MB / 0.8612 GB, free: 74.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/1.561, allocations: 8 kB / 0.8612 GB, free: 74.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/1.562, allocations: 217.2 kB / 0.8614 GB, free: 74.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005162/1.563, allocations: 171.7 kB / 0.8616 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004636/1.563, allocations: 0.6955 MB / 0.8623 GB, free: 73.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/1.564, allocations: 51.91 kB / 0.8623 GB, free: 73.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/1.564, allocations: 35.98 kB / 0.8624 GB, free: 73.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001811/1.564, allocations: 148.9 kB / 0.8625 GB, free: 73.01 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/1.564, allocations: 71.16 kB / 0.8626 GB, free: 72.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/1.565, allocations: 0.8248 MB / 0.8634 GB, free: 72.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/1.565, allocations: 8 kB / 0.8634 GB, free: 72.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.565, allocations: 0 / 0.8634 GB, free: 72.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/1.565, allocations: 3.984 kB / 0.8634 GB, free: 72.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/1.568, allocations: 1.651 MB / 0.865 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.568, allocations: 0 / 0.865 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004496/1.568, allocations: 107.9 kB / 0.8651 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/1.569, allocations: 332.5 kB / 0.8654 GB, free: 69.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.229e-05/1.569, allocations: 15.98 kB / 0.8654 GB, free: 69.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005473/1.57, allocations: 0.8049 MB / 0.8662 GB, free: 69.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.57, allocations: 96 / 0.8662 GB, free: 69.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/1.571, allocations: 1.24 MB / 0.8674 GB, free: 67.83 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/1.571, allocations: 156.2 kB / 0.8676 GB, free: 67.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-05/1.572, allocations: 16 kB / 0.8676 GB, free: 67.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/1.572, allocations: 43.91 kB / 0.8676 GB, free: 67.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.572, allocations: 52.48 kB / 0.8677 GB, free: 67.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.846e-05/1.572, allocations: 23.98 kB / 0.8677 GB, free: 67.53 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004194/1.573, allocations: 435.1 kB / 0.8681 GB, free: 67.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.573, allocations: 0 / 0.8681 GB, free: 67.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001631/1.574, allocations: 0.601 MB / 0.8687 GB, free: 66.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002853/1.577, allocations: 2.429 MB / 0.8711 GB, free: 64.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/1.579, allocations: 1.118 MB / 0.8722 GB, free: 62.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.579, allocations: 0 / 0.8722 GB, free: 62.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/1.579, allocations: 368.5 kB / 0.8725 GB, free: 62.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/1.581, allocations: 339.2 kB / 0.8728 GB, free: 62.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/1.584, allocations: 1.531 MB / 0.8743 GB, free: 60.69 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/1.584, allocations: 0.9841 MB / 0.8753 GB, free: 59.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001019/1.585, allocations: 318.9 kB / 0.8756 GB, free: 59.37 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/1.585, allocations: 243.3 kB / 0.8758 GB, free: 59.13 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/1.585, allocations: 0 / 0.8758 GB, free: 59.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04719/1.633, allocations: 28.15 MB / 0.9033 GB, free: 31.28 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.633, allocations: 188 kB / 0.9035 GB, free: 31.05 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.8/4.433, allocations: 3.938 kB / 0.9035 GB, free: 31.05 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat