Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.097/1.097, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002675, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06027/0.06057, allocations: 25.18 MB / 183.6 MB, free: 5.855 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8161/0.8768, allocations: 238.4 MB / 422 MB, free: 52.59 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.8771, allocations: 71.11 kB / 422 MB, free: 52.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.92/1.797, allocations: 177.7 MB / 0.5857 GB, free: 24.97 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.633e-06/1.797, allocations: 0 / 0.5857 GB, free: 24.97 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.56e-05/1.797, allocations: 29.12 kB / 0.5857 GB, free: 24.96 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004151/1.801, allocations: 1.35 MB / 0.587 GB, free: 24.28 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.802, allocations: 10.03 kB / 0.587 GB, free: 24.28 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003557/1.802, allocations: 111.1 kB / 0.5871 GB, free: 24.24 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/1.802, allocations: 99.19 kB / 0.5872 GB, free: 24.2 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/1.804, allocations: 0.7493 MB / 0.5879 GB, free: 23.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.375e-05/1.804, allocations: 50.23 kB / 0.588 GB, free: 23.91 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/1.805, allocations: 55.84 kB / 0.588 GB, free: 23.91 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/1.807, allocations: 0.985 MB / 0.589 GB, free: 23.72 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/1.807, allocations: 1.875 kB / 0.589 GB, free: 23.72 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/1.807, allocations: 31.95 kB / 0.589 GB, free: 23.72 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/1.807, allocations: 64.33 kB / 0.5891 GB, free: 23.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/1.809, allocations: 0.9189 MB / 0.59 GB, free: 23.71 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00778/1.817, allocations: 4.394 MB / 0.5943 GB, free: 21.21 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/1.819, allocations: 0.5361 MB / 0.5948 GB, free: 21.18 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003029/1.822, allocations: 1.916 MB / 0.5967 GB, free: 19.84 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/1.822, allocations: 41.67 kB / 0.5967 GB, free: 19.8 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.075e-06/1.822, allocations: 0 / 0.5967 GB, free: 19.8 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.006092/1.828, allocations: 1.838 MB / 0.5985 GB, free: 19.16 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/1.828, allocations: 162.1 kB / 0.5987 GB, free: 18.97 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/1.829, allocations: 0.6954 MB / 0.5994 GB, free: 18.83 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/1.829, allocations: 39.55 kB / 0.5994 GB, free: 18.8 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/1.83, allocations: 0.4939 MB / 0.5999 GB, free: 18.49 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/1.83, allocations: 159.2 kB / 0.6 GB, free: 18.39 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.59e-05/1.83, allocations: 16.72 kB / 0.6 GB, free: 18.39 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.525e-05/1.83, allocations: 346.1 kB / 0.6004 GB, free: 18.08 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007051/1.831, allocations: 274.5 kB / 0.6006 GB, free: 18.08 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008859/1.832, allocations: 0.6293 MB / 0.6012 GB, free: 17.64 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008626/1.833, allocations: 376.1 kB / 0.6016 GB, free: 17.64 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/1.833, allocations: 0 / 0.6016 GB, free: 17.64 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002471/1.835, allocations: 0.998 MB / 0.6026 GB, free: 17.55 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/1.835, allocations: 11.19 kB / 0.6026 GB, free: 17.55 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/1.835, allocations: 10.75 kB / 0.6026 GB, free: 17.55 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003108/1.838, allocations: 315.7 kB / 0.6029 GB, free: 17.54 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.84, allocations: 178.2 kB / 0.6031 GB, free: 17.53 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/1.841, allocations: 1.306 MB / 0.6043 GB, free: 16.48 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/1.842, allocations: 62.89 kB / 0.6044 GB, free: 16.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/1.843, allocations: 46.3 kB / 0.6045 GB, free: 16.48 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007214/1.843, allocations: 306.3 kB / 0.6047 GB, free: 16.34 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/1.843, allocations: 91.67 kB / 0.6048 GB, free: 16.3 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/1.846, allocations: 0.7685 MB / 0.6056 GB, free: 16.2 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/1.846, allocations: 7.266 kB / 0.6056 GB, free: 16.2 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/1.846, allocations: 3.844 kB / 0.6056 GB, free: 16.2 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.846, allocations: 5.969 kB / 0.6056 GB, free: 16.2 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003691/1.85, allocations: 1.502 MB / 0.6071 GB, free: 15.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/1.85, allocations: 0 / 0.6071 GB, free: 15.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006488/1.85, allocations: 75.14 kB / 0.6071 GB, free: 15.84 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002251/1.853, allocations: 283.8 kB / 0.6074 GB, free: 15.82 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/1.853, allocations: 11.53 kB / 0.6074 GB, free: 15.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/1.854, allocations: 1.296 MB / 0.6087 GB, free: 14.77 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.854, allocations: 0 / 0.6087 GB, free: 14.77 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/1.857, allocations: 1.074 MB / 0.6097 GB, free: 14.51 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/1.857, allocations: 166.2 kB / 0.6099 GB, free: 14.37 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/1.857, allocations: 14.47 kB / 0.6099 GB, free: 14.37 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008102/1.858, allocations: 42.48 kB / 0.6099 GB, free: 14.37 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/1.858, allocations: 49.45 kB / 0.61 GB, free: 14.37 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.5e-05/1.858, allocations: 17.56 kB / 0.61 GB, free: 14.37 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009731/1.859, allocations: 0.5328 MB / 0.6105 GB, free: 14.28 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.859, allocations: 2.438 kB / 0.6105 GB, free: 14.28 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002372/1.862, allocations: 0.5286 MB / 0.611 GB, free: 14.16 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004767/1.866, allocations: 2.351 MB / 0.6133 GB, free: 12.8 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002236/1.869, allocations: 0.702 MB / 0.614 GB, free: 12.57 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.869, allocations: 0 / 0.614 GB, free: 12.57 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009139/1.87, allocations: 306.2 kB / 0.6143 GB, free: 12.48 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/1.873, allocations: 352.2 kB / 0.6147 GB, free: 12.41 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.888, allocations: 13.16 MB / 0.6275 GB, free: 17.88 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007383/1.889, allocations: 1.039 MB / 0.6285 GB, free: 17.14 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007012/1.89, allocations: 327.5 kB / 0.6288 GB, free: 16.91 MB / 250.7 MB Notification: Performance of SimCode: time 1.322e-06/1.89, allocations: 0 / 0.6288 GB, free: 16.91 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.786/5.676, allocations: 28.02 MB / 0.6562 GB, free: 36.42 MB / 250.7 MB