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 1.03/1.03, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003755, allocations: 8 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07187/0.07229, allocations: 25.17 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8171/0.8895, allocations: 236.7 MB / 420.3 MB, free: 54.17 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.8898, allocations: 68.41 kB / 420.3 MB, free: 54.14 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.336/2.226, allocations: 248 MB / 0.6527 GB, free: 4.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.376e-06/2.226, allocations: 0 / 0.6527 GB, free: 4.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002565/2.226, allocations: 35.98 kB / 0.6527 GB, free: 4.578 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.01064/2.237, allocations: 1.857 MB / 0.6545 GB, free: 2.664 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/2.237, allocations: 8.031 kB / 0.6545 GB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009804/2.238, allocations: 160.1 kB / 0.6547 GB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000737/2.239, allocations: 162.2 kB / 0.6548 GB, free: 2.332 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/2.243, allocations: 1.005 MB / 0.6558 GB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004129/2.243, allocations: 187 kB / 0.656 GB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005543/2.244, allocations: 95.91 kB / 0.6561 GB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2042/2.448, allocations: 1.649 MB / 0.6577 GB, free: 23.36 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.633e-05/2.448, allocations: 0 / 0.6577 GB, free: 23.36 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/2.449, allocations: 45.48 kB / 0.6577 GB, free: 23.36 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002836/2.449, allocations: 107.3 kB / 0.6578 GB, free: 23.36 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005364/2.454, allocations: 1.611 MB / 0.6594 GB, free: 23.35 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/2.47, allocations: 5.786 MB / 0.6651 GB, free: 21.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/2.474, allocations: 1.155 MB / 0.6662 GB, free: 21.44 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009237/2.484, allocations: 3.855 MB / 0.6699 GB, free: 19.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/2.484, allocations: 50.38 kB / 0.67 GB, free: 19.29 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001637/2.485, allocations: 206.2 kB / 0.6702 GB, free: 19.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 5.06e-06/2.485, allocations: 1.094 kB / 0.6702 GB, free: 19.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.0309/2.516, allocations: 5.385 MB / 0.6755 GB, free: 18.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.249e-05/2.516, allocations: 140.2 kB / 0.6756 GB, free: 18.47 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002172/2.519, allocations: 1.002 MB / 0.6766 GB, free: 18.32 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004964/2.519, allocations: 44.05 kB / 0.6766 GB, free: 18.29 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004849/2.52, allocations: 0.5591 MB / 0.6772 GB, free: 18.03 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006035/2.52, allocations: 368 kB / 0.6775 GB, free: 17.85 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/2.52, allocations: 27.81 kB / 0.6775 GB, free: 17.85 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/2.521, allocations: 360 kB / 0.6779 GB, free: 17.53 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/2.523, allocations: 0.6115 MB / 0.6785 GB, free: 17.53 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/2.525, allocations: 0.9349 MB / 0.6794 GB, free: 17.18 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/2.527, allocations: 0.7237 MB / 0.6801 GB, free: 17.17 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/2.527, allocations: 2.906 kB / 0.6801 GB, free: 17.17 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006204/2.533, allocations: 1.966 MB / 0.682 GB, free: 17.08 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/2.533, allocations: 11.44 kB / 0.682 GB, free: 17.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/2.533, allocations: 9.344 kB / 0.682 GB, free: 17.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01293/2.546, allocations: 1.259 MB / 0.6833 GB, free: 17.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00217/2.549, allocations: 268.5 kB / 0.6835 GB, free: 17.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004451/2.553, allocations: 1.624 MB / 0.6851 GB, free: 16.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/2.556, allocations: 92.92 kB / 0.6852 GB, free: 16.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/2.556, allocations: 60.69 kB / 0.6853 GB, free: 16.53 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 () * Number of clocked 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.001028/2.557, allocations: 368.5 kB / 0.6856 GB, free: 16.42 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004077/2.557, allocations: 134.8 kB / 0.6857 GB, free: 16.35 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006893/2.564, allocations: 2.027 MB / 0.6877 GB, free: 16.26 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/2.564, allocations: 13.44 kB / 0.6877 GB, free: 16.26 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/2.564, allocations: 2.156 kB / 0.6877 GB, free: 16.26 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.332e-05/2.565, allocations: 7.25 kB / 0.6877 GB, free: 16.26 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009218/2.574, allocations: 3.371 MB / 0.691 GB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/2.574, allocations: 0 / 0.691 GB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/2.575, allocations: 184.4 kB / 0.6912 GB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006549/2.582, allocations: 1.002 MB / 0.6922 GB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000296/2.582, allocations: 28.7 kB / 0.6922 GB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00437/2.587, allocations: 1.678 MB / 0.6938 GB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/2.587, allocations: 0 / 0.6938 GB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007671/2.595, allocations: 2.762 MB / 0.6965 GB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007598/2.595, allocations: 216.4 kB / 0.6967 GB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/2.596, allocations: 21.52 kB / 0.6968 GB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/2.598, allocations: 96.42 kB / 0.6969 GB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003304/2.598, allocations: 99.89 kB / 0.697 GB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001691/2.598, allocations: 52.83 kB / 0.697 GB, free: 14.93 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001495/2.6, allocations: 0.7573 MB / 0.6977 GB, free: 14.82 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.6, allocations: 0 / 0.6977 GB, free: 14.82 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003377/2.603, allocations: 0.7833 MB / 0.6985 GB, free: 14.82 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 () * Number of clocked 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.01102/2.614, allocations: 4.076 MB / 0.7025 GB, free: 14.01 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0067/2.621, allocations: 1.663 MB / 0.7041 GB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/2.621, allocations: 0 / 0.7041 GB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003943/2.625, allocations: 0.9094 MB / 0.705 GB, free: 13.96 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00564/2.631, allocations: 0.6382 MB / 0.7056 GB, free: 13.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03972/2.67, allocations: 15.85 MB / 0.7211 GB, free: 21.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/2.672, allocations: 1.277 MB / 0.7224 GB, free: 20.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/2.674, allocations: 0.5119 MB / 0.7229 GB, free: 20.36 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/2.674, allocations: 0 / 0.7229 GB, free: 20.36 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.609/6.282, allocations: 38.39 MB / 0.7604 GB, free: 2.422 MB / 266.7 MB