Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadModel(ModelicaTest): time 2.286/2.286, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004386, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2742, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001808/0.2761, allocations: 1.127 MB / 370.3 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.2784, allocations: 1.269 MB / 371.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.078e-05/0.2784, allocations: 4 kB / 371.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.2786, allocations: 27.83 kB / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.2788, allocations: 43.92 kB / 371.7 MB, free: 8.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005086/0.2793, allocations: 159.5 kB / 371.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.2794, allocations: 39.94 kB / 371.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.926e-05/0.2795, allocations: 0 / 371.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.392e-05/0.2796, allocations: 23.88 kB / 371.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.597e-05/0.2797, allocations: 31.86 kB / 371.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.2797, allocations: 0 / 371.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006397/0.2804, allocations: 299.7 kB / 372.2 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.2804, allocations: 7.938 kB / 372.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.2804, allocations: 33.64 kB / 372.2 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.2808, allocations: 184.4 kB / 372.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.911e-06/0.2809, allocations: 0 / 372.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2809, allocations: 0 / 372.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.318e-06/0.2809, allocations: 0 / 372.4 MB, free: 7.461 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005768/0.2815, allocations: 411 kB / 372.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2815, allocations: 12.03 kB / 372.8 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.2816, allocations: 7.844 kB / 372.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.2817, allocations: 170.4 kB / 373 MB, free: 6.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.2818, allocations: 4 kB / 373 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.2818, allocations: 4 kB / 373 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.282, allocations: 65.67 kB / 373.1 MB, free: 6.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.282, allocations: 0 / 373.1 MB, free: 6.711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.282, allocations: 3.953 kB / 373.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.282, allocations: 4 kB / 373.1 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.2821, allocations: 59.95 kB / 373.2 MB, free: 6.645 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002487/0.2824, allocations: 189.5 kB / 373.3 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.2825, allocations: 62.53 kB / 373.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.688e-05/0.2826, allocations: 12 kB / 373.4 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.2827, allocations: 38.55 kB / 373.4 MB, free: 6.281 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 4.317e-06/0.2827, allocations: 0 / 373.4 MB, free: 6.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.01929/0.302, allocations: 1.396 MB / 374.8 MB, free: 4.855 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.3021, allocations: 51.41 kB / 374.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.3022, allocations: 134 kB / 375 MB, free: 4.652 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.3023, allocations: 25.7 kB / 375 MB, free: 4.621 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.3024, allocations: 166.5 kB / 375.2 MB, free: 4.457 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.3025, allocations: 39.39 kB / 375.2 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.3025, allocations: 3.938 kB / 375.3 MB, free: 4.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3027, allocations: 318.8 kB / 375.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005645/0.3032, allocations: 164.1 kB / 375.7 MB, free: 3.934 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005637/0.3038, allocations: 168.3 kB / 375.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006218/0.3045, allocations: 152.7 kB / 376 MB, free: 3.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.385e-06/0.3045, allocations: 4 kB / 376 MB, free: 3.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001355/0.3059, allocations: 405.8 kB / 376.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3059, allocations: 7.938 kB / 376.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3059, allocations: 3.953 kB / 376.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.306, allocations: 0 / 376.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.3064, allocations: 59.86 kB / 376.5 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3064, allocations: 4 kB / 376.5 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.3067, allocations: 11.98 kB / 376.5 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.3068, allocations: 11.92 kB / 376.5 MB, free: 3.121 MB / 298.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.0001528/0.307, allocations: 117.8 kB / 376.7 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.307, allocations: 11.89 kB / 376.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.3084, allocations: 314 kB / 377 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3084, allocations: 3.953 kB / 377 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3084, allocations: 0 / 377 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.948e-06/0.3084, allocations: 3.984 kB / 377 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.3109, allocations: 0.6607 MB / 377.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3109, allocations: 0 / 377.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.3113, allocations: 51.92 kB / 377.7 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.747e-06/0.3113, allocations: 0 / 377.7 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.3114, allocations: 12.08 kB / 377.7 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.764e-06/0.3114, allocations: 4 kB / 377.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.279e-06/0.3114, allocations: 160 / 377.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.3127, allocations: 373.7 kB / 378.1 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.3128, allocations: 112.9 kB / 378.2 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.3129, allocations: 0 / 378.2 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.3132, allocations: 19.98 kB / 378.2 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.3133, allocations: 16.08 kB / 378.2 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.3133, allocations: 11.92 kB / 378.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.416e-05/0.3134, allocations: 99.25 kB / 378.3 MB, free: 1.203 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.27e-07/0.3134, allocations: 0 / 378.3 MB, free: 1.203 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00076/0.3142, allocations: 171.9 kB / 378.5 MB, free: 1.035 MB / 298.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.0008083/0.315, allocations: 247 kB / 378.7 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.3162, allocations: 319.7 kB / 379 MB, free: 484 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.905e-06/0.3163, allocations: 0 / 379 MB, free: 484 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005019/0.3168, allocations: 119.8 kB / 379.2 MB, free: 364 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.3171, allocations: 19.94 kB / 379.2 MB, free: 344 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.3192, allocations: 463.3 kB / 379.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.3196, allocations: 0.7004 MB / 380.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.3198, allocations: 39.38 kB / 380.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.58e-06/0.3198, allocations: 0 / 380.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Templates: time 0.009727/0.3296, allocations: 4.668 MB / 385 MB, free: 10.39 MB / 314.7 MB