Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004114, allocations: 12 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3172, allocations: 44.5 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.927/8.244, allocations: 2.585 GB / 2.886 GB, free: 79.21 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/8.244, allocations: 88.61 kB / 2.886 GB, free: 79.21 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.692/10.94, allocations: 0.497 GB / 3.383 GB, free: 37.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/10.94, allocations: 1.219 kB / 3.383 GB, free: 37.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001202/10.94, allocations: 32.88 kB / 3.383 GB, free: 37.02 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.01122/10.95, allocations: 2.333 MB / 3.385 GB, free: 36.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/10.95, allocations: 11.25 kB / 3.385 GB, free: 36.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006051/10.95, allocations: 162.5 kB / 3.386 GB, free: 36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007196/10.96, allocations: 0.7134 MB / 3.386 GB, free: 35.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002831/10.96, allocations: 0.9487 MB / 3.387 GB, free: 35.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.936e-05/10.96, allocations: 75.52 kB / 3.387 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/10.96, allocations: 98.53 kB / 3.387 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00537/10.96, allocations: 1.702 MB / 3.389 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.732e-05/10.96, allocations: 7.812 kB / 3.389 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002539/10.96, allocations: 54.3 kB / 3.389 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/10.96, allocations: 24.09 kB / 3.389 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005116/10.97, allocations: 1.521 MB / 3.391 GB, free: 35.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/10.98, allocations: 8.249 MB / 3.399 GB, free: 29.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004083/10.99, allocations: 1.699 MB / 3.4 GB, free: 28.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2885/11.28, allocations: 80.27 MB / 3.479 GB, free: 16.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.684e-05/11.28, allocations: 45.94 kB / 3.479 GB, free: 16.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 4.288e-06/11.28, allocations: 0 / 3.479 GB, free: 16.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.008039/11.28, allocations: 2.035 MB / 3.481 GB, free: 15.81 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/11.28, allocations: 190.8 kB / 3.481 GB, free: 15.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/11.29, allocations: 0.8178 MB / 3.482 GB, free: 15.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/11.29, allocations: 39.89 kB / 3.482 GB, free: 15.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005024/11.29, allocations: 0.6015 MB / 3.482 GB, free: 15.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003216/11.29, allocations: 278 kB / 3.483 GB, free: 14.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-05/11.29, allocations: 22.28 kB / 3.483 GB, free: 14.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/11.29, allocations: 357 kB / 3.483 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009382/11.29, allocations: 338.9 kB / 3.483 GB, free: 14.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/11.29, allocations: 0.8192 MB / 3.484 GB, free: 13.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/11.29, allocations: 457.9 kB / 3.484 GB, free: 13.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/11.29, allocations: 3.969 kB / 3.484 GB, free: 13.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00347/11.29, allocations: 1.372 MB / 3.486 GB, free: 13.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/11.29, allocations: 10.59 kB / 3.486 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/11.29, allocations: 18.28 kB / 3.486 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01156/11.3, allocations: 0.8277 MB / 3.487 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/11.31, allocations: 330.1 kB / 3.487 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/11.31, allocations: 1.528 MB / 3.488 GB, free: 12.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/11.31, allocations: 165.7 kB / 3.489 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/11.31, allocations: 69.06 kB / 3.489 GB, free: 12.61 MB / 458.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.0008326/11.31, allocations: 302.6 kB / 3.489 GB, free: 12.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/11.31, allocations: 107.8 kB / 3.489 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007035/11.32, allocations: 4.549 MB / 3.494 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-05/11.32, allocations: 50.59 kB / 3.494 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/11.32, allocations: 3.719 kB / 3.494 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.34e-05/11.32, allocations: 3.656 kB / 3.494 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009072/11.33, allocations: 5.022 MB / 3.498 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-05/11.33, allocations: 0 / 3.498 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/11.33, allocations: 197.8 kB / 3.499 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0124/11.34, allocations: 1.886 MB / 3.501 GB, free: 26.67 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001894/11.34, allocations: 27.03 kB / 3.501 GB, free: 26.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002091/11.35, allocations: 1.901 MB / 3.502 GB, free: 25.14 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/11.35, allocations: 4 kB / 3.502 GB, free: 25.13 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003661/11.35, allocations: 2.082 MB / 3.504 GB, free: 23.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007156/11.35, allocations: 338.3 kB / 3.505 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/11.35, allocations: 13.25 kB / 3.505 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/11.35, allocations: 60.88 kB / 3.505 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/11.35, allocations: 51.69 kB / 3.505 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.832e-05/11.35, allocations: 31.02 kB / 3.505 GB, free: 23.43 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001362/11.35, allocations: 0.7013 MB / 3.506 GB, free: 23.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/11.35, allocations: 0 / 3.506 GB, free: 23.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006754/11.36, allocations: 1.341 MB / 3.507 GB, free: 21.8 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.01493/11.38, allocations: 4.359 MB / 3.511 GB, free: 18.69 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004901/11.38, allocations: 1.366 MB / 3.512 GB, free: 17.92 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/11.38, allocations: 448 / 3.512 GB, free: 17.92 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/11.38, allocations: 0.9627 MB / 3.513 GB, free: 17.44 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004896/11.39, allocations: 0.5313 MB / 3.514 GB, free: 17.15 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5609/11.95, allocations: 98.15 MB / 3.61 GB, free: 65.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008786/11.95, allocations: 1.353 MB / 3.611 GB, free: 65.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002122/11.95, allocations: 0.5765 MB / 3.612 GB, free: 65.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/11.95, allocations: 0.6535 MB / 3.612 GB, free: 65.09 MB / 474.7 MB Notification: Performance of SimCode: time 9.32e-07/11.95, allocations: 0 / 3.612 GB, free: 65.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1769/12.13, allocations: 66.53 MB / 3.677 GB, free: 52.24 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/12.13, allocations: 258.1 kB / 3.678 GB, free: 51.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.579/17.71, allocations: 4 kB / 3.678 GB, free: 51.88 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat