Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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) 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.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003598, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08018/0.08057, allocations: 44.51 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07562/0.1562, allocations: 52.74 MB / 361.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.2536/0.4099, allocations: 19.22 MB / 380.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/0.4116, allocations: 37.69 kB / 380.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.4134, allocations: 0.5744 MB / 380.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01547/0.4289, allocations: 4.869 MB / 385.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00925/0.4382, allocations: 2.726 MB / 388.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02249/0.4607, allocations: 12.79 MB / 401.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.462, allocations: 0.6 MB / 401.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002008/0.464, allocations: 0.9279 MB / 402.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009427/0.465, allocations: 0.6588 MB / 403.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.4652, allocations: 51.84 kB / 403.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01607/0.4813, allocations: 7.44 MB / 411 MB, free: 5.398 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.4817, allocations: 224.2 kB / 411.2 MB, free: 5.297 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000583/0.4823, allocations: 291.9 kB / 411.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007584/0.4899, allocations: 3.888 MB / 415.4 MB, free: 1.844 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.292e-06/0.49, allocations: 4 kB / 415.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.569e-06/0.49, allocations: 0 / 415.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.49, allocations: 0 / 415.4 MB, free: 1.84 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006428/0.4964, allocations: 2.191 MB / 417.6 MB, free: 15.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.4965, allocations: 15.22 kB / 417.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006267/0.5028, allocations: 0.6587 MB / 418.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.5057, allocations: 0.9864 MB / 419.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-05/0.5058, allocations: 73.52 kB / 419.3 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/0.506, allocations: 101.5 kB / 419.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004972/0.511, allocations: 1.658 MB / 421.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.5111, allocations: 5.156 kB / 421.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.5112, allocations: 48.94 kB / 421.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.5113, allocations: 27.98 kB / 421.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004652/0.5159, allocations: 1.449 MB / 422.6 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.5274, allocations: 8.136 MB / 430.7 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004158/0.5316, allocations: 1.68 MB / 432.4 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2112/0.7428, allocations: 81.42 MB / 0.5018 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.801e-05/0.7429, allocations: 45.73 kB / 0.5018 GB, free: 10.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 6.282e-06/0.743, allocations: 7.984 kB / 0.5018 GB, free: 10.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.007402/0.7504, allocations: 1.934 MB / 0.5037 GB, free: 9.008 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.7505, allocations: 190.8 kB / 0.5039 GB, free: 8.781 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.7519, allocations: 0.8226 MB / 0.5047 GB, free: 8.133 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.768e-05/0.752, allocations: 41.14 kB / 0.5047 GB, free: 8.098 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000511/0.7525, allocations: 0.616 MB / 0.5054 GB, free: 7.641 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003246/0.7529, allocations: 278 kB / 0.5056 GB, free: 7.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.016e-05/0.753, allocations: 25.56 kB / 0.5056 GB, free: 7.402 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.7532, allocations: 360.6 kB / 0.506 GB, free: 7.062 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007219/0.7539, allocations: 290 kB / 0.5063 GB, free: 6.879 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.7552, allocations: 0.8242 MB / 0.5071 GB, free: 5.957 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/0.7561, allocations: 423.2 kB / 0.5075 GB, free: 5.715 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.7561, allocations: 4 kB / 0.5075 GB, free: 5.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.00288/0.759, allocations: 1.236 MB / 0.5087 GB, free: 4.891 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.7591, allocations: 16.03 kB / 0.5087 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/0.7591, allocations: 16 kB / 0.5087 GB, free: 4.859 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003955/0.7631, allocations: 0.5348 MB / 0.5092 GB, free: 4.367 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.7646, allocations: 298.4 kB / 0.5095 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.7661, allocations: 1.375 MB / 0.5109 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.7673, allocations: 162.9 kB / 0.511 GB, free: 2.656 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.7675, allocations: 77.72 kB / 0.5111 GB, free: 2.594 MB / 426.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.0006329/0.7681, allocations: 306.8 kB / 0.5114 GB, free: 2.387 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.7684, allocations: 110.7 kB / 0.5115 GB, free: 2.277 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006638/0.775, allocations: 4.477 MB / 0.5159 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.98e-05/0.7751, allocations: 45.67 kB / 0.5159 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.7751, allocations: 0 / 0.5159 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.7752, allocations: 3.984 kB / 0.5159 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007759/0.7829, allocations: 4.861 MB / 0.5207 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.783, allocations: 0 / 0.5207 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.784, allocations: 168 kB / 0.5208 GB, free: 10.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005008/0.789, allocations: 1.594 MB / 0.5224 GB, free: 9.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.687e-05/0.7892, allocations: 20 kB / 0.5224 GB, free: 9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.7912, allocations: 1.747 MB / 0.5241 GB, free: 7.207 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.7912, allocations: 4 kB / 0.5241 GB, free: 7.203 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003488/0.7947, allocations: 1.981 MB / 0.526 GB, free: 5.176 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005219/0.7953, allocations: 329.9 kB / 0.5263 GB, free: 4.832 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/0.7955, allocations: 19.95 kB / 0.5264 GB, free: 4.812 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007173/0.7962, allocations: 59.81 kB / 0.5264 GB, free: 4.754 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.7963, allocations: 56.48 kB / 0.5265 GB, free: 4.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.45e-05/0.7964, allocations: 31.98 kB / 0.5265 GB, free: 4.668 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001175/0.7976, allocations: 0.6163 MB / 0.5271 GB, free: 4.047 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.765e-06/0.7976, allocations: 0 / 0.5271 GB, free: 4.047 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00405/0.8017, allocations: 1.283 MB / 0.5284 GB, free: 2.766 MB / 442.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.005518/0.8072, allocations: 1.245 MB / 0.5296 GB, free: 1.633 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00348/0.8107, allocations: 1.258 MB / 0.5308 GB, free: 436 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.501e-06/0.8108, allocations: 2.844 kB / 0.5308 GB, free: 436 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2051/1.016, allocations: 0.9115 MB / 0.5317 GB, free: 185 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/1.019, allocations: 0.5425 MB / 0.5322 GB, free: 185 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006332/1.026, allocations: 3.95 MB / 0.5361 GB, free: 183.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/1.027, allocations: 1.348 MB / 0.5374 GB, free: 182.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/1.027, allocations: 117.9 kB / 0.5375 GB, free: 182.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.701e-06/1.027, allocations: 0 / 0.5375 GB, free: 182.5 MB / 442.7 MB Notification: Performance of Templates: time 0.06885/1.096, allocations: 51.15 MB / 0.5875 GB, free: 142.3 MB / 442.7 MB