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.136/2.136, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004406/0.0004407, allocations: 16 kB / 314.4 MB, free: 9.449 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.288, allocations: 54.85 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.4128, allocations: 82.25 MB / 451.5 MB, free: 8.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.4131, allocations: 75.95 kB / 451.6 MB, free: 8.262 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02113/0.4342, allocations: 5.293 MB / 456.9 MB, free: 2.957 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.436e-06/0.4343, allocations: 0 / 456.9 MB, free: 2.957 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.549e-06/0.4343, allocations: 4 kB / 456.9 MB, free: 2.953 MB / 378.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.000514/0.4348, allocations: 416.4 kB / 457.3 MB, free: 2.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.4348, allocations: 8.031 kB / 457.3 MB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.4349, allocations: 7.906 kB / 457.3 MB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.4351, allocations: 167 kB / 457.5 MB, free: 2.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.4351, allocations: 7.938 kB / 457.5 MB, free: 2.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.4351, allocations: 8 kB / 457.5 MB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.4353, allocations: 69.59 kB / 457.6 MB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.4353, allocations: 3.953 kB / 457.6 MB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.305e-06/0.4353, allocations: 4 kB / 457.6 MB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-06/0.4353, allocations: 0 / 457.6 MB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.4355, allocations: 63.95 kB / 457.6 MB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002663/0.4358, allocations: 193.5 kB / 457.8 MB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.4359, allocations: 50.56 kB / 457.9 MB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.911e-05/0.436, allocations: 19.98 kB / 457.9 MB, free: 1.805 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.436, allocations: 34.5 kB / 457.9 MB, free: 1.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.004e-06/0.436, allocations: 8 kB / 457.9 MB, free: 1.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.01753/0.4536, allocations: 1.322 MB / 459.3 MB, free: 412 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.4536, allocations: 51.41 kB / 459.3 MB, free: 348 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.4538, allocations: 109.3 kB / 459.4 MB, free: 228 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.4538, allocations: 29.7 kB / 459.4 MB, free: 192 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.4539, allocations: 166.7 kB / 459.6 MB, free: 20 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.454, allocations: 39.53 kB / 459.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.4541, allocations: 4 kB / 459.7 MB, free: 15.97 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4542, allocations: 318.8 kB / 460 MB, free: 15.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.4547, allocations: 91.95 kB / 460.1 MB, free: 15.56 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.4551, allocations: 95.95 kB / 460.1 MB, free: 15.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.4555, allocations: 92.28 kB / 460.2 MB, free: 15.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-06/0.4555, allocations: 0 / 460.2 MB, free: 15.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001006/0.4566, allocations: 241.5 kB / 460.5 MB, free: 15.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4566, allocations: 4 kB / 460.5 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.549e-06/0.4566, allocations: 15.7 kB / 460.5 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.4566, allocations: 0 / 460.5 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.457, allocations: 35.97 kB / 460.5 MB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.4571, allocations: 4 kB / 460.5 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.4573, allocations: 15.98 kB / 460.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.4574, allocations: 7.984 kB / 460.6 MB, free: 15.06 MB / 394.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.0001411/0.4575, allocations: 121.7 kB / 460.7 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.4576, allocations: 7.906 kB / 460.7 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.4587, allocations: 290.2 kB / 461 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.71e-06/0.4588, allocations: 0 / 461 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.209e-06/0.4588, allocations: 0 / 461 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.17e-06/0.4588, allocations: 3.984 kB / 461 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.461, allocations: 0.6736 MB / 461.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.558e-06/0.4611, allocations: 4 kB / 461.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003327/0.4614, allocations: 39.91 kB / 461.7 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4614, allocations: 3.938 kB / 461.7 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.4615, allocations: 8.094 kB / 461.7 MB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.9e-06/0.4615, allocations: 8.031 kB / 461.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.99e-06/0.4615, allocations: 4.469 kB / 461.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.4626, allocations: 383 kB / 462.1 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.4627, allocations: 109 kB / 462.2 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.4628, allocations: 0 / 462.2 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.4631, allocations: 27.98 kB / 462.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.4631, allocations: 11.94 kB / 462.2 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.4631, allocations: 4 kB / 462.2 MB, free: 13.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.76e-05/0.4632, allocations: 99.81 kB / 462.3 MB, free: 13.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.86e-07/0.4633, allocations: 0 / 462.3 MB, free: 13.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000744/0.464, allocations: 175.8 kB / 462.5 MB, free: 12.96 MB / 394.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.0007769/0.4648, allocations: 262.8 kB / 462.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008848/0.4657, allocations: 207.8 kB / 463 MB, free: 12.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.078e-06/0.4657, allocations: 0 / 463 MB, free: 12.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.4662, allocations: 115.8 kB / 463.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.4665, allocations: 26.23 kB / 463.1 MB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.4682, allocations: 431 kB / 463.5 MB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.4686, allocations: 0.7004 MB / 464.2 MB, free: 11.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.4688, allocations: 23.42 kB / 464.2 MB, free: 11.15 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/0.4688, allocations: 0 / 464.2 MB, free: 11.15 MB / 394.7 MB Notification: Performance of Templates: time 0.008958/0.4778, allocations: 4.404 MB / 468.6 MB, free: 6.734 MB / 394.7 MB