Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") 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.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001578/0.001578, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 84.48 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003893, allocations: 8 kB / 327 MB, free: 240 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3355, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.843/8.178, allocations: 2.751 GB / 3.116 GB, free: 43.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/8.179, allocations: 85.56 kB / 3.116 GB, free: 43.57 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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.516/10.69, allocations: 0.5004 GB / 3.617 GB, free: 17.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.775e-06/10.7, allocations: 0 / 3.617 GB, free: 17.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.629e-05/10.7, allocations: 26.11 kB / 3.617 GB, free: 17.45 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.01052/10.71, allocations: 2.334 MB / 3.619 GB, free: 15.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/10.71, allocations: 8.031 kB / 3.619 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007637/10.71, allocations: 0.7148 MB / 3.62 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002651/10.72, allocations: 0.9229 MB / 3.621 GB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.297e-05/10.72, allocations: 74.02 kB / 3.621 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/10.72, allocations: 99.94 kB / 3.621 GB, free: 13.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00516/10.72, allocations: 1.714 MB / 3.623 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.393e-05/10.72, allocations: 7.938 kB / 3.623 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/10.72, allocations: 44 kB / 3.623 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/10.72, allocations: 35.95 kB / 3.623 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004984/10.73, allocations: 1.518 MB / 3.624 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/10.74, allocations: 8.547 MB / 3.632 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004602/10.75, allocations: 1.728 MB / 3.634 GB, free: 14.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5324/11.28, allocations: 62.97 MB / 3.696 GB, free: 36.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/11.28, allocations: 44.34 kB / 3.696 GB, free: 36.21 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 3.637e-06/11.28, allocations: 2.625 kB / 3.696 GB, free: 36.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.00941/11.29, allocations: 2.113 MB / 3.698 GB, free: 36.06 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/11.29, allocations: 197 kB / 3.698 GB, free: 35.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/11.29, allocations: 0.9339 MB / 3.699 GB, free: 35.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002322/11.29, allocations: 39.98 kB / 3.699 GB, free: 35.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/11.29, allocations: 0.5595 MB / 3.699 GB, free: 35.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003952/11.29, allocations: 274.4 kB / 3.7 GB, free: 35.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/11.29, allocations: 25.97 kB / 3.7 GB, free: 35.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/11.29, allocations: 356.5 kB / 3.7 GB, free: 34.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/11.29, allocations: 342.5 kB / 3.7 GB, free: 34.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/11.29, allocations: 0.7554 MB / 3.701 GB, free: 34.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/11.29, allocations: 445.1 kB / 3.702 GB, free: 34.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/11.29, allocations: 3.938 kB / 3.702 GB, free: 34.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003611/11.3, allocations: 1.269 MB / 3.703 GB, free: 34.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/11.3, allocations: 11.88 kB / 3.703 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/11.3, allocations: 16.92 kB / 3.703 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01226/11.31, allocations: 0.8431 MB / 3.704 GB, free: 34.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002674/11.31, allocations: 303.6 kB / 3.704 GB, free: 34.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/11.32, allocations: 1.558 MB / 3.705 GB, free: 33.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/11.32, allocations: 161.1 kB / 3.706 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/11.32, allocations: 67.86 kB / 3.706 GB, free: 33.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (124): * Single equations (assignments): 122 * 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.0007641/11.32, allocations: 286.7 kB / 3.706 GB, free: 33.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003564/11.32, allocations: 121.3 kB / 3.706 GB, free: 32.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006862/11.33, allocations: 4.585 MB / 3.711 GB, free: 32.57 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.812e-05/11.33, allocations: 41.12 kB / 3.711 GB, free: 32.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/11.33, allocations: 5.828 kB / 3.711 GB, free: 32.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/11.33, allocations: 8.641 kB / 3.711 GB, free: 32.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008249/11.33, allocations: 5.13 MB / 3.716 GB, free: 31.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/11.33, allocations: 5.969 kB / 3.716 GB, free: 31.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001965/11.34, allocations: 187.2 kB / 3.716 GB, free: 31.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01293/11.35, allocations: 1.912 MB / 3.718 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000183/11.35, allocations: 24.78 kB / 3.718 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/11.35, allocations: 1.938 MB / 3.72 GB, free: 30.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/11.35, allocations: 0 / 3.72 GB, free: 30.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/11.35, allocations: 2.117 MB / 3.722 GB, free: 29.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007801/11.36, allocations: 363.2 kB / 3.722 GB, free: 29.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004489/11.36, allocations: 15.03 kB / 3.722 GB, free: 29.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/11.36, allocations: 60.66 kB / 3.722 GB, free: 29.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/11.36, allocations: 54.75 kB / 3.722 GB, free: 29.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-05/11.36, allocations: 32.02 kB / 3.722 GB, free: 29.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001749/11.36, allocations: 0.9064 MB / 3.723 GB, free: 29.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.12e-07/11.36, allocations: 0 / 3.723 GB, free: 29.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006606/11.37, allocations: 1.351 MB / 3.724 GB, free: 29.38 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 (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.01075/11.38, allocations: 1.738 MB / 3.726 GB, free: 29.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005008/11.38, allocations: 1.373 MB / 3.727 GB, free: 29.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/11.38, allocations: 3.844 kB / 3.727 GB, free: 29.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003914/11.39, allocations: 0.9864 MB / 3.728 GB, free: 29.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006259/11.39, allocations: 0.6721 MB / 3.729 GB, free: 29.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007057/11.4, allocations: 3.795 MB / 3.733 GB, free: 27.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008592/11.4, allocations: 1.349 MB / 3.734 GB, free: 26.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005793/11.4, allocations: 118.4 kB / 3.734 GB, free: 26.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/11.4, allocations: 0 / 3.734 GB, free: 26.52 MB / 458.7 MB Notification: Performance of Templates: time 0.09787/11.5, allocations: 53.95 MB / 3.787 GB, free: 20.94 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)