Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.616/1.616, allocations: 171.2 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003463, allocations: 8 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07026/0.07063, allocations: 38.76 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2543/0.325, allocations: 52.33 MB / 324.3 MB, free: 5.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0312/0.3562, allocations: 19.03 MB / 343.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001993/0.3583, allocations: 41.81 kB / 343.3 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002353/0.3607, allocations: 0.5757 MB / 343.9 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01798/0.3787, allocations: 4.822 MB / 348.7 MB, free: 2.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009972/0.3887, allocations: 2.679 MB / 351.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02613/0.4149, allocations: 12.63 MB / 364 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.4163, allocations: 0.5948 MB / 364.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002495/0.4188, allocations: 0.9111 MB / 365.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.4203, allocations: 0.6536 MB / 366.2 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.4206, allocations: 48 kB / 366.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01893/0.4395, allocations: 7.304 MB / 373.5 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004833/0.4401, allocations: 227.1 kB / 373.8 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006277/0.4407, allocations: 297 kB / 374.1 MB, free: 8.676 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009139/0.4499, allocations: 3.839 MB / 377.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.822e-06/0.4499, allocations: 0 / 377.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.713e-06/0.4499, allocations: 0 / 377.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.45, allocations: 0 / 377.9 MB, free: 4.828 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007204/0.4572, allocations: 2.1 MB / 380 MB, free: 2.672 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4572, allocations: 8.031 kB / 380 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006188/0.4634, allocations: 0.6267 MB / 380.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002654/0.4661, allocations: 0.9882 MB / 381.6 MB, free: 1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.4663, allocations: 74.02 kB / 381.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.4665, allocations: 96 kB / 381.8 MB, free: 0.832 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00839/0.4749, allocations: 1.667 MB / 383.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.028e-05/0.475, allocations: 7.938 kB / 383.5 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002783/0.4753, allocations: 48 kB / 383.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.234e-05/0.4754, allocations: 28 kB / 383.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008885/0.4843, allocations: 1.448 MB / 385 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01932/0.5037, allocations: 8.129 MB / 393.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007512/0.5113, allocations: 1.678 MB / 394.8 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4723/0.9836, allocations: 81.36 MB / 476.1 MB, free: 110.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.9837, allocations: 49.36 kB / 476.2 MB, free: 110 MB / 362.7 MB Notification: Performance of pre-optimization done (n=77): time 3.825e-06/0.9837, allocations: 0 / 476.2 MB, free: 110 MB / 362.7 MB Notification: Performance of matching and sorting (n=77): time 0.006856/0.9905, allocations: 1.939 MB / 478.1 MB, free: 108.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.9906, allocations: 191.7 kB / 478.3 MB, free: 107.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.9917, allocations: 0.8251 MB / 479.1 MB, free: 107.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.9918, allocations: 37.7 kB / 479.2 MB, free: 107.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003234/0.9922, allocations: 0.6131 MB / 479.8 MB, free: 106.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.9924, allocations: 289.4 kB / 480.1 MB, free: 106.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-05/0.9925, allocations: 24 kB / 480.1 MB, free: 106.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/0.9926, allocations: 361.7 kB / 480.5 MB, free: 105.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006397/0.9932, allocations: 290.5 kB / 480.7 MB, free: 105.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008389/0.9941, allocations: 0.817 MB / 481.6 MB, free: 104.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007993/0.9949, allocations: 420 kB / 482 MB, free: 104.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.9949, allocations: 11.83 kB / 482 MB, free: 104.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002428/0.9974, allocations: 1.233 MB / 483.2 MB, free: 102.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.9974, allocations: 12 kB / 483.2 MB, free: 102.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.9974, allocations: 20 kB / 483.2 MB, free: 102.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003703/1.001, allocations: 0.5359 MB / 483.8 MB, free: 102.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.003, allocations: 311.4 kB / 484.1 MB, free: 102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/1.004, allocations: 1.364 MB / 485.4 MB, free: 100.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/1.005, allocations: 154.7 kB / 485.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/1.005, allocations: 79.94 kB / 485.7 MB, free: 100.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005529/1.006, allocations: 300.8 kB / 486 MB, free: 100 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/1.006, allocations: 106.7 kB / 486.1 MB, free: 99.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005287/1.011, allocations: 4.486 MB / 490.6 MB, free: 95.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.38e-05/1.011, allocations: 50.5 kB / 490.6 MB, free: 95.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.004e-06/1.011, allocations: 0 / 490.6 MB, free: 95.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/1.011, allocations: 3.984 kB / 490.6 MB, free: 95.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006216/1.017, allocations: 4.851 MB / 495.5 MB, free: 90.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/1.017, allocations: 0 / 495.5 MB, free: 90.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/1.018, allocations: 178.2 kB / 495.6 MB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004315/1.023, allocations: 1.586 MB / 497.2 MB, free: 88.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/1.023, allocations: 27.98 kB / 497.3 MB, free: 88.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/1.024, allocations: 1.747 MB / 499 MB, free: 86.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.652e-06/1.024, allocations: 0 / 499 MB, free: 86.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/1.027, allocations: 1.982 MB / 0.4892 GB, free: 84.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000428/1.028, allocations: 333.5 kB / 0.4896 GB, free: 84.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/1.028, allocations: 24 kB / 0.4896 GB, free: 84.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007108/1.028, allocations: 51.88 kB / 0.4896 GB, free: 84.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/1.029, allocations: 52.48 kB / 0.4897 GB, free: 84.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.39e-05/1.029, allocations: 31.98 kB / 0.4897 GB, free: 84.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009115/1.03, allocations: 0.6202 MB / 0.4903 GB, free: 83.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.84e-07/1.03, allocations: 0 / 0.4903 GB, free: 83.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00355/1.033, allocations: 1.271 MB / 0.4916 GB, free: 82.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005189/1.038, allocations: 1.249 MB / 0.4928 GB, free: 81.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002927/1.041, allocations: 1.257 MB / 0.494 GB, free: 80.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.206e-06/1.041, allocations: 0 / 0.494 GB, free: 80.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/1.043, allocations: 0.9069 MB / 0.4949 GB, free: 79.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/1.046, allocations: 0.5498 MB / 0.4954 GB, free: 78.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005325/1.052, allocations: 3.959 MB / 0.4993 GB, free: 74.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007863/1.052, allocations: 1.343 MB / 0.5006 GB, free: 73.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/1.053, allocations: 119.4 kB / 0.5007 GB, free: 73.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.636e-06/1.053, allocations: 8 kB / 0.5007 GB, free: 73.27 MB / 362.7 MB Notification: Performance of Templates: time 0.06698/1.12, allocations: 50.97 MB / 0.5505 GB, free: 22.26 MB / 362.7 MB