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.002738/0.002738, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.282/2.282, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00111/0.00111, allocations: 93.91 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.098e-05, allocations: 0 / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 47.57 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.368/8.472, allocations: 2.75 GB / 3.111 GB, free: 9.492 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/8.472, allocations: 80.36 kB / 3.111 GB, free: 9.453 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.582/11.05, allocations: 0.4987 GB / 3.61 GB, free: 6.238 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/11.05, allocations: 0 / 3.61 GB, free: 6.238 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000135/11.05, allocations: 34.77 kB / 3.61 GB, free: 6.207 MB / 442.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.01099/11.07, allocations: 2.2 MB / 3.612 GB, free: 3.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/11.07, allocations: 8.031 kB / 3.612 GB, free: 3.973 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007635/11.07, allocations: 0.7065 MB / 3.613 GB, free: 3.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/11.08, allocations: 0.9242 MB / 3.613 GB, free: 2.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/11.08, allocations: 77.33 kB / 3.614 GB, free: 2.246 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002852/11.08, allocations: 100 kB / 3.614 GB, free: 2.148 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005934/11.08, allocations: 1.798 MB / 3.615 GB, free: 200 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.316e-05/11.08, allocations: 7.938 kB / 3.615 GB, free: 192 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/11.08, allocations: 51.98 kB / 3.615 GB, free: 140 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.061e-05/11.08, allocations: 31.58 kB / 3.615 GB, free: 112 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.339/11.42, allocations: 1.598 MB / 3.617 GB, free: 38.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/11.44, allocations: 8.535 MB / 3.625 GB, free: 32.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004699/11.44, allocations: 1.821 MB / 3.627 GB, free: 32.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/11.44, allocations: 427.9 kB / 3.628 GB, free: 32.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2061/11.65, allocations: 63.2 MB / 3.689 GB, free: 25.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.855e-05/11.65, allocations: 49.62 kB / 3.689 GB, free: 25.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=77): time 6.543e-06/11.65, allocations: 7.375 kB / 3.689 GB, free: 25.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=77): time 0.006659/11.66, allocations: 1.725 MB / 3.691 GB, free: 25.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/11.66, allocations: 194.8 kB / 3.691 GB, free: 25.17 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/11.66, allocations: 0.9207 MB / 3.692 GB, free: 25.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002431/11.66, allocations: 40.58 kB / 3.692 GB, free: 24.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004699/11.66, allocations: 0.556 MB / 3.693 GB, free: 24.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003842/11.66, allocations: 278.4 kB / 3.693 GB, free: 24.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.616e-05/11.66, allocations: 23.75 kB / 3.693 GB, free: 24.57 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/11.66, allocations: 353.1 kB / 3.693 GB, free: 24.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009518/11.66, allocations: 330.1 kB / 3.694 GB, free: 24.25 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/11.66, allocations: 0.7466 MB / 3.694 GB, free: 23.74 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/11.66, allocations: 451.9 kB / 3.695 GB, free: 23.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/11.66, allocations: 3.062 kB / 3.695 GB, free: 23.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003348/11.67, allocations: 1.247 MB / 3.696 GB, free: 23.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/11.67, allocations: 9.672 kB / 3.696 GB, free: 23.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.287e-05/11.67, allocations: 14.59 kB / 3.696 GB, free: 23.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/11.68, allocations: 0.8302 MB / 3.697 GB, free: 23.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00274/11.68, allocations: 299.8 kB / 3.697 GB, free: 23.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/11.68, allocations: 1.551 MB / 3.699 GB, free: 22.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/11.69, allocations: 168.9 kB / 3.699 GB, free: 22.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002142/11.69, allocations: 61.98 kB / 3.699 GB, free: 22.42 MB / 474.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 () * 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.0003712/11.69, allocations: 190.8 kB / 3.699 GB, free: 22.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/11.69, allocations: 130.6 kB / 3.699 GB, free: 22.25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007002/11.69, allocations: 4.548 MB / 3.704 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-05/11.69, allocations: 49.23 kB / 3.704 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/11.69, allocations: 1.312 kB / 3.704 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/11.7, allocations: 3.609 kB / 3.704 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008856/11.7, allocations: 5.112 MB / 3.709 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/11.7, allocations: 3.953 kB / 3.709 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002068/11.71, allocations: 192.8 kB / 3.709 GB, free: 20.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01317/11.72, allocations: 1.915 MB / 3.711 GB, free: 20.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/11.72, allocations: 24.89 kB / 3.711 GB, free: 20.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/11.72, allocations: 1.931 MB / 3.713 GB, free: 19.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/11.72, allocations: 3.156 kB / 3.713 GB, free: 19.55 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/11.73, allocations: 2.088 MB / 3.715 GB, free: 19.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008132/11.73, allocations: 360.3 kB / 3.715 GB, free: 18.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003941/11.73, allocations: 19.8 kB / 3.715 GB, free: 18.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/11.73, allocations: 62.92 kB / 3.715 GB, free: 18.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/11.73, allocations: 50.36 kB / 3.715 GB, free: 18.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/11.73, allocations: 34.27 kB / 3.715 GB, free: 18.85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001736/11.73, allocations: 0.8887 MB / 3.716 GB, free: 18.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.22e-07/11.73, allocations: 0 / 3.716 GB, free: 18.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006651/11.74, allocations: 1.35 MB / 3.717 GB, free: 18.66 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 () * 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.01151/11.75, allocations: 1.749 MB / 3.719 GB, free: 18.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004862/11.75, allocations: 1.347 MB / 3.72 GB, free: 18.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/11.75, allocations: 1.031 kB / 3.72 GB, free: 18.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003682/11.76, allocations: 0.9756 MB / 3.721 GB, free: 18.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005897/11.76, allocations: 0.6718 MB / 3.722 GB, free: 18.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/11.77, allocations: 2.389 MB / 3.724 GB, free: 17.67 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/11.77, allocations: 1.356 MB / 3.726 GB, free: 16.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005623/11.77, allocations: 113.5 kB / 3.726 GB, free: 16.92 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/11.77, allocations: 0 / 3.726 GB, free: 16.92 MB / 474.7 MB Notification: Performance of Templates: time 0.09833/11.87, allocations: 53.68 MB / 3.778 GB, free: 2.934 MB / 474.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)