Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadModel(ModelicaTest): time 1.835/1.835, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004332, allocations: 12 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2959, allocations: 48.71 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001492/0.2975, allocations: 1.124 MB / 332.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.2994, allocations: 1.261 MB / 333.6 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.218e-05/0.2995, allocations: 1.094 kB / 333.6 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.2996, allocations: 25.14 kB / 333.6 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2998, allocations: 38.39 kB / 333.6 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.3003, allocations: 168 kB / 333.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.332e-05/0.3004, allocations: 43.95 kB / 333.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.3005, allocations: 3.797 kB / 333.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.724e-05/0.3005, allocations: 16.55 kB / 333.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.098e-05/0.3006, allocations: 25.58 kB / 333.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.3006, allocations: 2.969 kB / 333.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006112/0.3013, allocations: 299.4 kB / 334.2 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.607e-05/0.3013, allocations: 13.05 kB / 334.2 MB, free: 4.793 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.3013, allocations: 43.27 kB / 334.2 MB, free: 4.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.3017, allocations: 175.9 kB / 334.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.3017, allocations: 1.75 kB / 334.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3017, allocations: 0 / 334.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3018, allocations: 0 / 334.4 MB, free: 4.703 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004302/0.3022, allocations: 406.3 kB / 334.8 MB, free: 4.301 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.3023, allocations: 8.938 kB / 334.8 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.3023, allocations: 7.453 kB / 334.8 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.3024, allocations: 175.9 kB / 335 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3024, allocations: 5.5 kB / 335 MB, free: 4.086 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.3025, allocations: 6.375 kB / 335 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.3026, allocations: 63.5 kB / 335.1 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3026, allocations: 0 / 335.1 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.997e-06/0.3027, allocations: 3.938 kB / 335.1 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.023e-06/0.3027, allocations: 7.219 kB / 335.1 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.3028, allocations: 56.53 kB / 335.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.303, allocations: 186.8 kB / 335.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.3031, allocations: 62.06 kB / 335.4 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.3032, allocations: 19.25 kB / 335.4 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.3032, allocations: 31.66 kB / 335.4 MB, free: 3.719 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.043e-06/0.3032, allocations: 0 / 335.4 MB, free: 3.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.01897/0.3222, allocations: 1.4 MB / 336.8 MB, free: 3.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.3223, allocations: 53.75 kB / 336.9 MB, free: 3.168 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.3224, allocations: 130.3 kB / 337 MB, free: 3.047 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.3224, allocations: 25.7 kB / 337 MB, free: 3.016 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.3225, allocations: 163.8 kB / 337.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.192e-05/0.3226, allocations: 39.97 kB / 337.2 MB, free: 2.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.3226, allocations: 1.406 kB / 337.2 MB, free: 2.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.36e-05/0.3227, allocations: 327.9 kB / 337.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.3232, allocations: 163.2 kB / 337.7 MB, free: 2.406 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.3237, allocations: 163.1 kB / 337.9 MB, free: 2.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005702/0.3243, allocations: 167.4 kB / 338 MB, free: 2.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.2e-06/0.3243, allocations: 3.938 kB / 338.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001401/0.3257, allocations: 398.4 kB / 338.4 MB, free: 2.004 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3258, allocations: 5.938 kB / 338.4 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.793e-06/0.3258, allocations: 5.25 kB / 338.5 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3258, allocations: 0 / 338.5 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004275/0.3262, allocations: 49.23 kB / 338.5 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.598e-06/0.3263, allocations: 1.531 kB / 338.5 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.3266, allocations: 17.77 kB / 338.5 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.3266, allocations: 13.19 kB / 338.5 MB, free: 1.965 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001104/0.3268, allocations: 121.9 kB / 338.6 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.3268, allocations: 10.31 kB / 338.7 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.328, allocations: 308 kB / 339 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.228e-06/0.3281, allocations: 1.344 kB / 339 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.459e-06/0.3281, allocations: 3.984 kB / 339 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.767e-06/0.3281, allocations: 5.406 kB / 339 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.3303, allocations: 0.659 MB / 339.6 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.3303, allocations: 5.969 kB / 339.6 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.3307, allocations: 48.7 kB / 339.7 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.16e-06/0.3307, allocations: 1.5 kB / 339.7 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.3308, allocations: 8.516 kB / 339.7 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.246e-06/0.3308, allocations: 6.094 kB / 339.7 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.096e-06/0.3308, allocations: 5.172 kB / 339.7 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.3322, allocations: 369.8 kB / 340.1 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.3324, allocations: 112 kB / 340.2 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.3325, allocations: 1.812 kB / 340.2 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006197/0.3331, allocations: 14.7 kB / 340.2 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.3332, allocations: 21.25 kB / 340.2 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.3333, allocations: 12.41 kB / 340.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.198e-05/0.3334, allocations: 95.81 kB / 340.3 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.043e-06/0.3334, allocations: 5.312 kB / 340.3 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001386/0.3348, allocations: 168.1 kB / 340.5 MB, free: 0.5195 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (12): * Single equations (assignments): 12 * 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.001293/0.3362, allocations: 247 kB / 340.7 MB, free: 380 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.3381, allocations: 310.7 kB / 341 MB, free: 216 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.3381, allocations: 1.125 kB / 341 MB, free: 216 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.339, allocations: 122.3 kB / 341.2 MB, free: 156 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.3395, allocations: 9.969 kB / 341.2 MB, free: 152 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.3436, allocations: 457.4 kB / 341.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.3442, allocations: 0.6985 MB / 342.3 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.3445, allocations: 44.55 kB / 342.3 MB, free: 15.07 MB / 282.7 MB Notification: Performance of SimCode: time 2.399e-06/0.3446, allocations: 3.938 kB / 342.4 MB, free: 15.07 MB / 282.7 MB Notification: Performance of Templates: time 0.01713/0.3617, allocations: 4.678 MB / 347 MB, free: 12.49 MB / 282.7 MB