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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.133/1.133, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.475e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05574/0.05582, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7909/0.8468, allocations: 237.8 MB / 411.2 MB, free: 59.04 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.8471, allocations: 70.55 kB / 411.3 MB, free: 59.04 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.398/2.245, allocations: 257.8 MB / 0.6534 GB, free: 14.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.535e-06/2.245, allocations: 3.938 kB / 0.6534 GB, free: 14.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000242/2.245, allocations: 35.36 kB / 0.6534 GB, free: 14.54 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.007882/2.253, allocations: 1.687 MB / 0.6551 GB, free: 12.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/2.253, allocations: 8.031 kB / 0.6551 GB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001118/2.255, allocations: 166.1 kB / 0.6552 GB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/2.259, allocations: 1.041 MB / 0.6562 GB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/2.259, allocations: 32.52 kB / 0.6563 GB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005956/2.26, allocations: 55.95 kB / 0.6563 GB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004557/2.264, allocations: 1.265 MB / 0.6576 GB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005307/2.27, allocations: 1.373 MB / 0.6589 GB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.837e-05/2.27, allocations: 7.562 kB / 0.6589 GB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/2.27, allocations: 0 / 0.6589 GB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002529/2.27, allocations: 93.94 kB / 0.659 GB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0176/2.288, allocations: 6.201 MB / 0.6651 GB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/2.291, allocations: 0.8281 MB / 0.6659 GB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/2.292, allocations: 499 kB / 0.6663 GB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1949/2.487, allocations: 2.731 MB / 0.669 GB, free: 25.6 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/2.487, allocations: 44.12 kB / 0.6691 GB, free: 25.56 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.588e-06/2.487, allocations: 0 / 0.6691 GB, free: 25.56 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.0171/2.504, allocations: 2.993 MB / 0.672 GB, free: 25.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/2.505, allocations: 193 kB / 0.6722 GB, free: 24.87 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/2.507, allocations: 0.7996 MB / 0.6729 GB, free: 24.72 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003307/2.507, allocations: 33.23 kB / 0.673 GB, free: 24.69 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006192/2.508, allocations: 0.6566 MB / 0.6736 GB, free: 24.36 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/2.508, allocations: 304 kB / 0.6739 GB, free: 24.21 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/2.508, allocations: 4.453 kB / 0.6739 GB, free: 24.21 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/2.508, allocations: 361.5 kB / 0.6743 GB, free: 23.9 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/2.51, allocations: 474.3 kB / 0.6747 GB, free: 23.9 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001935/2.512, allocations: 0.9319 MB / 0.6756 GB, free: 23.35 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004567/2.517, allocations: 0.8117 MB / 0.6764 GB, free: 23.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.591e-05/2.517, allocations: 4.125 kB / 0.6764 GB, free: 23.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.007985/2.525, allocations: 1.734 MB / 0.6781 GB, free: 23.22 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/2.525, allocations: 12.28 kB / 0.6781 GB, free: 23.22 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.971e-05/2.525, allocations: 14.34 kB / 0.6781 GB, free: 23.22 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/2.527, allocations: 311.3 kB / 0.6784 GB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/2.529, allocations: 275.9 kB / 0.6787 GB, free: 23.2 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005292/2.534, allocations: 2.363 MB / 0.681 GB, free: 21.63 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/2.536, allocations: 75.64 kB / 0.6811 GB, free: 21.63 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004574/2.537, allocations: 66.2 kB / 0.6811 GB, free: 21.63 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.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 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: 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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.0006882/2.538, allocations: 197.8 kB / 0.6813 GB, free: 21.52 MB / 250.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006542/2.544, allocations: 1.312 MB / 0.6826 GB, free: 21.38 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006098/2.545, allocations: 122.2 kB / 0.6827 GB, free: 21.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/2.552, allocations: 1.508 MB / 0.6842 GB, free: 21.19 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.133e-05/2.552, allocations: 11.28 kB / 0.6842 GB, free: 21.19 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/2.552, allocations: 3.125 kB / 0.6842 GB, free: 21.19 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.364e-05/2.552, allocations: 7.031 kB / 0.6842 GB, free: 21.19 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00975/2.562, allocations: 2.594 MB / 0.6867 GB, free: 20.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/2.562, allocations: 3.594 kB / 0.6868 GB, free: 20.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/2.563, allocations: 154.2 kB / 0.6869 GB, free: 20.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/2.565, allocations: 313.1 kB / 0.6872 GB, free: 20.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/2.566, allocations: 16.34 kB / 0.6872 GB, free: 20.8 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003992/2.57, allocations: 2.238 MB / 0.6894 GB, free: 19.23 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/2.57, allocations: 3.562 kB / 0.6894 GB, free: 19.23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006758/2.576, allocations: 2.099 MB / 0.6915 GB, free: 18.87 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006422/2.577, allocations: 204.8 kB / 0.6916 GB, free: 18.71 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006621/2.578, allocations: 13.06 kB / 0.6917 GB, free: 18.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/2.58, allocations: 51.91 kB / 0.6917 GB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005086/2.58, allocations: 98.3 kB / 0.6918 GB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/2.581, allocations: 38.95 kB / 0.6918 GB, free: 18.7 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001311/2.582, allocations: 0.595 MB / 0.6924 GB, free: 18.59 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.132e-06/2.582, allocations: 0 / 0.6924 GB, free: 18.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004092/2.586, allocations: 0.7102 MB / 0.6931 GB, free: 18.59 MB / 250.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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.01081/2.597, allocations: 3.749 MB / 0.6968 GB, free: 17.41 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003985/2.601, allocations: 1.2 MB / 0.6979 GB, free: 17.39 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/2.601, allocations: 0 / 0.6979 GB, free: 17.39 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002157/2.603, allocations: 0.6239 MB / 0.6986 GB, free: 17.38 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004886/2.608, allocations: 0.5197 MB / 0.6991 GB, free: 17.38 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009888/2.618, allocations: 2.592 MB / 0.7016 GB, free: 16.79 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/2.619, allocations: 1.266 MB / 0.7028 GB, free: 16.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/2.62, allocations: 0.5131 MB / 0.7033 GB, free: 16.06 MB / 250.7 MB Notification: Performance of SimCode: time 1.914e-06/2.621, allocations: 0 / 0.7033 GB, free: 16.06 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.926/6.546, allocations: 46.76 MB / 0.749 GB, free: 3.984 MB / 250.7 MB