Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 12 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3096, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.327, allocations: 319.7 MB / 0.6136 GB, free: 98.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/1.328, allocations: 92.02 kB / 0.6137 GB, free: 98.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.637/2.965, allocations: 280 MB / 0.8871 GB, free: 54.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.966e-06/2.965, allocations: 0 / 0.8871 GB, free: 54.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002291/2.965, allocations: 40.48 kB / 0.8871 GB, free: 54.81 MB / 410.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.009254/2.974, allocations: 1.964 MB / 0.889 GB, free: 54.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/2.974, allocations: 10.72 kB / 0.889 GB, free: 54.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007807/2.975, allocations: 163 kB / 0.8892 GB, free: 54.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/2.976, allocations: 164.6 kB / 0.8894 GB, free: 53.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005006/2.981, allocations: 1.098 MB / 0.8904 GB, free: 53.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/2.981, allocations: 84.41 kB / 0.8905 GB, free: 53.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003945/2.982, allocations: 98.8 kB / 0.8906 GB, free: 53.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005373/2.987, allocations: 1.613 MB / 0.8922 GB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.054e-05/2.987, allocations: 0 / 0.8922 GB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003055/2.988, allocations: 43.88 kB / 0.8922 GB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002689/2.988, allocations: 106.1 kB / 0.8923 GB, free: 53.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005849/2.994, allocations: 1.617 MB / 0.8939 GB, free: 53.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01864/3.013, allocations: 6.511 MB / 0.9003 GB, free: 50.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/3.015, allocations: 0.8952 MB / 0.9011 GB, free: 50.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006259/3.021, allocations: 2.732 MB / 0.9038 GB, free: 48.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/3.022, allocations: 46.19 kB / 0.9038 GB, free: 48.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 5.09e-06/3.022, allocations: 0 / 0.9038 GB, free: 48.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01448/3.036, allocations: 3.64 MB / 0.9074 GB, free: 48.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/3.036, allocations: 194.1 kB / 0.9076 GB, free: 47.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/3.038, allocations: 1.053 MB / 0.9086 GB, free: 47.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003724/3.039, allocations: 49.14 kB / 0.9087 GB, free: 47.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006331/3.039, allocations: 0.6674 MB / 0.9093 GB, free: 47.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/3.04, allocations: 329.8 kB / 0.9096 GB, free: 47.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/3.04, allocations: 29.22 kB / 0.9097 GB, free: 47.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/3.04, allocations: 362.1 kB / 0.91 GB, free: 46.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/3.042, allocations: 0.5423 MB / 0.9105 GB, free: 46.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/3.044, allocations: 1.022 MB / 0.9115 GB, free: 46.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/3.046, allocations: 0.6766 MB / 0.9122 GB, free: 46.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/3.046, allocations: 5.906 kB / 0.9122 GB, free: 46.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00558/3.051, allocations: 1.861 MB / 0.914 GB, free: 46.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001336/3.053, allocations: 5.579 MB / 0.9195 GB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.075e-05/3.053, allocations: 18.47 kB / 0.9195 GB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006528/3.059, allocations: 0.6573 MB / 0.9201 GB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/3.062, allocations: 297.3 kB / 0.9204 GB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/3.064, allocations: 2.153 MB / 0.9225 GB, free: 38.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/3.066, allocations: 99.05 kB / 0.9226 GB, free: 38.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002108/3.067, allocations: 73.19 kB / 0.9227 GB, free: 38.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/3.067, allocations: 3.75 kB / 0.9227 GB, free: 38.69 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004401/3.071, allocations: 1.664 MB / 0.9243 GB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/3.071, allocations: 17.92 kB / 0.9243 GB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005339/3.076, allocations: 0.5021 MB / 0.9248 GB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/3.079, allocations: 305.8 kB / 0.9251 GB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/3.081, allocations: 1.987 MB / 0.927 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/3.083, allocations: 106.3 kB / 0.9271 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/3.083, allocations: 73.02 kB / 0.9272 GB, free: 37.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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.001088/3.084, allocations: 471.7 kB / 0.9277 GB, free: 36.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/3.085, allocations: 140.1 kB / 0.9278 GB, free: 36.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004575/3.089, allocations: 1.509 MB / 0.9293 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/3.089, allocations: 12.12 kB / 0.9293 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/3.089, allocations: 2.156 kB / 0.9293 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/3.089, allocations: 7.781 kB / 0.9293 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007205/3.097, allocations: 2.755 MB / 0.932 GB, free: 36.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/3.097, allocations: 0.8125 kB / 0.932 GB, free: 36.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/3.098, allocations: 154.7 kB / 0.9321 GB, free: 36.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004706/3.103, allocations: 0.6174 MB / 0.9327 GB, free: 36.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/3.103, allocations: 26.31 kB / 0.9328 GB, free: 36.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/3.105, allocations: 2.102 MB / 0.9348 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/3.105, allocations: 2.719 kB / 0.9348 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005061/3.11, allocations: 2.121 MB / 0.9369 GB, free: 34.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006777/3.111, allocations: 238 kB / 0.9371 GB, free: 34.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003427/3.111, allocations: 30.19 kB / 0.9371 GB, free: 34.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/3.113, allocations: 74.59 kB / 0.9372 GB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/3.113, allocations: 99.05 kB / 0.9373 GB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/3.113, allocations: 37.56 kB / 0.9373 GB, free: 34.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001614/3.115, allocations: 0.8031 MB / 0.9381 GB, free: 34.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/3.115, allocations: 0 / 0.9381 GB, free: 34.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005043/3.12, allocations: 1.18 MB / 0.9393 GB, free: 33.82 MB / 410.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]) * Number of clocked states: 0 () * 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.008612/3.129, allocations: 3.954 MB / 0.9431 GB, free: 32.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006616/3.135, allocations: 2.212 MB / 0.9453 GB, free: 32.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/3.135, allocations: 3.438 kB / 0.9453 GB, free: 32.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/3.138, allocations: 0.7074 MB / 0.946 GB, free: 32.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/3.142, allocations: 0.4886 MB / 0.9465 GB, free: 32.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/3.155, allocations: 14.16 MB / 0.9603 GB, free: 36.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/3.156, allocations: 1.282 MB / 0.9615 GB, free: 35.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003254/3.159, allocations: 0.547 MB / 0.9621 GB, free: 35.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/3.16, allocations: 0.5147 MB / 0.9626 GB, free: 35.92 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/3.16, allocations: 0 / 0.9626 GB, free: 35.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1508/3.311, allocations: 48.56 MB / 1.01 GB, free: 27.93 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003075/3.312, allocations: 274 kB / 1.01 GB, free: 27.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.86/8.171, allocations: 0 / 1.01 GB, free: 27.57 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat