Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.052/2.052, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003634, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1043, allocations: 44.49 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.006/8.111, allocations: 2.585 GB / 2.886 GB, free: 92.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/8.111, allocations: 86.38 kB / 2.886 GB, free: 92.9 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.741/10.85, allocations: 0.497 GB / 3.383 GB, free: 35.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.013e-06/10.85, allocations: 0 / 3.383 GB, free: 35.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.37e-05/10.85, allocations: 31.59 kB / 3.383 GB, free: 35.48 MB / 426.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.01059/10.86, allocations: 2.335 MB / 3.386 GB, free: 34.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/10.86, allocations: 10.72 kB / 3.386 GB, free: 34.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007299/10.87, allocations: 0.7093 MB / 3.386 GB, free: 34.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/10.87, allocations: 0.9584 MB / 3.387 GB, free: 34.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.305e-05/10.87, allocations: 72.73 kB / 3.387 GB, free: 34.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/10.87, allocations: 98.53 kB / 3.388 GB, free: 34.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005018/10.88, allocations: 1.713 MB / 3.389 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.406e-05/10.88, allocations: 5.25 kB / 3.389 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/10.88, allocations: 46.38 kB / 3.389 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.865e-05/10.88, allocations: 30.8 kB / 3.389 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004771/10.88, allocations: 1.512 MB / 3.391 GB, free: 33.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/10.9, allocations: 8.255 MB / 3.399 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0039/10.9, allocations: 1.702 MB / 3.401 GB, free: 27.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2964/11.2, allocations: 80.27 MB / 3.479 GB, free: 13.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.569e-05/11.2, allocations: 43.84 kB / 3.479 GB, free: 13.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 3.507e-06/11.2, allocations: 0 / 3.479 GB, free: 13.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.007933/11.2, allocations: 2.025 MB / 3.481 GB, free: 13.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/11.2, allocations: 190.9 kB / 3.481 GB, free: 13.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/11.21, allocations: 0.9249 MB / 3.482 GB, free: 13.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/11.21, allocations: 39.77 kB / 3.482 GB, free: 13.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004653/11.21, allocations: 0.6089 MB / 3.483 GB, free: 12.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003187/11.21, allocations: 276.8 kB / 3.483 GB, free: 12.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/11.21, allocations: 25.19 kB / 3.483 GB, free: 12.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/11.21, allocations: 355.2 kB / 3.483 GB, free: 12.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008884/11.21, allocations: 344.8 kB / 3.484 GB, free: 12.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/11.21, allocations: 0.8178 MB / 3.484 GB, free: 11.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/11.21, allocations: 459.5 kB / 3.485 GB, free: 11.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.472e-05/11.21, allocations: 3.688 kB / 3.485 GB, free: 11.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.0032/11.21, allocations: 1.309 MB / 3.486 GB, free: 11.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/11.21, allocations: 20.66 kB / 3.486 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/11.21, allocations: 16 kB / 3.486 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/11.23, allocations: 0.8223 MB / 3.487 GB, free: 10.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/11.23, allocations: 334.5 kB / 3.487 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/11.23, allocations: 1.536 MB / 3.489 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/11.23, allocations: 156.6 kB / 3.489 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/11.23, allocations: 72.17 kB / 3.489 GB, free: 24.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (138): * Single equations (assignments): 136 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0007868/11.23, allocations: 297.7 kB / 3.489 GB, free: 24.61 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/11.23, allocations: 114.6 kB / 3.489 GB, free: 24.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006946/11.24, allocations: 4.545 MB / 3.494 GB, free: 22.15 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-05/11.24, allocations: 54.44 kB / 3.494 GB, free: 22.13 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/11.24, allocations: 0 / 3.494 GB, free: 22.13 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/11.24, allocations: 7.281 kB / 3.494 GB, free: 22.13 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008287/11.25, allocations: 5.022 MB / 3.499 GB, free: 19.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/11.25, allocations: 0 / 3.499 GB, free: 19.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/11.25, allocations: 199.4 kB / 3.499 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01281/11.26, allocations: 1.877 MB / 3.501 GB, free: 17.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001862/11.26, allocations: 26.42 kB / 3.501 GB, free: 17.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/11.27, allocations: 1.902 MB / 3.503 GB, free: 16.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/11.27, allocations: 0 / 3.503 GB, free: 16.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003612/11.27, allocations: 2.069 MB / 3.505 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007242/11.27, allocations: 333.2 kB / 3.505 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003157/11.27, allocations: 15.69 kB / 3.505 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/11.27, allocations: 66.11 kB / 3.505 GB, free: 14.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/11.27, allocations: 48.45 kB / 3.505 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.761e-05/11.27, allocations: 31.59 kB / 3.505 GB, free: 14.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001326/11.27, allocations: 0.7062 MB / 3.506 GB, free: 14.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/11.27, allocations: 0 / 3.506 GB, free: 14.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006825/11.28, allocations: 1.342 MB / 3.507 GB, free: 12.73 MB / 474.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 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01081/11.29, allocations: 1.752 MB / 3.509 GB, free: 11.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005275/11.3, allocations: 1.376 MB / 3.51 GB, free: 10.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/11.3, allocations: 0 / 3.51 GB, free: 10.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004063/11.3, allocations: 0.9879 MB / 3.511 GB, free: 9.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005047/11.31, allocations: 0.5507 MB / 3.512 GB, free: 8.918 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5553/11.86, allocations: 82.49 MB / 3.592 GB, free: 75.28 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008703/11.86, allocations: 1.35 MB / 3.594 GB, free: 74.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/11.86, allocations: 116.6 kB / 3.594 GB, free: 74.53 MB / 474.7 MB Notification: Performance of SimCode: time 1.263e-06/11.86, allocations: 0 / 3.594 GB, free: 74.53 MB / 474.7 MB Notification: Performance of Templates: time 0.1031/11.97, allocations: 52.44 MB / 3.645 GB, free: 68.4 MB / 474.7 MB