Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.027/2.027, allocations: 209.3 MB / 224.8 MB, free: 0.5977 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.000446, allocations: 8 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3564, allocations: 48.71 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.395, allocations: 323.9 MB / 0.6399 GB, free: 122.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/1.395, allocations: 89.89 kB / 0.64 GB, free: 122.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5143/1.909, allocations: 141.9 MB / 0.7786 GB, free: 27.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.909, allocations: 0 / 0.7786 GB, free: 27.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.168e-05/1.909, allocations: 24 kB / 0.7786 GB, free: 27.4 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004112/1.914, allocations: 1.283 MB / 0.7798 GB, free: 26.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/1.914, allocations: 8.031 kB / 0.7798 GB, free: 26.05 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004129/1.914, allocations: 110.5 kB / 0.78 GB, free: 25.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005727/1.915, allocations: 110.9 kB / 0.7801 GB, free: 25.83 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/1.917, allocations: 0.6985 MB / 0.7807 GB, free: 25.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/1.917, allocations: 112.7 kB / 0.7808 GB, free: 24.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/1.917, allocations: 55.98 kB / 0.7809 GB, free: 24.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/1.92, allocations: 1.007 MB / 0.7819 GB, free: 23.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/1.92, allocations: 3.953 kB / 0.7819 GB, free: 23.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/1.92, allocations: 27.98 kB / 0.7819 GB, free: 23.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/1.92, allocations: 53.28 kB / 0.782 GB, free: 23.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/1.922, allocations: 0.899 MB / 0.7828 GB, free: 22.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008944/1.931, allocations: 4.006 MB / 0.7868 GB, free: 18.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/1.933, allocations: 0.6294 MB / 0.7874 GB, free: 18.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004365/1.937, allocations: 2.291 MB / 0.7896 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009613/1.938, allocations: 437.6 kB / 0.79 GB, free: 15.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 4.839e-06/1.938, allocations: 4 kB / 0.79 GB, free: 15.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.008606/1.947, allocations: 2.648 MB / 0.7926 GB, free: 12.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/1.947, allocations: 166.2 kB / 0.7928 GB, free: 12.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/1.948, allocations: 0.6834 MB / 0.7934 GB, free: 11.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/1.949, allocations: 37.7 kB / 0.7935 GB, free: 11.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/1.949, allocations: 457.6 kB / 0.7939 GB, free: 10.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/1.949, allocations: 165.7 kB / 0.7941 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.787e-05/1.949, allocations: 16 kB / 0.7941 GB, free: 10.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.474e-05/1.949, allocations: 346.8 kB / 0.7944 GB, free: 10.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000997/1.95, allocations: 357.8 kB / 0.7948 GB, free: 9.996 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/1.951, allocations: 0.6276 MB / 0.7954 GB, free: 9.238 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/1.953, allocations: 463.5 kB / 0.7958 GB, free: 8.777 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/1.953, allocations: 4 kB / 0.7958 GB, free: 8.773 MB / 442.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003665/1.956, allocations: 1.232 MB / 0.797 GB, free: 7.523 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007873/1.957, allocations: 3.434 MB / 0.8004 GB, free: 3.816 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/1.957, allocations: 8 kB / 0.8004 GB, free: 3.809 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001519/1.959, allocations: 345.5 kB / 0.8007 GB, free: 3.465 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/1.96, allocations: 163.7 kB / 0.8009 GB, free: 3.305 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/1.962, allocations: 1.436 MB / 0.8023 GB, free: 1.816 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/1.963, allocations: 48.09 kB / 0.8023 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/1.963, allocations: 47.98 kB / 0.8024 GB, free: 1.723 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/1.963, allocations: 4 kB / 0.8024 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002856/1.966, allocations: 1.117 MB / 0.8035 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/1.966, allocations: 8 kB / 0.8035 GB, free: 0.582 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009406/1.967, allocations: 257.9 kB / 0.8037 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/1.968, allocations: 163.7 kB / 0.8039 GB, free: 168 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2954/2.264, allocations: 2.345 MB / 0.8062 GB, free: 97.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009969/2.265, allocations: 46.12 kB / 0.8062 GB, free: 97.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/2.265, allocations: 45.06 kB / 0.8062 GB, free: 97.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008711/2.266, allocations: 399 kB / 0.8066 GB, free: 96.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002722/2.266, allocations: 84.31 kB / 0.8067 GB, free: 96.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/2.27, allocations: 1.075 MB / 0.8078 GB, free: 96.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/2.27, allocations: 5.406 kB / 0.8078 GB, free: 96.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/2.27, allocations: 4.781 kB / 0.8078 GB, free: 96.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/2.27, allocations: 2.391 kB / 0.8078 GB, free: 96.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005102/2.275, allocations: 1.875 MB / 0.8096 GB, free: 96.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/2.275, allocations: 3.875 kB / 0.8096 GB, free: 96.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/2.276, allocations: 75.05 kB / 0.8097 GB, free: 96.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/2.277, allocations: 337.7 kB / 0.81 GB, free: 96.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/2.277, allocations: 20.67 kB / 0.81 GB, free: 96.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/2.279, allocations: 1.431 MB / 0.8114 GB, free: 95.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/2.279, allocations: 3.438 kB / 0.8114 GB, free: 95.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003966/2.283, allocations: 1.528 MB / 0.8129 GB, free: 95.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006754/2.284, allocations: 246.6 kB / 0.8131 GB, free: 95.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/2.284, allocations: 13.38 kB / 0.8132 GB, free: 95.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009179/2.285, allocations: 44.11 kB / 0.8132 GB, free: 95.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/2.285, allocations: 49.45 kB / 0.8132 GB, free: 95.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/2.285, allocations: 28.3 kB / 0.8133 GB, free: 95.17 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00108/2.286, allocations: 0.5242 MB / 0.8138 GB, free: 95.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.3e-07/2.286, allocations: 2.906 kB / 0.8138 GB, free: 95.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003093/2.289, allocations: 0.6556 MB / 0.8144 GB, free: 95.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005851/2.295, allocations: 2.521 MB / 0.8169 GB, free: 94.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00458/2.3, allocations: 1.563 MB / 0.8184 GB, free: 94.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/2.3, allocations: 0 / 0.8184 GB, free: 94.06 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/2.301, allocations: 456.9 kB / 0.8189 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/2.304, allocations: 273.2 kB / 0.8191 GB, free: 93.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008527/2.312, allocations: 8.751 MB / 0.8277 GB, free: 86.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006622/2.313, allocations: 1.019 MB / 0.8287 GB, free: 86.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007429/2.314, allocations: 299.5 kB / 0.8289 GB, free: 86.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/2.314, allocations: 0 / 0.8289 GB, free: 86.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.668/5.982, allocations: 25.34 MB / 0.8537 GB, free: 85.36 MB / 442.7 MB