Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003625, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09147, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.447/7.539, allocations: 2.475 GB / 2.741 GB, free: 41.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/7.539, allocations: 80.02 kB / 2.741 GB, free: 41.16 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.648/10.19, allocations: 498.1 MB / 3.227 GB, free: 29.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/10.19, allocations: 0 / 3.227 GB, free: 29.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001012/10.19, allocations: 29.48 kB / 3.227 GB, free: 29.26 MB / 378.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.01038/10.2, allocations: 2.248 MB / 3.229 GB, free: 28.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/10.2, allocations: 14.62 kB / 3.229 GB, free: 28.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004676/10.2, allocations: 158.3 kB / 3.23 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007194/10.21, allocations: 0.6797 MB / 3.23 GB, free: 28.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/10.21, allocations: 0.9485 MB / 3.231 GB, free: 27.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-05/10.21, allocations: 73.98 kB / 3.231 GB, free: 27.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/10.21, allocations: 97.16 kB / 3.231 GB, free: 27.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005392/10.21, allocations: 1.704 MB / 3.233 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/10.21, allocations: 7.094 kB / 3.233 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/10.21, allocations: 46.22 kB / 3.233 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/10.21, allocations: 24.25 kB / 3.233 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005007/10.22, allocations: 1.514 MB / 3.235 GB, free: 27.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/10.23, allocations: 8.26 MB / 3.243 GB, free: 21.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003976/10.24, allocations: 1.703 MB / 3.244 GB, free: 21.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2839/10.52, allocations: 80.22 MB / 3.323 GB, free: 24.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/10.52, allocations: 39.94 kB / 3.323 GB, free: 24.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 2.985e-06/10.52, allocations: 0 / 3.323 GB, free: 24.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.007976/10.53, allocations: 2.033 MB / 3.325 GB, free: 24.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/10.53, allocations: 189.5 kB / 3.325 GB, free: 23.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/10.53, allocations: 0.8129 MB / 3.326 GB, free: 23.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/10.53, allocations: 40.05 kB / 3.326 GB, free: 23.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004628/10.53, allocations: 0.6142 MB / 3.326 GB, free: 23.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/10.53, allocations: 274.5 kB / 3.327 GB, free: 23.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.609e-05/10.53, allocations: 28.34 kB / 3.327 GB, free: 23.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/10.53, allocations: 355.3 kB / 3.327 GB, free: 22.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008931/10.53, allocations: 337 kB / 3.327 GB, free: 22.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/10.53, allocations: 0.8194 MB / 3.328 GB, free: 22.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/10.53, allocations: 464.4 kB / 3.328 GB, free: 22.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/10.53, allocations: 7.625 kB / 3.328 GB, free: 22.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003235/10.54, allocations: 1.303 MB / 3.33 GB, free: 22.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/10.54, allocations: 12.5 kB / 3.33 GB, free: 22.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/10.54, allocations: 18.5 kB / 3.33 GB, free: 22.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/10.55, allocations: 0.8347 MB / 3.331 GB, free: 21.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/10.55, allocations: 323.1 kB / 3.331 GB, free: 21.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/10.55, allocations: 1.529 MB / 3.332 GB, free: 20.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/10.55, allocations: 155.9 kB / 3.333 GB, free: 20.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002627/10.56, allocations: 70.05 kB / 3.333 GB, free: 20.79 MB / 426.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.0009727/10.56, allocations: 304.3 kB / 3.333 GB, free: 20.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003951/10.56, allocations: 127 kB / 3.333 GB, free: 20.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006912/10.56, allocations: 4.543 MB / 3.337 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.576e-05/10.56, allocations: 44.88 kB / 3.337 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/10.56, allocations: 3.938 kB / 3.338 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/10.56, allocations: 3.188 kB / 3.338 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008129/10.57, allocations: 5.021 MB / 3.342 GB, free: 19.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/10.57, allocations: 0 / 3.342 GB, free: 19.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/10.57, allocations: 202.2 kB / 3.343 GB, free: 19.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0124/10.59, allocations: 1.882 MB / 3.344 GB, free: 18.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001891/10.59, allocations: 24.23 kB / 3.344 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002013/10.59, allocations: 1.904 MB / 3.346 GB, free: 16.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/10.59, allocations: 2.312 kB / 3.346 GB, free: 16.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003492/10.59, allocations: 2.084 MB / 3.348 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/10.59, allocations: 329 kB / 3.349 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003024/10.59, allocations: 23.97 kB / 3.349 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/10.59, allocations: 58.44 kB / 3.349 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/10.59, allocations: 54.73 kB / 3.349 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.151e-05/10.59, allocations: 31.69 kB / 3.349 GB, free: 14.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001253/10.6, allocations: 0.703 MB / 3.35 GB, free: 14.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/10.6, allocations: 0 / 3.35 GB, free: 14.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006571/10.6, allocations: 1.336 MB / 3.351 GB, free: 13.34 MB / 426.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.01433/10.62, allocations: 4.355 MB / 3.355 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004959/10.62, allocations: 1.361 MB / 3.356 GB, free: 9.473 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/10.62, allocations: 4.188 kB / 3.356 GB, free: 9.469 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003839/10.63, allocations: 0.9859 MB / 3.357 GB, free: 8.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004833/10.63, allocations: 0.5393 MB / 3.358 GB, free: 8.684 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.501/11.13, allocations: 93.73 MB / 3.449 GB, free: 56.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008839/11.13, allocations: 1.345 MB / 3.451 GB, free: 56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/11.13, allocations: 0.6433 MB / 3.451 GB, free: 56 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/11.13, allocations: 0 / 3.451 GB, free: 56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.972/15.11, allocations: 57.98 MB / 3.508 GB, free: 36.89 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat