Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009626/0.0009626, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.149/1.149, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001638/0.001638, allocations: 118.7 kB / 256.9 MB, free: 4.379 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002886, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07204/0.07234, allocations: 44.5 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.787/3.859, allocations: 2.585 GB / 2.931 GB, free: 38.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/3.859, allocations: 79.95 kB / 2.931 GB, free: 38.43 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.478/5.338, allocations: 0.497 GB / 3.428 GB, free: 8.504 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/5.338, allocations: 1.438 kB / 3.428 GB, free: 8.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001106/5.338, allocations: 35.94 kB / 3.429 GB, free: 8.469 MB / 410.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.009121/5.347, allocations: 2.323 MB / 3.431 GB, free: 6.121 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/5.347, allocations: 12.03 kB / 3.431 GB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005011/5.352, allocations: 0.7078 MB / 3.431 GB, free: 5.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/5.354, allocations: 0.963 MB / 3.432 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.299e-05/5.354, allocations: 74.02 kB / 3.432 GB, free: 4.348 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/5.354, allocations: 99.95 kB / 3.433 GB, free: 4.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003345/5.358, allocations: 1.709 MB / 3.434 GB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/5.358, allocations: 9.656 kB / 3.434 GB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/5.358, allocations: 44 kB / 3.434 GB, free: 2.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/5.358, allocations: 28 kB / 3.434 GB, free: 2.312 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/5.361, allocations: 1.508 MB / 3.436 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/5.371, allocations: 8.257 MB / 3.444 GB, free: 8.035 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/5.374, allocations: 1.703 MB / 3.446 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.362/5.736, allocations: 80.25 MB / 3.524 GB, free: 28.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.943e-05/5.736, allocations: 49.38 kB / 3.524 GB, free: 28.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 2.625e-06/5.736, allocations: 0 / 3.524 GB, free: 28.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.005128/5.741, allocations: 2.024 MB / 3.526 GB, free: 28.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/5.742, allocations: 199.5 kB / 3.526 GB, free: 28.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000946/5.743, allocations: 0.8121 MB / 3.527 GB, free: 28.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/5.743, allocations: 36.42 kB / 3.527 GB, free: 28.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003707/5.743, allocations: 0.6056 MB / 3.528 GB, free: 27.87 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/5.743, allocations: 278.3 kB / 3.528 GB, free: 27.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.714e-05/5.743, allocations: 23.48 kB / 3.528 GB, free: 27.74 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/5.743, allocations: 351.9 kB / 3.528 GB, free: 27.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/5.744, allocations: 341 kB / 3.528 GB, free: 27.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00066/5.745, allocations: 0.8152 MB / 3.529 GB, free: 26.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000592/5.745, allocations: 460.9 kB / 3.53 GB, free: 26.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/5.745, allocations: 10.78 kB / 3.53 GB, free: 26.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.001834/5.747, allocations: 1.366 MB / 3.531 GB, free: 26.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/5.747, allocations: 14.94 kB / 3.531 GB, free: 26.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/5.747, allocations: 16.69 kB / 3.531 GB, free: 26.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006044/5.753, allocations: 0.8199 MB / 3.532 GB, free: 26.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/5.755, allocations: 331.8 kB / 3.532 GB, free: 26.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/5.756, allocations: 1.545 MB / 3.534 GB, free: 25.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/5.757, allocations: 155.8 kB / 3.534 GB, free: 25.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.152e-05/5.757, allocations: 72.38 kB / 3.534 GB, free: 25.48 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.0006159/5.758, allocations: 298.2 kB / 3.534 GB, free: 25.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/5.758, allocations: 114.5 kB / 3.534 GB, free: 25.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/5.762, allocations: 4.553 MB / 3.539 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/5.762, allocations: 46.42 kB / 3.539 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/5.762, allocations: 0 / 3.539 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/5.762, allocations: 10.36 kB / 3.539 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/5.767, allocations: 5.024 MB / 3.544 GB, free: 23.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/5.767, allocations: 0 / 3.544 GB, free: 23.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/5.768, allocations: 203.6 kB / 3.544 GB, free: 23.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006472/5.774, allocations: 1.879 MB / 3.546 GB, free: 23.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/5.775, allocations: 21.67 kB / 3.546 GB, free: 23.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/5.776, allocations: 1.907 MB / 3.548 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/5.776, allocations: 2.625 kB / 3.548 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/5.778, allocations: 2.086 MB / 3.55 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004696/5.779, allocations: 322.6 kB / 3.55 GB, free: 21.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/5.779, allocations: 20.38 kB / 3.55 GB, free: 21.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/5.779, allocations: 61.55 kB / 3.55 GB, free: 21.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.317e-05/5.779, allocations: 53.34 kB / 3.55 GB, free: 21.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/5.779, allocations: 35.98 kB / 3.55 GB, free: 21.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008453/5.78, allocations: 0.7004 MB / 3.551 GB, free: 21.85 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/5.78, allocations: 0 / 3.551 GB, free: 21.85 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005415/5.786, allocations: 1.346 MB / 3.552 GB, free: 21.77 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.008075/5.794, allocations: 1.74 MB / 3.554 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003231/5.797, allocations: 1.372 MB / 3.555 GB, free: 21.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/5.797, allocations: 1.75 kB / 3.555 GB, free: 21.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/5.799, allocations: 0.949 MB / 3.556 GB, free: 21.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/5.802, allocations: 0.5384 MB / 3.557 GB, free: 21.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3082/6.11, allocations: 82.92 MB / 3.638 GB, free: 68.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006629/6.111, allocations: 1.352 MB / 3.639 GB, free: 67.57 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00143/6.112, allocations: 0.5803 MB / 3.64 GB, free: 67.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002681/6.112, allocations: 107 kB / 3.64 GB, free: 67.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.232e-06/6.112, allocations: 3.312 kB / 3.64 GB, free: 67.56 MB / 458.7 MB Notification: Performance of Templates: time 0.06146/6.174, allocations: 50.16 MB / 3.689 GB, free: 65.16 MB / 458.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)