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.TankWithEmptyingPipe1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.054/1.054, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.995e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05691/0.05697, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8545/0.9115, allocations: 240.7 MB / 414.1 MB, free: 58.45 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.9118, allocations: 70.45 kB / 414.1 MB, free: 58.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6646/1.576, allocations: 152.9 MB / 0.5537 GB, free: 14.41 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.576, allocations: 0 / 0.5537 GB, free: 14.41 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.902e-05/1.577, allocations: 23.59 kB / 0.5538 GB, free: 14.39 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003583/1.58, allocations: 1.086 MB / 0.5548 GB, free: 13.27 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/1.58, allocations: 11.97 kB / 0.5548 GB, free: 13.25 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004388/1.581, allocations: 90.97 kB / 0.5549 GB, free: 13.16 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/1.583, allocations: 0.6395 MB / 0.5555 GB, free: 12.5 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.241e-05/1.583, allocations: 23.94 kB / 0.5556 GB, free: 12.47 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/1.583, allocations: 32.52 kB / 0.5556 GB, free: 12.44 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001604/1.585, allocations: 0.6624 MB / 0.5562 GB, free: 11.78 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/1.586, allocations: 0.7819 MB / 0.557 GB, free: 10.93 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/1.586, allocations: 0 / 0.557 GB, free: 10.93 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/1.586, allocations: 4 kB / 0.557 GB, free: 10.93 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-05/1.587, allocations: 53.28 kB / 0.5571 GB, free: 10.88 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00671/1.593, allocations: 3.876 MB / 0.5608 GB, free: 6.75 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/1.594, allocations: 459.2 kB / 0.5613 GB, free: 6.293 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004551/1.595, allocations: 221.5 kB / 0.5615 GB, free: 6.074 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003725/1.599, allocations: 2.076 MB / 0.5635 GB, free: 3.766 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/1.599, allocations: 42.5 kB / 0.5636 GB, free: 3.715 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.807e-06/1.599, allocations: 0 / 0.5636 GB, free: 3.715 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.009808/1.609, allocations: 1.653 MB / 0.5652 GB, free: 2.008 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/1.609, allocations: 132.5 kB / 0.5653 GB, free: 1.848 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008239/1.61, allocations: 0.5033 MB / 0.5658 GB, free: 1.34 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/1.61, allocations: 25.7 kB / 0.5658 GB, free: 1.309 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/1.61, allocations: 472.9 kB / 0.5663 GB, free: 0.8438 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/1.61, allocations: 149.9 kB / 0.5664 GB, free: 0.6953 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.127e-05/1.61, allocations: 4 kB / 0.5664 GB, free: 0.6914 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.848e-05/1.61, allocations: 346.7 kB / 0.5667 GB, free: 352 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/1.611, allocations: 214 kB / 0.567 GB, free: 136 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1697/1.781, allocations: 0.5334 MB / 0.5675 GB, free: 29.37 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003114/1.784, allocations: 486.3 kB / 0.5679 GB, free: 29.36 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-05/1.784, allocations: 6.438 kB / 0.5679 GB, free: 29.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004612/1.788, allocations: 0.9227 MB / 0.5688 GB, free: 29.32 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/1.789, allocations: 9.938 kB / 0.5689 GB, free: 29.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.417e-05/1.789, allocations: 9.531 kB / 0.5689 GB, free: 29.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/1.789, allocations: 55.94 kB / 0.5689 GB, free: 29.31 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/1.791, allocations: 238.5 kB / 0.5691 GB, free: 29.31 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/1.792, allocations: 1.27 MB / 0.5704 GB, free: 28.21 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/1.794, allocations: 48.98 kB / 0.5704 GB, free: 28.21 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/1.794, allocations: 42.28 kB / 0.5705 GB, free: 28.21 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" 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" 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: 48 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003338/1.794, allocations: 153.2 kB / 0.5706 GB, free: 28.11 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003319/1.797, allocations: 0.6287 MB / 0.5712 GB, free: 28.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/1.798, allocations: 65.78 kB / 0.5713 GB, free: 28.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003115/1.801, allocations: 0.7811 MB / 0.5721 GB, free: 28.01 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/1.801, allocations: 7.797 kB / 0.5721 GB, free: 28 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/1.801, allocations: 2.031 kB / 0.5721 GB, free: 28 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/1.801, allocations: 3.141 kB / 0.5721 GB, free: 28 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004615/1.805, allocations: 1.361 MB / 0.5734 GB, free: 27.7 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/1.806, allocations: 0 / 0.5734 GB, free: 27.7 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/1.807, allocations: 150.3 kB / 0.5735 GB, free: 27.7 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002339/1.807, allocations: 39.86 kB / 0.5736 GB, free: 27.69 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.481e-05/1.807, allocations: 6.062 kB / 0.5736 GB, free: 27.69 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/1.808, allocations: 1.21 MB / 0.5748 GB, free: 26.59 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.808, allocations: 5.328 kB / 0.5748 GB, free: 26.59 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/1.812, allocations: 1.035 MB / 0.5758 GB, free: 26.32 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/1.812, allocations: 146.2 kB / 0.5759 GB, free: 26.2 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/1.812, allocations: 7.031 kB / 0.5759 GB, free: 26.2 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007447/1.813, allocations: 31.45 kB / 0.576 GB, free: 26.19 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/1.813, allocations: 53.16 kB / 0.576 GB, free: 26.19 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.808e-05/1.813, allocations: 26.5 kB / 0.576 GB, free: 26.19 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007891/1.814, allocations: 381.8 kB / 0.5764 GB, free: 26.1 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.814, allocations: 0.5469 kB / 0.5764 GB, free: 26.1 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00236/1.817, allocations: 423.8 kB / 0.5768 GB, free: 26.1 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005853/1.822, allocations: 2.286 MB / 0.579 GB, free: 25.09 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002146/1.825, allocations: 0.5994 MB / 0.5796 GB, free: 25.09 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.825, allocations: 0 / 0.5796 GB, free: 25.09 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/1.826, allocations: 316.3 kB / 0.5799 GB, free: 25.09 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/1.829, allocations: 305 kB / 0.5802 GB, free: 25.08 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004808/1.833, allocations: 1.392 MB / 0.5816 GB, free: 24.71 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/1.834, allocations: 0.9977 MB / 0.5825 GB, free: 24.01 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007113/1.835, allocations: 290.8 kB / 0.5828 GB, free: 24 MB / 234.7 MB Notification: Performance of SimCode: time 2.144e-06/1.835, allocations: 0 / 0.5828 GB, free: 24 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.615/5.449, allocations: 24.6 MB / 0.6068 GB, free: 22.68 MB / 234.7 MB