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.Fittings.TestPressureLossDerivatives.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: 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 2.168/2.168, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004419, allocations: 12 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1217, allocations: 48.71 MB / 331.8 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5551, allocations: 75.86 MB / 407.7 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/0.5555, allocations: 87.89 kB / 407.8 MB, free: 9.215 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02441/0.5799, allocations: 5.281 MB / 413 MB, free: 3.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.58, allocations: 0 / 413 MB, free: 3.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.58, allocations: 4 kB / 413 MB, free: 3.938 MB / 330.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.0006487/0.5807, allocations: 414.9 kB / 413.4 MB, free: 3.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.5807, allocations: 12.02 kB / 413.5 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.5808, allocations: 11.91 kB / 413.5 MB, free: 3.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.5809, allocations: 179 kB / 413.6 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.581, allocations: 0 / 413.6 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.581, allocations: 8 kB / 413.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.5812, allocations: 65.61 kB / 413.7 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.5812, allocations: 3.906 kB / 413.7 MB, free: 3.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.5813, allocations: 4 kB / 413.7 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.5813, allocations: 0 / 413.7 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.5814, allocations: 52.52 kB / 413.8 MB, free: 3.109 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002829/0.5817, allocations: 201.6 kB / 414 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.5819, allocations: 54.56 kB / 414 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-05/0.5819, allocations: 23.98 kB / 414.1 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.582, allocations: 34.5 kB / 414.1 MB, free: 2.734 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.582, allocations: 0 / 414.1 MB, free: 2.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.03311/0.6151, allocations: 1.326 MB / 415.4 MB, free: 1.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.6152, allocations: 63.39 kB / 415.5 MB, free: 1.305 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.6154, allocations: 118.1 kB / 415.6 MB, free: 1.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.6154, allocations: 29.7 kB / 415.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.6155, allocations: 154.8 kB / 415.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.6156, allocations: 43.44 kB / 415.8 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.6157, allocations: 0 / 415.8 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.6158, allocations: 322.8 kB / 416.1 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/0.6164, allocations: 95.95 kB / 416.2 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00055/0.617, allocations: 87.95 kB / 416.3 MB, free: 448 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.6176, allocations: 95.95 kB / 416.4 MB, free: 352 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6176, allocations: 0 / 416.4 MB, free: 352 kB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001338/0.619, allocations: 245.5 kB / 416.6 MB, free: 100 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.619, allocations: 8 kB / 416.6 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.619, allocations: 0 / 416.6 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.6191, allocations: 0 / 416.6 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.6197, allocations: 35.97 kB / 416.7 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.6197, allocations: 3.984 kB / 416.7 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004225/0.6201, allocations: 15.98 kB / 416.7 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.6202, allocations: 8 kB / 416.7 MB, free: 28 kB / 330.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001904/0.6204, allocations: 121.7 kB / 416.8 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.6204, allocations: 15.84 kB / 416.8 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.622, allocations: 286.1 kB / 417.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.622, allocations: 7.922 kB / 417.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.622, allocations: 0 / 417.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.6221, allocations: 0 / 417.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.6251, allocations: 0.6699 MB / 417.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.6251, allocations: 8.031 kB / 417.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.6257, allocations: 43.91 kB / 417.9 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.6257, allocations: 0 / 417.9 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.6257, allocations: 4 kB / 417.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.6258, allocations: 7.953 kB / 417.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/0.6258, allocations: 3.984 kB / 417.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.6271, allocations: 346.4 kB / 418.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.6273, allocations: 105 kB / 418.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.6274, allocations: 11.98 kB / 418.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.6278, allocations: 15.92 kB / 418.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.6279, allocations: 11.95 kB / 418.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.6279, allocations: 11.98 kB / 418.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.202e-05/0.628, allocations: 92.67 kB / 418.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.628, allocations: 4 kB / 418.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008188/0.6288, allocations: 171.8 kB / 418.6 MB, free: 14 MB / 346.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.0009366/0.6298, allocations: 267.6 kB / 418.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.631, allocations: 207.9 kB / 419.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6311, allocations: 0 / 419.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005928/0.6317, allocations: 116.1 kB / 419.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.632, allocations: 24.08 kB / 419.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.6346, allocations: 439.2 kB / 419.7 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.6349, allocations: 0.7004 MB / 420.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.6351, allocations: 23.42 kB / 420.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.6352, allocations: 3.938 kB / 420.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of Templates: time 0.01116/0.6463, allocations: 4.392 MB / 424.8 MB, free: 7.754 MB / 346.7 MB