Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00183/0.001831, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.604/1.604, allocations: 170.7 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001702/0.001702, allocations: 103.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.789e-05/1.791e-05, allocations: 0 / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.09157, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.988/6.08, allocations: 2.474 GB / 2.768 GB, free: 48.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/6.08, allocations: 79.95 kB / 2.768 GB, free: 48.29 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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 1.754/7.833, allocations: 485 MB / 3.242 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/7.834, allocations: 3.438 kB / 3.242 GB, free: 36.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.772e-05/7.834, allocations: 32.09 kB / 3.242 GB, free: 36.97 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.008787/7.842, allocations: 2.1 MB / 3.244 GB, free: 36.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/7.842, allocations: 10.53 kB / 3.244 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004967/7.847, allocations: 0.6728 MB / 3.245 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/7.849, allocations: 0.9508 MB / 3.246 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.111e-05/7.849, allocations: 34.59 kB / 3.246 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/7.85, allocations: 55.94 kB / 3.246 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001915/7.852, allocations: 1.063 MB / 3.247 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/7.853, allocations: 1.23 MB / 3.248 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/7.853, allocations: 7 kB / 3.248 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.023e-05/7.853, allocations: 3.844 kB / 3.248 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/7.853, allocations: 29 kB / 3.248 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8384/8.692, allocations: 264 MB / 3.506 GB, free: 20.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/8.693, allocations: 0.5349 MB / 3.506 GB, free: 20.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004211/8.693, allocations: 279.6 kB / 3.506 GB, free: 20.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3463/9.04, allocations: 47.29 MB / 3.553 GB, free: 68.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/9.04, allocations: 43.67 kB / 3.553 GB, free: 68.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/9.04, allocations: 0 / 3.553 GB, free: 68.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.005295/9.045, allocations: 1.52 MB / 3.554 GB, free: 68.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/9.045, allocations: 185 kB / 3.554 GB, free: 68.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/9.047, allocations: 0.8736 MB / 3.555 GB, free: 68.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.432e-05/9.047, allocations: 25.7 kB / 3.555 GB, free: 68.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005077/9.047, allocations: 0.6879 MB / 3.556 GB, free: 67.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/9.048, allocations: 179.5 kB / 3.556 GB, free: 67.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/9.048, allocations: 0 / 3.556 GB, free: 67.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/9.048, allocations: 355.6 kB / 3.556 GB, free: 67.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/9.048, allocations: 314.6 kB / 3.557 GB, free: 67.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006653/9.049, allocations: 0.7809 MB / 3.557 GB, free: 66.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002445/9.051, allocations: 0.7258 MB / 3.558 GB, free: 66.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/9.051, allocations: 3.688 kB / 3.558 GB, free: 66.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003784/9.055, allocations: 1.524 MB / 3.56 GB, free: 66.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/9.055, allocations: 15.44 kB / 3.56 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/9.055, allocations: 24.28 kB / 3.56 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004196/9.056, allocations: 185.1 kB / 3.56 GB, free: 66.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/9.057, allocations: 334.5 kB / 3.56 GB, free: 66.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/9.058, allocations: 1.645 MB / 3.562 GB, free: 65.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/9.06, allocations: 164.1 kB / 3.562 GB, free: 65.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.655e-05/9.06, allocations: 74.11 kB / 3.562 GB, free: 65.56 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 () * 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.0002067/9.06, allocations: 160 kB / 3.562 GB, free: 65.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/9.06, allocations: 109.6 kB / 3.562 GB, free: 65.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/9.064, allocations: 3.004 MB / 3.565 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/9.064, allocations: 20.45 kB / 3.565 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/9.064, allocations: 3.281 kB / 3.565 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/9.064, allocations: 3.891 kB / 3.565 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/9.065, allocations: 1.342 MB / 3.567 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/9.065, allocations: 0.7812 kB / 3.567 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008651/9.066, allocations: 137.4 kB / 3.567 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/9.068, allocations: 2.135 MB / 3.569 GB, free: 64.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.556e-05/9.068, allocations: 17.72 kB / 3.569 GB, free: 64.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/9.071, allocations: 2.991 MB / 3.572 GB, free: 63.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/9.071, allocations: 0 / 3.572 GB, free: 63.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/9.073, allocations: 2.187 MB / 3.574 GB, free: 63.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/9.074, allocations: 288.6 kB / 3.574 GB, free: 63.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/9.074, allocations: 0 / 3.574 GB, free: 63.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004805/9.074, allocations: 23 kB / 3.574 GB, free: 63.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/9.074, allocations: 38.03 kB / 3.574 GB, free: 63.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/9.075, allocations: 23.17 kB / 3.574 GB, free: 63.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009325/9.075, allocations: 0.7811 MB / 3.575 GB, free: 63.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/9.075, allocations: 0 / 3.575 GB, free: 63.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006215/9.082, allocations: 1.273 MB / 3.576 GB, free: 63 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: 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 (39): * Single equations (assignments): 37 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.008348/9.09, allocations: 1.881 MB / 3.578 GB, free: 62.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002762/9.093, allocations: 0.9791 MB / 3.579 GB, free: 62.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/9.093, allocations: 2.625 kB / 3.579 GB, free: 62.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/9.094, allocations: 0.4944 MB / 3.58 GB, free: 62.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/9.097, allocations: 433.2 kB / 3.58 GB, free: 62.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/9.099, allocations: 1.595 MB / 3.581 GB, free: 62.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/9.1, allocations: 1.202 MB / 3.583 GB, free: 61.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001541/9.101, allocations: 0.9742 MB / 3.584 GB, free: 61.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/9.102, allocations: 94.98 kB / 3.584 GB, free: 61.54 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/9.102, allocations: 0 / 3.584 GB, free: 61.54 MB / 426.7 MB Notification: Performance of Templates: time 0.06007/9.162, allocations: 40.54 MB / 3.623 GB, free: 58.92 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)