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.83/1.83, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.104e-05/4.131e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08765/0.08771, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4278, allocations: 75.79 MB / 402.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.428, allocations: 74.52 kB / 402.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01953/0.4476, allocations: 5.251 MB / 407.7 MB, free: 8.277 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.121e-06/0.4476, allocations: 0 / 407.7 MB, free: 8.277 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.4477, allocations: 0 / 407.7 MB, free: 8.277 MB / 314.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.0003941/0.4481, allocations: 403.4 kB / 408 MB, free: 7.875 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4481, allocations: 14.8 kB / 408.1 MB, free: 7.871 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.4482, allocations: 7.75 kB / 408.1 MB, free: 7.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.449e-05/0.4483, allocations: 174.4 kB / 408.2 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.4483, allocations: 3.906 kB / 408.2 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.4483, allocations: 3.984 kB / 408.2 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.4485, allocations: 66.97 kB / 408.3 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.4485, allocations: 0 / 408.3 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.4485, allocations: 4 kB / 408.3 MB, free: 7.617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.137e-06/0.4485, allocations: 3.875 kB / 408.3 MB, free: 7.617 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.89e-05/0.4486, allocations: 56.44 kB / 408.4 MB, free: 7.609 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.4488, allocations: 194.3 kB / 408.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.874e-05/0.4489, allocations: 59.19 kB / 408.6 MB, free: 7.375 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/0.449, allocations: 39.06 kB / 408.7 MB, free: 7.363 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.733e-05/0.4491, allocations: 26.72 kB / 408.7 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.4491, allocations: 46.33 kB / 408.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.14e-06/0.4491, allocations: 0 / 408.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.017/0.4661, allocations: 1.224 MB / 410 MB, free: 6.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.588e-05/0.4662, allocations: 51.41 kB / 410 MB, free: 6.672 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.4663, allocations: 113.8 kB / 410.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.4663, allocations: 33.58 kB / 410.2 MB, free: 6.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.95e-05/0.4664, allocations: 156.5 kB / 410.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.4665, allocations: 37.05 kB / 410.3 MB, free: 6.359 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.4665, allocations: 3.938 kB / 410.3 MB, free: 6.355 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.193e-05/0.4666, allocations: 322.2 kB / 410.7 MB, free: 6.039 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.4668, allocations: 66.64 kB / 410.7 MB, free: 6.035 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.467, allocations: 72.86 kB / 410.8 MB, free: 6.031 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.4672, allocations: 72.62 kB / 410.9 MB, free: 6.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-06/0.4672, allocations: 0 / 410.9 MB, free: 6.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005715/0.4678, allocations: 198.5 kB / 411.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.4679, allocations: 7.875 kB / 411.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.134e-06/0.4679, allocations: 0 / 411.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.4679, allocations: 0 / 411.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.4683, allocations: 41.92 kB / 411.1 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.792e-06/0.4683, allocations: 0 / 411.1 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.4686, allocations: 15.52 kB / 411.1 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.4686, allocations: 7.844 kB / 411.1 MB, free: 5.941 MB / 314.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 () * 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 8.482e-05/0.4687, allocations: 116.5 kB / 411.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.4688, allocations: 7.75 kB / 411.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007216/0.4695, allocations: 245.7 kB / 411.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.514e-06/0.4695, allocations: 3.781 kB / 411.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.802e-06/0.4695, allocations: 0 / 411.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4695, allocations: 0 / 411.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.4712, allocations: 0.6298 MB / 412.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.943e-06/0.4713, allocations: 0 / 412.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.4717, allocations: 46.5 kB / 412.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.28e-06/0.4717, allocations: 0 / 412.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.4717, allocations: 7.859 kB / 412.2 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.103e-06/0.4718, allocations: 7.828 kB / 412.2 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.4718, allocations: 4.094 kB / 412.2 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006001/0.4724, allocations: 354.1 kB / 412.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.4725, allocations: 102.4 kB / 412.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.4726, allocations: 6.812 kB / 412.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.4729, allocations: 15.64 kB / 412.7 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.473, allocations: 11.22 kB / 412.7 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.473, allocations: 7.891 kB / 412.7 MB, free: 4.914 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.12e-05/0.4731, allocations: 94.42 kB / 412.8 MB, free: 4.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.4731, allocations: 3.875 kB / 412.8 MB, free: 4.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007152/0.4738, allocations: 174.8 kB / 412.9 MB, free: 4.789 MB / 314.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 () * 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.0007137/0.4745, allocations: 258.2 kB / 413.2 MB, free: 4.637 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.475, allocations: 163.1 kB / 413.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.284e-06/0.475, allocations: 0 / 413.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.4753, allocations: 89.94 kB / 413.4 MB, free: 4.613 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.4756, allocations: 21.83 kB / 413.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.4769, allocations: 293.9 kB / 413.8 MB, free: 4.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.4771, allocations: 0.6997 MB / 414.5 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4773, allocations: 26.94 kB / 414.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of SimCode: time 1.805e-06/0.4773, allocations: 3.938 kB / 414.5 MB, free: 3.703 MB / 314.7 MB Notification: Performance of Templates: time 0.007897/0.4852, allocations: 4.357 MB / 418.8 MB, free: 15.48 MB / 330.7 MB