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.OneTank.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.OneTank,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.148/1.148, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002894, allocations: 8 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06187/0.06219, allocations: 25.17 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8493/0.9116, allocations: 239.6 MB / 423.2 MB, free: 51.31 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.9119, allocations: 74.89 kB / 423.2 MB, free: 51.29 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6047/1.517, allocations: 131.6 MB / 0.5418 GB, free: 16.32 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.517, allocations: 0 / 0.5418 GB, free: 16.32 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.479e-05/1.517, allocations: 23.91 kB / 0.5418 GB, free: 16.3 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002913/1.52, allocations: 1.134 MB / 0.5429 GB, free: 15.12 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.52, allocations: 11.97 kB / 0.543 GB, free: 15.11 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/1.52, allocations: 94.52 kB / 0.543 GB, free: 15.01 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/1.52, allocations: 83.06 kB / 0.5431 GB, free: 14.93 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/1.522, allocations: 0.6237 MB / 0.5437 GB, free: 14.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.76e-05/1.522, allocations: 92.41 kB / 0.5438 GB, free: 14.17 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/1.522, allocations: 47.91 kB / 0.5439 GB, free: 14.13 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/1.524, allocations: 0.7625 MB / 0.5446 GB, free: 13.32 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/1.524, allocations: 3.938 kB / 0.5446 GB, free: 13.31 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/1.524, allocations: 23.91 kB / 0.5446 GB, free: 13.29 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-05/1.524, allocations: 36.97 kB / 0.5447 GB, free: 13.25 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/1.525, allocations: 0.6205 MB / 0.5453 GB, free: 12.64 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005629/1.531, allocations: 3.605 MB / 0.5488 GB, free: 8.766 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009399/1.532, allocations: 396.1 kB / 0.5492 GB, free: 8.375 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002055/1.534, allocations: 1.343 MB / 0.5505 GB, free: 6.883 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000586/1.535, allocations: 289.7 kB / 0.5508 GB, free: 6.582 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.116e-06/1.535, allocations: 0 / 0.5508 GB, free: 6.582 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.005712/1.54, allocations: 1.824 MB / 0.5525 GB, free: 4.648 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/1.541, allocations: 162.2 kB / 0.5527 GB, free: 4.453 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/1.542, allocations: 0.5815 MB / 0.5533 GB, free: 3.863 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/1.542, allocations: 41.62 kB / 0.5533 GB, free: 3.816 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002961/1.542, allocations: 432.9 kB / 0.5537 GB, free: 3.395 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/1.542, allocations: 129.8 kB / 0.5538 GB, free: 3.27 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/1.542, allocations: 12 kB / 0.5539 GB, free: 3.258 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.241e-05/1.542, allocations: 338.8 kB / 0.5542 GB, free: 2.918 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005869/1.543, allocations: 233.5 kB / 0.5544 GB, free: 2.691 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/1.544, allocations: 0.507 MB / 0.5549 GB, free: 2.059 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007161/1.544, allocations: 341.7 kB / 0.5552 GB, free: 1.711 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/1.544, allocations: 8 kB / 0.5552 GB, free: 1.703 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002513/1.547, allocations: 0.9058 MB / 0.5561 GB, free: 0.7812 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.869e-05/1.547, allocations: 33.7 kB / 0.5561 GB, free: 0.7422 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/1.547, allocations: 16.09 kB / 0.5562 GB, free: 0.7266 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008181/1.548, allocations: 128.7 kB / 0.5563 GB, free: 0.5977 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008903/1.549, allocations: 139.8 kB / 0.5564 GB, free: 472 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1838/1.733, allocations: 0.6619 MB / 0.5571 GB, free: 31.22 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/1.735, allocations: 43.28 kB / 0.5571 GB, free: 31.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/1.735, allocations: 41.09 kB / 0.5571 GB, free: 31.22 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001112/1.736, allocations: 316.9 kB / 0.5574 GB, free: 31.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003011/1.736, allocations: 74.59 kB / 0.5575 GB, free: 31.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/1.74, allocations: 0.6873 MB / 0.5582 GB, free: 30.98 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/1.74, allocations: 3.906 kB / 0.5582 GB, free: 30.98 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/1.74, allocations: 0 / 0.5582 GB, free: 30.98 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/1.74, allocations: 6.25 kB / 0.5582 GB, free: 30.98 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005024/1.745, allocations: 1.347 MB / 0.5595 GB, free: 30.64 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/1.745, allocations: 1.375 kB / 0.5595 GB, free: 30.64 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/1.746, allocations: 60.7 kB / 0.5596 GB, free: 30.64 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/1.747, allocations: 117.8 kB / 0.5597 GB, free: 30.63 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/1.748, allocations: 12.53 kB / 0.5597 GB, free: 30.63 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/1.749, allocations: 0.6615 MB / 0.5603 GB, free: 30.11 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.749, allocations: 1.969 kB / 0.5603 GB, free: 30.11 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/1.752, allocations: 1.007 MB / 0.5613 GB, free: 29.91 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/1.752, allocations: 148.8 kB / 0.5615 GB, free: 29.82 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/1.752, allocations: 20.42 kB / 0.5615 GB, free: 29.82 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007065/1.753, allocations: 30.11 kB / 0.5615 GB, free: 29.82 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/1.753, allocations: 35.92 kB / 0.5616 GB, free: 29.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.295e-05/1.753, allocations: 22.91 kB / 0.5616 GB, free: 29.82 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008492/1.754, allocations: 462.7 kB / 0.562 GB, free: 29.71 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.754, allocations: 0 / 0.562 GB, free: 29.71 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002157/1.756, allocations: 377.1 kB / 0.5624 GB, free: 29.71 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004351/1.761, allocations: 1.976 MB / 0.5643 GB, free: 28.88 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002389/1.763, allocations: 0.6232 MB / 0.5649 GB, free: 28.81 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.763, allocations: 1.188 kB / 0.5649 GB, free: 28.81 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/1.764, allocations: 313.2 kB / 0.5652 GB, free: 28.75 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/1.767, allocations: 276.4 kB / 0.5655 GB, free: 28.75 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/1.781, allocations: 10.57 MB / 0.5758 GB, free: 21.36 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005578/1.781, allocations: 0.9749 MB / 0.5767 GB, free: 20.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006194/1.782, allocations: 243.2 kB / 0.577 GB, free: 20.66 MB / 234.7 MB Notification: Performance of SimCode: time 1.272e-06/1.782, allocations: 2.688 kB / 0.577 GB, free: 20.66 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.352/5.135, allocations: 19.09 MB / 0.5956 GB, free: 19.66 MB / 234.7 MB