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/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.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.064/1.064, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.171e-05, allocations: 4 kB / 148.2 MB, free: 6.137 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06213/0.06221, allocations: 25.19 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8055/0.8678, allocations: 235.9 MB / 409.3 MB, free: 59.99 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.8682, allocations: 66.62 kB / 409.4 MB, free: 59.99 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.278/2.147, allocations: 245.4 MB / 0.6395 GB, free: 12.57 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.338e-06/2.147, allocations: 7.984 kB / 0.6395 GB, free: 12.56 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002214/2.147, allocations: 39.05 kB / 0.6395 GB, free: 12.53 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.008008/2.155, allocations: 1.675 MB / 0.6411 GB, free: 10.82 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/2.155, allocations: 12.03 kB / 0.6412 GB, free: 10.81 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/2.156, allocations: 150.3 kB / 0.6413 GB, free: 10.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/2.16, allocations: 1.01 MB / 0.6423 GB, free: 9.629 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003336/2.161, allocations: 139.1 kB / 0.6424 GB, free: 9.473 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006013/2.161, allocations: 64 kB / 0.6425 GB, free: 9.41 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004214/2.165, allocations: 1.378 MB / 0.6438 GB, free: 8.031 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004916/2.17, allocations: 1.475 MB / 0.6453 GB, free: 6.512 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/2.171, allocations: 3.938 kB / 0.6453 GB, free: 6.508 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/2.171, allocations: 0 / 0.6453 GB, free: 6.508 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002548/2.171, allocations: 105.9 kB / 0.6454 GB, free: 6.406 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/2.189, allocations: 5.558 MB / 0.6508 GB, free: 0.6523 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003397/2.193, allocations: 1.059 MB / 0.6518 GB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002066/2.195, allocations: 0.6451 MB / 0.6525 GB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01092/2.206, allocations: 3.893 MB / 0.6563 GB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.245e-05/2.206, allocations: 51.33 kB / 0.6563 GB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001913/2.208, allocations: 163 kB / 0.6565 GB, free: 10.49 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 1.071e-05/2.208, allocations: 4.094 kB / 0.6565 GB, free: 10.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.02253/2.231, allocations: 3.933 MB / 0.6603 GB, free: 6.508 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/2.231, allocations: 141.8 kB / 0.6604 GB, free: 6.336 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/2.233, allocations: 0.7311 MB / 0.6612 GB, free: 5.586 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004124/2.233, allocations: 29.7 kB / 0.6612 GB, free: 5.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006484/2.234, allocations: 0.5832 MB / 0.6618 GB, free: 4.961 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007818/2.235, allocations: 350.7 kB / 0.6621 GB, free: 4.613 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/2.235, allocations: 0 / 0.6621 GB, free: 4.613 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/2.235, allocations: 362.8 kB / 0.6624 GB, free: 4.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/2.237, allocations: 0.5375 MB / 0.663 GB, free: 3.715 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/2.239, allocations: 0.8407 MB / 0.6638 GB, free: 2.742 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00555/2.245, allocations: 0.9468 MB / 0.6647 GB, free: 1.801 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.396e-05/2.245, allocations: 4 kB / 0.6647 GB, free: 1.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.201/2.446, allocations: 1.996 MB / 0.6667 GB, free: 31.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/2.446, allocations: 12.66 kB / 0.6667 GB, free: 31.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/2.446, allocations: 9.188 kB / 0.6667 GB, free: 31.51 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01174/2.458, allocations: 1.034 MB / 0.6677 GB, free: 31.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002355/2.46, allocations: 271.2 kB / 0.6679 GB, free: 31.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00673/2.467, allocations: 1.811 MB / 0.6697 GB, free: 30.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/2.47, allocations: 79.25 kB / 0.6698 GB, free: 30.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005826/2.47, allocations: 61.64 kB / 0.6699 GB, free: 30.98 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 {9 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004837/2.471, allocations: 133.6 kB / 0.67 GB, free: 30.88 MB / 250.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008407/2.479, allocations: 1.781 MB / 0.6717 GB, free: 30.83 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007208/2.48, allocations: 122.6 kB / 0.6718 GB, free: 30.83 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/2.491, allocations: 2.079 MB / 0.6739 GB, free: 30.73 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.579e-05/2.491, allocations: 14.28 kB / 0.6739 GB, free: 30.73 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/2.491, allocations: 3.469 kB / 0.6739 GB, free: 30.73 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.623e-05/2.491, allocations: 6.328 kB / 0.6739 GB, free: 30.73 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/2.505, allocations: 3.294 MB / 0.6771 GB, free: 30.41 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/2.505, allocations: 0 / 0.6771 GB, free: 30.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002072/2.507, allocations: 184.3 kB / 0.6773 GB, free: 30.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005192/2.512, allocations: 0.7876 MB / 0.678 GB, free: 30.4 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000372/2.513, allocations: 18.84 kB / 0.6781 GB, free: 30.4 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006344/2.519, allocations: 1.878 MB / 0.6799 GB, free: 29.87 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/2.519, allocations: 0 / 0.6799 GB, free: 29.87 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009873/2.529, allocations: 2.761 MB / 0.6826 GB, free: 29.62 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/2.53, allocations: 197.2 kB / 0.6828 GB, free: 29.46 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006596/2.531, allocations: 1.75 kB / 0.6828 GB, free: 29.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002387/2.533, allocations: 73.83 kB / 0.6829 GB, free: 29.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005845/2.534, allocations: 99.08 kB / 0.683 GB, free: 29.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/2.534, allocations: 43.33 kB / 0.683 GB, free: 29.46 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001253/2.535, allocations: 0.5435 MB / 0.6835 GB, free: 29.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.61e-07/2.535, allocations: 0 / 0.6835 GB, free: 29.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004031/2.539, allocations: 0.7319 MB / 0.6842 GB, free: 29.35 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.01321/2.553, allocations: 4.054 MB / 0.6882 GB, free: 28.55 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005972/2.559, allocations: 1.482 MB / 0.6896 GB, free: 28.53 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/2.559, allocations: 0 / 0.6896 GB, free: 28.53 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003903/2.563, allocations: 0.8316 MB / 0.6905 GB, free: 28.51 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/2.568, allocations: 0.5597 MB / 0.691 GB, free: 28.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/2.581, allocations: 2.832 MB / 0.6938 GB, free: 27.94 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009252/2.582, allocations: 1.276 MB / 0.695 GB, free: 27.23 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/2.583, allocations: 0.5028 MB / 0.6955 GB, free: 27.22 MB / 250.7 MB Notification: Performance of SimCode: time 1.362e-06/2.583, allocations: 3.688 kB / 0.6955 GB, free: 27.22 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.868/6.451, allocations: 36.97 MB / 0.7316 GB, free: 22.33 MB / 250.7 MB