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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003714, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.058/8.166, allocations: 2.585 GB / 2.886 GB, free: 95.37 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/8.167, allocations: 84.31 kB / 2.886 GB, free: 95.37 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.621/10.79, allocations: 0.497 GB / 3.383 GB, free: 36.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/10.79, allocations: 0 / 3.383 GB, free: 36.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001114/10.79, allocations: 34.23 kB / 3.383 GB, free: 36.89 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.01081/10.8, allocations: 2.328 MB / 3.385 GB, free: 35.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/10.8, allocations: 14.02 kB / 3.385 GB, free: 35.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006118/10.8, allocations: 152.8 kB / 3.385 GB, free: 35.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007505/10.81, allocations: 0.7159 MB / 3.386 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/10.81, allocations: 0.9541 MB / 3.387 GB, free: 35.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.682e-05/10.81, allocations: 76.83 kB / 3.387 GB, free: 35.42 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/10.81, allocations: 100.1 kB / 3.387 GB, free: 35.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005377/10.82, allocations: 1.707 MB / 3.389 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.864e-05/10.82, allocations: 2.719 kB / 3.389 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/10.82, allocations: 49.89 kB / 3.389 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.889e-05/10.82, allocations: 31.47 kB / 3.389 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005288/10.82, allocations: 1.516 MB / 3.391 GB, free: 34.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01276/10.83, allocations: 8.253 MB / 3.399 GB, free: 29.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004182/10.84, allocations: 1.696 MB / 3.4 GB, free: 28.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.286/11.12, allocations: 80.28 MB / 3.479 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/11.12, allocations: 38.69 kB / 3.479 GB, free: 14.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 3.387e-06/11.12, allocations: 1.219 kB / 3.479 GB, free: 14.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.008346/11.13, allocations: 2.031 MB / 3.481 GB, free: 12.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/11.13, allocations: 188.5 kB / 3.481 GB, free: 12.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/11.13, allocations: 0.8165 MB / 3.482 GB, free: 12.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002467/11.13, allocations: 38.7 kB / 3.482 GB, free: 12.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005188/11.14, allocations: 0.6057 MB / 3.482 GB, free: 11.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/11.14, allocations: 287.8 kB / 3.483 GB, free: 11.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/11.14, allocations: 25.25 kB / 3.483 GB, free: 11.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/11.14, allocations: 357 kB / 3.483 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/11.14, allocations: 333.7 kB / 3.483 GB, free: 11.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/11.14, allocations: 0.8268 MB / 3.484 GB, free: 10.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/11.14, allocations: 455.2 kB / 3.484 GB, free: 9.969 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/11.14, allocations: 8 kB / 3.484 GB, free: 9.961 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003499/11.14, allocations: 1.306 MB / 3.486 GB, free: 9.227 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/11.14, allocations: 12.62 kB / 3.486 GB, free: 9.215 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/11.14, allocations: 19.19 kB / 3.486 GB, free: 9.199 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/11.15, allocations: 0.8222 MB / 3.487 GB, free: 8.695 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/11.16, allocations: 328.8 kB / 3.487 GB, free: 8.465 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/11.16, allocations: 1.531 MB / 3.488 GB, free: 7.109 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/11.16, allocations: 166.2 kB / 3.489 GB, free: 6.977 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/11.16, allocations: 73.73 kB / 3.489 GB, free: 6.922 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.0008046/11.16, allocations: 299.4 kB / 3.489 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/11.16, allocations: 106.7 kB / 3.489 GB, free: 6.602 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006952/11.17, allocations: 4.554 MB / 3.493 GB, free: 4.254 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-05/11.17, allocations: 48.28 kB / 3.493 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/11.17, allocations: 0 / 3.493 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.173e-05/11.17, allocations: 11.31 kB / 3.494 GB, free: 4.227 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3421/11.51, allocations: 5.017 MB / 3.498 GB, free: 68.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/11.51, allocations: 0 / 3.498 GB, free: 68.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/11.51, allocations: 200.4 kB / 3.499 GB, free: 68.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01356/11.53, allocations: 1.874 MB / 3.5 GB, free: 68.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/11.53, allocations: 25.88 kB / 3.5 GB, free: 68.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/11.53, allocations: 1.906 MB / 3.502 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/11.53, allocations: 1.484 kB / 3.502 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/11.53, allocations: 2.088 MB / 3.504 GB, free: 66.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/11.54, allocations: 324.1 kB / 3.505 GB, free: 66.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003845/11.54, allocations: 16.06 kB / 3.505 GB, free: 66.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/11.54, allocations: 62.31 kB / 3.505 GB, free: 66.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/11.54, allocations: 61 kB / 3.505 GB, free: 66.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/11.54, allocations: 30.2 kB / 3.505 GB, free: 66.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001627/11.54, allocations: 0.7 MB / 3.506 GB, free: 66.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.433e-06/11.54, allocations: 0 / 3.506 GB, free: 66.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007268/11.55, allocations: 1.342 MB / 3.507 GB, free: 66.37 MB / 458.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.01584/11.56, allocations: 4.353 MB / 3.511 GB, free: 65.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00501/11.57, allocations: 1.363 MB / 3.512 GB, free: 65.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/11.57, allocations: 0 / 3.512 GB, free: 65.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00393/11.57, allocations: 0.9845 MB / 3.513 GB, free: 65.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005225/11.58, allocations: 0.5337 MB / 3.514 GB, free: 65.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.239/11.82, allocations: 97.74 MB / 3.609 GB, free: 48.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009649/11.82, allocations: 1.344 MB / 3.611 GB, free: 47.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/11.82, allocations: 0.6418 MB / 3.611 GB, free: 47.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.462e-06/11.82, allocations: 0 / 3.611 GB, free: 47.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.402/16.22, allocations: 58.14 MB / 3.668 GB, free: 66.39 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat