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.843/1.843, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004449, allocations: 8 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2894, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.4053, allocations: 75.89 MB / 407.2 MB, free: 2.555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.4056, allocations: 79.95 kB / 407.2 MB, free: 2.477 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02223/0.4278, allocations: 5.283 MB / 412.5 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.979e-06/0.4279, allocations: 0 / 412.5 MB, free: 13.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.4279, allocations: 4 kB / 412.5 MB, free: 13.19 MB / 346.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.0005777/0.4285, allocations: 406.9 kB / 412.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4286, allocations: 12.03 kB / 412.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.678e-05/0.4286, allocations: 11.89 kB / 413 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.4288, allocations: 184.3 kB / 413.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.4288, allocations: 0 / 413.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.4289, allocations: 8 kB / 413.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.429, allocations: 61.67 kB / 413.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.4291, allocations: 3.906 kB / 413.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.84e-06/0.4291, allocations: 0 / 413.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.998e-06/0.4291, allocations: 4 kB / 413.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.4292, allocations: 51.97 kB / 413.3 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002698/0.4295, allocations: 193.6 kB / 413.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.4297, allocations: 66.48 kB / 413.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.177e-05/0.4297, allocations: 23.98 kB / 413.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.4298, allocations: 30.56 kB / 413.6 MB, free: 11.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 2.285e-06/0.4298, allocations: 0 / 413.6 MB, free: 11.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.01803/0.4478, allocations: 1.322 MB / 414.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.4479, allocations: 59.39 kB / 414.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.4481, allocations: 109.8 kB / 415.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.4481, allocations: 33.64 kB / 415.1 MB, free: 10.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.319e-05/0.4482, allocations: 154.8 kB / 415.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.141e-05/0.4483, allocations: 43.38 kB / 415.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.22e-05/0.4484, allocations: 4 kB / 415.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4485, allocations: 318.8 kB / 415.6 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004203/0.449, allocations: 99.88 kB / 415.7 MB, free: 9.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.4494, allocations: 91.95 kB / 415.8 MB, free: 9.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/0.4499, allocations: 95.95 kB / 415.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.851e-06/0.4499, allocations: 0 / 415.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001028/0.4509, allocations: 237.5 kB / 416.1 MB, free: 9.371 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.451, allocations: 8 kB / 416.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.618e-06/0.451, allocations: 0 / 416.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.451, allocations: 0 / 416.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.4514, allocations: 39.97 kB / 416.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.631e-06/0.4515, allocations: 3.938 kB / 416.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.4517, allocations: 19.98 kB / 416.2 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.4518, allocations: 7.984 kB / 416.2 MB, free: 9.293 MB / 346.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.0001584/0.4519, allocations: 125.7 kB / 416.3 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.452, allocations: 7.906 kB / 416.3 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.4532, allocations: 290.1 kB / 416.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.4532, allocations: 0 / 416.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.982e-06/0.4533, allocations: 0 / 416.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.549e-06/0.4533, allocations: 0 / 416.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.4556, allocations: 0.6698 MB / 417.3 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.288e-06/0.4556, allocations: 96 / 417.3 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.456, allocations: 39.97 kB / 417.3 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.456, allocations: 3.984 kB / 417.3 MB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.4561, allocations: 8 kB / 417.3 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.284e-06/0.4561, allocations: 4.094 kB / 417.3 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.962e-06/0.4561, allocations: 7.891 kB / 417.3 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4572, allocations: 391.5 kB / 417.7 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.4574, allocations: 101 kB / 417.8 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.4575, allocations: 4 kB / 417.8 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.4578, allocations: 11.98 kB / 417.8 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.4578, allocations: 11.98 kB / 417.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.4578, allocations: 8 kB / 417.8 MB, free: 7.496 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.519e-05/0.458, allocations: 103.8 kB / 417.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.251e-06/0.458, allocations: 0 / 417.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007845/0.4588, allocations: 187.7 kB / 418.1 MB, free: 7.211 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.000805/0.4596, allocations: 258.8 kB / 418.4 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009454/0.4605, allocations: 211.9 kB / 418.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4606, allocations: 0 / 418.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004329/0.461, allocations: 112.1 kB / 418.7 MB, free: 6.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.4613, allocations: 15.95 kB / 418.7 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.4632, allocations: 443 kB / 419.1 MB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.4636, allocations: 0.6926 MB / 419.8 MB, free: 5.418 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.4638, allocations: 23.42 kB / 419.9 MB, free: 5.395 MB / 346.7 MB Notification: Performance of SimCode: time 1.639e-06/0.4638, allocations: 7.938 kB / 419.9 MB, free: 5.387 MB / 346.7 MB Notification: Performance of Templates: time 0.009814/0.4736, allocations: 4.395 MB / 424.3 MB, free: 0.9766 MB / 346.7 MB