Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9877/0.9877, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.05e-05/2.068e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1692, allocations: 25.16 MB / 179.5 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6262/0.7955, allocations: 236.6 MB / 416.1 MB, free: 10.21 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.7959, allocations: 72.36 kB / 416.2 MB, free: 10.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523/2.318, allocations: 247 MB / 0.6477 GB, free: 26.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.625e-06/2.319, allocations: 0 / 0.6477 GB, free: 26.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001681/2.319, allocations: 36.69 kB / 0.6477 GB, free: 26.56 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.007459/2.326, allocations: 1.674 MB / 0.6493 GB, free: 25.72 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/2.326, allocations: 11.84 kB / 0.6493 GB, free: 25.72 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006219/2.327, allocations: 150.2 kB / 0.6495 GB, free: 25.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00067/2.328, allocations: 156.8 kB / 0.6496 GB, free: 25.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/2.331, allocations: 1.01 MB / 0.6506 GB, free: 25.29 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/2.331, allocations: 180.9 kB / 0.6508 GB, free: 25.19 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003369/2.332, allocations: 102.2 kB / 0.6509 GB, free: 25.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004258/2.336, allocations: 1.599 MB / 0.6524 GB, free: 25.02 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-05/2.336, allocations: 0 / 0.6524 GB, free: 25.02 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002312/2.336, allocations: 40.78 kB / 0.6525 GB, free: 25.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/2.337, allocations: 106.5 kB / 0.6526 GB, free: 25.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004098/2.341, allocations: 1.546 MB / 0.6541 GB, free: 25.01 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01657/2.357, allocations: 5.8 MB / 0.6598 GB, free: 23.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/2.36, allocations: 1.102 MB / 0.6608 GB, free: 22.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/2.362, allocations: 0.6679 MB / 0.6615 GB, free: 22.98 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008275/2.37, allocations: 3.975 MB / 0.6654 GB, free: 20.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/2.371, allocations: 44.44 kB / 0.6654 GB, free: 20.76 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001615/2.372, allocations: 205.6 kB / 0.6656 GB, free: 20.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 4.759e-06/2.372, allocations: 0 / 0.6656 GB, free: 20.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.01305/2.385, allocations: 3.546 MB / 0.6691 GB, free: 20.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/2.385, allocations: 140.3 kB / 0.6692 GB, free: 20.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/2.387, allocations: 0.9846 MB / 0.6702 GB, free: 19.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003151/2.388, allocations: 45.52 kB / 0.6702 GB, free: 19.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004264/2.388, allocations: 0.5537 MB / 0.6707 GB, free: 19.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004262/2.389, allocations: 369.9 kB / 0.6711 GB, free: 19.3 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/2.389, allocations: 23.59 kB / 0.6711 GB, free: 19.3 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/2.389, allocations: 360.5 kB / 0.6715 GB, free: 18.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/2.39, allocations: 0.5585 MB / 0.672 GB, free: 18.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/2.392, allocations: 0.8774 MB / 0.6729 GB, free: 18.63 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/2.394, allocations: 0.6866 MB / 0.6735 GB, free: 18.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/2.394, allocations: 3.875 kB / 0.6735 GB, free: 18.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004679/2.398, allocations: 1.819 MB / 0.6753 GB, free: 18.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/2.399, allocations: 13.38 kB / 0.6753 GB, free: 18.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/2.399, allocations: 11.72 kB / 0.6753 GB, free: 18.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/2.411, allocations: 1.176 MB / 0.6765 GB, free: 18.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/2.413, allocations: 267.8 kB / 0.6767 GB, free: 18.51 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003439/2.417, allocations: 1.5 MB / 0.6782 GB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/2.419, allocations: 100.2 kB / 0.6783 GB, free: 17.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/2.42, allocations: 62.25 kB / 0.6784 GB, free: 17.87 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 15} Notification: Performance of prepare postOptimizeDAE: time 0.000433/2.42, allocations: 179.6 kB / 0.6785 GB, free: 17.72 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/2.42, allocations: 139.7 kB / 0.6787 GB, free: 17.65 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005966/2.426, allocations: 1.881 MB / 0.6805 GB, free: 16.96 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/2.426, allocations: 18.66 kB / 0.6805 GB, free: 16.96 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/2.426, allocations: 0 / 0.6805 GB, free: 16.96 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.272e-05/2.426, allocations: 9.656 kB / 0.6805 GB, free: 16.96 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/2.435, allocations: 3.221 MB / 0.6837 GB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/2.435, allocations: 0 / 0.6837 GB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/2.437, allocations: 183.7 kB / 0.6839 GB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006109/2.443, allocations: 0.906 MB / 0.6847 GB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003123/2.443, allocations: 34.08 kB / 0.6848 GB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/2.447, allocations: 1.544 MB / 0.6863 GB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/2.447, allocations: 3.188 kB / 0.6863 GB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006276/2.453, allocations: 2.572 MB / 0.6888 GB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007089/2.454, allocations: 220.5 kB / 0.689 GB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004142/2.454, allocations: 24 kB / 0.689 GB, free: 12.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/2.456, allocations: 96.09 kB / 0.6891 GB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/2.457, allocations: 99.89 kB / 0.6892 GB, free: 12.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/2.457, allocations: 50.83 kB / 0.6893 GB, free: 12.05 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.00147/2.458, allocations: 0.7457 MB / 0.69 GB, free: 11.36 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.41e-07/2.458, allocations: 0 / 0.69 GB, free: 11.36 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003331/2.462, allocations: 0.7825 MB / 0.6908 GB, free: 10.6 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.008849/2.471, allocations: 3.898 MB / 0.6946 GB, free: 7.141 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005803/2.476, allocations: 1.56 MB / 0.6961 GB, free: 5.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/2.477, allocations: 4 kB / 0.6961 GB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003519/2.48, allocations: 0.8616 MB / 0.6969 GB, free: 4.984 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005572/2.486, allocations: 0.6366 MB / 0.6976 GB, free: 4.527 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/2.497, allocations: 2.972 MB / 0.7005 GB, free: 1.945 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008269/2.498, allocations: 1.275 MB / 0.7017 GB, free: 0.8555 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/2.499, allocations: 0.5137 MB / 0.7022 GB, free: 396 kB / 250.7 MB Notification: Performance of SimCode: time 1.573e-06/2.499, allocations: 0 / 0.7022 GB, free: 396 kB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.582/6.081, allocations: 38.32 MB / 0.7396 GB, free: 21.12 MB / 250.7 MB