Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Leakage.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.42/2.42, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006375/0.0006376, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3415, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Shapes.Leakage): time 0.003157/0.3447, allocations: 1.806 MB / 371.1 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3462, allocations: 0.6171 MB / 371.7 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.3463, allocations: 4 kB / 371.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.846e-05/0.3464, allocations: 27.77 kB / 371.7 MB, free: 8.246 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.3466, allocations: 79.75 kB / 371.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.3469, allocations: 63.88 kB / 371.9 MB, free: 8.105 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.3473, allocations: 224 kB / 372.1 MB, free: 7.887 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.3476, allocations: 122.6 kB / 372.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.3478, allocations: 115.6 kB / 372.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3481, allocations: 123.5 kB / 372.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.3482, allocations: 16 kB / 372.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.815e-05/0.3482, allocations: 16 kB / 372.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.3483, allocations: 47.83 kB / 372.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.616e-05/0.3484, allocations: 85.52 kB / 372.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.3488, allocations: 272.2 kB / 372.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3488, allocations: 0 / 372.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3488, allocations: 4 kB / 372.9 MB, free: 7.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3488, allocations: 0 / 372.9 MB, free: 7.09 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001169/0.35, allocations: 0.5342 MB / 373.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3501, allocations: 12.03 kB / 373.4 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.3502, allocations: 66.53 kB / 373.5 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.189e-05/0.3503, allocations: 31.62 kB / 373.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.3505, allocations: 203.4 kB / 373.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.3506, allocations: 28.66 kB / 373.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.767e-05/0.3507, allocations: 28 kB / 373.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007385/0.3514, allocations: 282.1 kB / 374 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3515, allocations: 0 / 374 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.3515, allocations: 11.95 kB / 374.1 MB, free: 5.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3516, allocations: 8 kB / 374.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006827/0.3522, allocations: 222.5 kB / 374.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.3549, allocations: 1.02 MB / 375.3 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.355, allocations: 34.58 kB / 375.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.3551, allocations: 0 / 375.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.3551, allocations: 38.5 kB / 375.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.693e-06/0.3551, allocations: 0 / 375.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002706/0.3554, allocations: 73.52 kB / 375.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.3554, allocations: 59.53 kB / 375.5 MB, free: 4.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.356, allocations: 318.8 kB / 375.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.3561, allocations: 33.64 kB / 375.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.3563, allocations: 293.2 kB / 376.1 MB, free: 3.613 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.3563, allocations: 7.906 kB / 376.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.03e-05/0.3563, allocations: 4 kB / 376.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3565, allocations: 322.8 kB / 376.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.3567, allocations: 67.97 kB / 376.5 MB, free: 3.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.357, allocations: 93.67 kB / 376.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.3573, allocations: 80.44 kB / 376.7 MB, free: 3.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3573, allocations: 0 / 376.7 MB, free: 3.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006623/0.3579, allocations: 221.5 kB / 376.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.358, allocations: 4 kB / 376.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.358, allocations: 4 kB / 376.9 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.358, allocations: 7.984 kB / 376.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.3586, allocations: 55.89 kB / 377 MB, free: 2.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.3586, allocations: 4 kB / 377 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.3591, allocations: 47.44 kB / 377 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.3591, allocations: 8 kB / 377 MB, free: 2.684 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.3593, allocations: 137.8 kB / 377.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.3593, allocations: 15.81 kB / 377.2 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.749e-05/0.3594, allocations: 28.83 kB / 377.2 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3594, allocations: 11.94 kB / 377.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3594, allocations: 0 / 377.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3595, allocations: 0 / 377.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008515/0.3603, allocations: 0.4994 MB / 377.7 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3603, allocations: 0 / 377.7 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.177e-05/0.3604, allocations: 7.953 kB / 377.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3604, allocations: 0 / 377.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3604, allocations: 64 / 377.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3604, allocations: 8 kB / 377.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3604, allocations: 0 / 377.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.3606, allocations: 101.6 kB / 377.8 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.3607, allocations: 104.8 kB / 377.9 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.3608, allocations: 3.953 kB / 377.9 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.361, allocations: 0 / 377.9 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.361, allocations: 12.02 kB / 378 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.3611, allocations: 0 / 378 MB, free: 1.648 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003809/0.3615, allocations: 222 kB / 378.2 MB, free: 1.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3615, allocations: 0 / 378.2 MB, free: 1.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.3619, allocations: 63.84 kB / 378.2 MB, free: 1.367 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004566/0.3623, allocations: 0.6326 MB / 378.9 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003841/0.3627, allocations: 123.8 kB / 379 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3627, allocations: 0 / 379 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.145e-05/0.3628, allocations: 8 kB / 379 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.3631, allocations: 21.11 kB / 379 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3656, allocations: 1.256 MB / 380.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.366, allocations: 0.7521 MB / 381 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3663, allocations: 79.41 kB / 381.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3663, allocations: 0 / 381.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.498/2.865, allocations: 3.767 MB / 384.9 MB, free: 10.62 MB / 314.7 MB