Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.491/1.491, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 107 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.0003221, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3502, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9822/1.333, allocations: 322.3 MB / 0.7069 GB, free: 122.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/1.333, allocations: 91.16 kB / 0.707 GB, free: 122.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3013/1.634, allocations: 140.7 MB / 0.8444 GB, free: 11.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.423e-06/1.634, allocations: 3.938 kB / 0.8444 GB, free: 11.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.434e-05/1.634, allocations: 23.94 kB / 0.8444 GB, free: 11.09 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.003167/1.637, allocations: 1.134 MB / 0.8456 GB, free: 9.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/1.638, allocations: 12.03 kB / 0.8456 GB, free: 9.898 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000312/1.638, allocations: 86.5 kB / 0.8456 GB, free: 9.805 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000488/1.638, allocations: 91.06 kB / 0.8457 GB, free: 9.715 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001595/1.64, allocations: 0.5832 MB / 0.8463 GB, free: 9.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.192e-05/1.64, allocations: 37 kB / 0.8463 GB, free: 9.055 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/1.64, allocations: 47.98 kB / 0.8464 GB, free: 9.008 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/1.642, allocations: 0.7303 MB / 0.8471 GB, free: 8.246 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/1.642, allocations: 0 / 0.8471 GB, free: 8.246 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.61e-05/1.642, allocations: 23.98 kB / 0.8471 GB, free: 8.223 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.971e-05/1.642, allocations: 40.97 kB / 0.8472 GB, free: 8.184 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/1.643, allocations: 0.6909 MB / 0.8478 GB, free: 7.488 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/1.647, allocations: 2.853 MB / 0.8506 GB, free: 4.453 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006219/1.648, allocations: 472.5 kB / 0.8511 GB, free: 3.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002365/1.648, allocations: 341.3 kB / 0.8514 GB, free: 3.574 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/1.648, allocations: 43 kB / 0.8514 GB, free: 3.523 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.895e-06/1.648, allocations: 0 / 0.8514 GB, free: 3.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.004988/1.653, allocations: 2.273 MB / 0.8537 GB, free: 1.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/1.653, allocations: 85.67 kB / 0.8537 GB, free: 1.078 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006493/1.654, allocations: 0.5422 MB / 0.8543 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/1.654, allocations: 45.69 kB / 0.8543 GB, free: 488 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/1.654, allocations: 328.5 kB / 0.8546 GB, free: 156 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2695/1.924, allocations: 199 kB / 0.8548 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/1.924, allocations: 13.5 kB / 0.8548 GB, free: 110.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004081/1.924, allocations: 383.3 kB / 0.8552 GB, free: 109.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008973/1.925, allocations: 284.6 kB / 0.8555 GB, free: 109.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008627/1.926, allocations: 453.8 kB / 0.8559 GB, free: 109.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007758/1.927, allocations: 335.7 kB / 0.8562 GB, free: 109.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/1.927, allocations: 1.562 kB / 0.8562 GB, free: 109.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002088/1.929, allocations: 0.9332 MB / 0.8571 GB, free: 109.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004575/1.929, allocations: 1.749 MB / 0.8588 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.929, allocations: 3.938 kB / 0.8588 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/1.931, allocations: 362.2 kB / 0.8592 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/1.932, allocations: 154.2 kB / 0.8593 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009552/1.933, allocations: 0.8153 MB / 0.8601 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007249/1.934, allocations: 45.86 kB / 0.8602 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-05/1.934, allocations: 33.41 kB / 0.8602 GB, free: 107.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/1.934, allocations: 3.875 kB / 0.8602 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001573/1.936, allocations: 0.7834 MB / 0.861 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/1.936, allocations: 9 kB / 0.861 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001496/1.937, allocations: 227.5 kB / 0.8612 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007313/1.938, allocations: 155.8 kB / 0.8613 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006915/1.939, allocations: 0.6941 MB / 0.862 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006977/1.939, allocations: 55.88 kB / 0.8621 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/1.939, allocations: 32.25 kB / 0.8621 GB, free: 106.7 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 () * Number of clocked 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.0005182/1.94, allocations: 323.3 kB / 0.8624 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/1.94, allocations: 68.92 kB / 0.8625 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/1.941, allocations: 0.85 MB / 0.8633 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/1.941, allocations: 6.406 kB / 0.8633 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/1.941, allocations: 3.656 kB / 0.8633 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/1.941, allocations: 3.703 kB / 0.8633 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/1.944, allocations: 1.667 MB / 0.865 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.944, allocations: 0 / 0.865 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004779/1.944, allocations: 108.2 kB / 0.8651 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/1.946, allocations: 342.9 kB / 0.8654 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/1.946, allocations: 17.83 kB / 0.8654 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006183/1.947, allocations: 0.8041 MB / 0.8662 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.947, allocations: 7.547 kB / 0.8662 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/1.948, allocations: 1.254 MB / 0.8674 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/1.948, allocations: 150.9 kB / 0.8676 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.954e-05/1.948, allocations: 16.81 kB / 0.8676 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000516/1.949, allocations: 44.2 kB / 0.8676 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/1.949, allocations: 50.39 kB / 0.8677 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.377e-05/1.949, allocations: 28.97 kB / 0.8677 GB, free: 105.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004929/1.95, allocations: 436.8 kB / 0.8681 GB, free: 105.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.95, allocations: 0 / 0.8681 GB, free: 105.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001894/1.952, allocations: 0.5853 MB / 0.8687 GB, free: 105.1 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]) * Number of clocked states: 0 () * 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.00317/1.955, allocations: 2.444 MB / 0.8711 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002202/1.957, allocations: 1.123 MB / 0.8722 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.957, allocations: 0 / 0.8722 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005621/1.958, allocations: 379.3 kB / 0.8725 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/1.959, allocations: 330.9 kB / 0.8728 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004772/1.964, allocations: 5.396 MB / 0.8781 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/1.964, allocations: 0.9873 MB / 0.8791 GB, free: 99.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0011/1.966, allocations: 271.1 kB / 0.8793 GB, free: 99.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/1.966, allocations: 254.5 kB / 0.8796 GB, free: 99.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/1.966, allocations: 2.219 kB / 0.8796 GB, free: 99.56 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04671/2.013, allocations: 26.73 MB / 0.9057 GB, free: 98.61 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/2.013, allocations: 211.4 kB / 0.9059 GB, free: 98.37 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/4.908, allocations: 0 / 0.9059 GB, free: 98.37 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat