Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.662/1.662, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 93.19 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.717e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1282, allocations: 51.48 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.955/9.083, allocations: 2.756 GB / 3.142 GB, free: 92.76 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/9.084, allocations: 76.22 kB / 3.142 GB, free: 92.76 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.109/11.19, allocations: 0.493 GB / 3.635 GB, free: 44.75 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.502e-06/11.19, allocations: 0 / 3.635 GB, free: 44.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001475/11.19, allocations: 29.86 kB / 3.635 GB, free: 44.74 MB / 474.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.01003/11.2, allocations: 2.202 MB / 3.637 GB, free: 43.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/11.2, allocations: 8.781 kB / 3.637 GB, free: 43.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005469/11.21, allocations: 0.7117 MB / 3.638 GB, free: 43.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/11.21, allocations: 0.9257 MB / 3.638 GB, free: 43.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.456e-05/11.21, allocations: 31.41 kB / 3.639 GB, free: 43.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/11.21, allocations: 58.06 kB / 3.639 GB, free: 43.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002135/11.21, allocations: 1.07 MB / 3.64 GB, free: 43.46 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/11.22, allocations: 1.234 MB / 3.641 GB, free: 43.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/11.22, allocations: 8.594 kB / 3.641 GB, free: 43.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/11.22, allocations: 6.844 kB / 3.641 GB, free: 43.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/11.22, allocations: 26.38 kB / 3.641 GB, free: 43.05 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.333/12.55, allocations: 360.3 MB / 3.993 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008538/12.55, allocations: 0.5439 MB / 3.993 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/12.55, allocations: 281.1 kB / 3.994 GB, free: 122 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08615/12.64, allocations: 53.55 MB / 4.046 GB, free: 86.43 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/12.64, allocations: 45.75 kB / 4.046 GB, free: 86.39 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/12.64, allocations: 4 kB / 4.046 GB, free: 86.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=49): time 0.00492/12.64, allocations: 1.522 MB / 4.047 GB, free: 86.32 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/12.64, allocations: 187.5 kB / 4.048 GB, free: 86.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/12.64, allocations: 0.8808 MB / 4.048 GB, free: 85.95 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.153e-05/12.64, allocations: 29.61 kB / 4.048 GB, free: 85.91 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/12.64, allocations: 0.6696 MB / 4.049 GB, free: 85.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/12.64, allocations: 177.9 kB / 4.049 GB, free: 85.55 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.315e-05/12.64, allocations: 0 / 4.049 GB, free: 85.55 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.72e-05/12.64, allocations: 353.7 kB / 4.05 GB, free: 85.24 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/12.64, allocations: 319.6 kB / 4.05 GB, free: 85.24 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006798/12.64, allocations: 0.7263 MB / 4.051 GB, free: 84.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/12.65, allocations: 0.7135 MB / 4.051 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/12.65, allocations: 5.906 kB / 4.051 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004036/12.65, allocations: 1.513 MB / 4.053 GB, free: 84.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/12.65, allocations: 17.56 kB / 4.053 GB, free: 84.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/12.65, allocations: 15.92 kB / 4.053 GB, free: 84.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004789/12.65, allocations: 198.3 kB / 4.053 GB, free: 84.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/12.65, allocations: 306.4 kB / 4.053 GB, free: 84.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/12.65, allocations: 1.674 MB / 4.055 GB, free: 83.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/12.65, allocations: 151.5 kB / 4.055 GB, free: 83.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-05/12.65, allocations: 67.84 kB / 4.055 GB, free: 83.41 MB / 0.5573 GB 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.0002021/12.66, allocations: 147.5 kB / 4.055 GB, free: 83.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/12.66, allocations: 114.8 kB / 4.055 GB, free: 83.24 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004152/12.66, allocations: 3.018 MB / 4.058 GB, free: 83.04 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.709e-05/12.66, allocations: 18.92 kB / 4.058 GB, free: 83.04 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/12.66, allocations: 0 / 4.058 GB, free: 83.04 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/12.66, allocations: 5.594 kB / 4.058 GB, free: 83.04 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/12.66, allocations: 1.386 MB / 4.06 GB, free: 82.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/12.66, allocations: 0 / 4.06 GB, free: 82.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007614/12.66, allocations: 139.3 kB / 4.06 GB, free: 82.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/12.66, allocations: 2.149 MB / 4.062 GB, free: 82.81 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/12.66, allocations: 13.77 kB / 4.062 GB, free: 82.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/12.67, allocations: 3.029 MB / 4.065 GB, free: 81.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/12.67, allocations: 2.25 kB / 4.065 GB, free: 81.66 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/12.67, allocations: 2.181 MB / 4.067 GB, free: 81.26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/12.67, allocations: 306.8 kB / 4.067 GB, free: 81.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/12.67, allocations: 9.25 kB / 4.067 GB, free: 81.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005321/12.67, allocations: 28.55 kB / 4.067 GB, free: 81.06 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/12.67, allocations: 29.23 kB / 4.067 GB, free: 81.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/12.67, allocations: 25.25 kB / 4.067 GB, free: 81.05 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0009531/12.67, allocations: 0.8498 MB / 4.068 GB, free: 80.95 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.31e-07/12.67, allocations: 1.688 kB / 4.068 GB, free: 80.95 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005533/12.68, allocations: 1.311 MB / 4.07 GB, free: 80.86 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.005882/12.68, allocations: 1.894 MB / 4.071 GB, free: 80.59 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002505/12.69, allocations: 0.9769 MB / 4.072 GB, free: 80.57 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/12.69, allocations: 1.75 kB / 4.072 GB, free: 80.57 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001313/12.69, allocations: 0.4995 MB / 4.073 GB, free: 80.56 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/12.69, allocations: 436.1 kB / 4.073 GB, free: 80.54 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/12.69, allocations: 1.593 MB / 4.075 GB, free: 80.06 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007002/12.69, allocations: 1.2 MB / 4.076 GB, free: 79.33 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002025/12.69, allocations: 1.028 MB / 4.077 GB, free: 79.29 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/12.69, allocations: 103.6 kB / 4.077 GB, free: 79.28 MB / 0.5573 GB Notification: Performance of SimCode: time 7.01e-07/12.69, allocations: 0 / 4.077 GB, free: 79.28 MB / 0.5573 GB Notification: Performance of Templates: time 0.05817/12.75, allocations: 41.22 MB / 4.117 GB, free: 76.64 MB / 0.5573 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)