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.001312/0.001312, allocations: 170.2 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.457/1.457, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001706/0.001707, allocations: 102.8 kB / 223.2 MB, free: 4.047 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08374/0.0838, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.781/5.865, allocations: 2.475 GB / 2.775 GB, free: 113.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/5.866, allocations: 78.36 kB / 2.775 GB, free: 113.2 MB / 362.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.589/7.455, allocations: 496.3 MB / 3.26 GB, free: 33.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/7.455, allocations: 0 / 3.26 GB, free: 33.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.347e-05/7.455, allocations: 38.31 kB / 3.26 GB, free: 33.73 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.008025/7.463, allocations: 2.086 MB / 3.262 GB, free: 32.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/7.463, allocations: 9.125 kB / 3.262 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/7.468, allocations: 0.6779 MB / 3.263 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/7.47, allocations: 0.9533 MB / 3.264 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/7.47, allocations: 79.05 kB / 3.264 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/7.47, allocations: 97.06 kB / 3.264 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/7.473, allocations: 1.798 MB / 3.266 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/7.474, allocations: 6.844 kB / 3.266 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/7.474, allocations: 50.16 kB / 3.266 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/7.474, allocations: 25.75 kB / 3.266 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002867/7.477, allocations: 1.599 MB / 3.267 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007541/7.484, allocations: 8.261 MB / 3.275 GB, free: 26.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/7.487, allocations: 1.792 MB / 3.277 GB, free: 25.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/7.487, allocations: 402.8 kB / 3.278 GB, free: 25.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4015/7.889, allocations: 80.66 MB / 3.356 GB, free: 39.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.251e-05/7.889, allocations: 41.06 kB / 3.356 GB, free: 39.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 2.996e-06/7.889, allocations: 2.281 kB / 3.356 GB, free: 39.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.004716/7.894, allocations: 1.685 MB / 3.358 GB, free: 39.44 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/7.894, allocations: 191.4 kB / 3.358 GB, free: 39.22 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/7.895, allocations: 0.807 MB / 3.359 GB, free: 39.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-05/7.895, allocations: 43.02 kB / 3.359 GB, free: 39.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003415/7.895, allocations: 0.6047 MB / 3.36 GB, free: 38.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/7.895, allocations: 281 kB / 3.36 GB, free: 38.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/7.895, allocations: 23.59 kB / 3.36 GB, free: 38.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.641e-05/7.896, allocations: 352.3 kB / 3.36 GB, free: 38.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/7.896, allocations: 331.9 kB / 3.361 GB, free: 38.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006137/7.897, allocations: 0.8027 MB / 3.361 GB, free: 37.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005708/7.897, allocations: 452.7 kB / 3.362 GB, free: 37.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/7.897, allocations: 8.297 kB / 3.362 GB, free: 37.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.001829/7.899, allocations: 1.335 MB / 3.363 GB, free: 37.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/7.899, allocations: 16.69 kB / 3.363 GB, free: 37.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/7.899, allocations: 20.56 kB / 3.363 GB, free: 37.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006153/7.905, allocations: 0.815 MB / 3.364 GB, free: 37.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/7.907, allocations: 338.4 kB / 3.364 GB, free: 37.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009261/7.908, allocations: 1.523 MB / 3.366 GB, free: 36.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/7.909, allocations: 156.9 kB / 3.366 GB, free: 36.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.32e-05/7.909, allocations: 70.84 kB / 3.366 GB, free: 36.5 MB / 394.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.0002118/7.909, allocations: 198.9 kB / 3.366 GB, free: 36.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/7.909, allocations: 107.3 kB / 3.366 GB, free: 36.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004406/7.914, allocations: 4.532 MB / 3.371 GB, free: 35.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-05/7.914, allocations: 45.84 kB / 3.371 GB, free: 35.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/7.914, allocations: 0 / 3.371 GB, free: 35.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/7.914, allocations: 3.562 kB / 3.371 GB, free: 35.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/7.919, allocations: 5.011 MB / 3.376 GB, free: 34.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/7.919, allocations: 3.531 kB / 3.376 GB, free: 34.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/7.92, allocations: 199.8 kB / 3.376 GB, free: 34.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006542/7.926, allocations: 1.874 MB / 3.378 GB, free: 34.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/7.927, allocations: 21.28 kB / 3.378 GB, free: 34.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/7.928, allocations: 1.908 MB / 3.379 GB, free: 33.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/7.928, allocations: 0 / 3.379 GB, free: 33.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/7.93, allocations: 2.067 MB / 3.382 GB, free: 33.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005235/7.931, allocations: 329.8 kB / 3.382 GB, free: 33.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/7.931, allocations: 19.94 kB / 3.382 GB, free: 33.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005633/7.932, allocations: 51.36 kB / 3.382 GB, free: 33.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/7.932, allocations: 57.06 kB / 3.382 GB, free: 33.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.411e-05/7.932, allocations: 32.12 kB / 3.382 GB, free: 33.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000853/7.933, allocations: 0.6919 MB / 3.383 GB, free: 32.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/7.933, allocations: 0 / 3.383 GB, free: 32.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005646/7.938, allocations: 1.343 MB / 3.384 GB, free: 32.82 MB / 394.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 (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.007734/7.946, allocations: 1.761 MB / 3.386 GB, free: 32.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003114/7.949, allocations: 1.337 MB / 3.387 GB, free: 32.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/7.949, allocations: 1.875 kB / 3.387 GB, free: 32.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/7.951, allocations: 0.9458 MB / 3.388 GB, free: 32.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/7.954, allocations: 0.5393 MB / 3.388 GB, free: 32.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1047/8.059, allocations: 76.75 MB / 3.463 GB, free: 16.08 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005829/8.059, allocations: 1.354 MB / 3.465 GB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001369/8.061, allocations: 0.5782 MB / 3.465 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/8.061, allocations: 108.6 kB / 3.465 GB, free: 14.49 MB / 394.7 MB Notification: Performance of SimCode: time 1.943e-06/8.061, allocations: 0 / 3.465 GB, free: 14.49 MB / 394.7 MB Notification: Performance of Templates: time 0.3076/8.368, allocations: 52.21 MB / 3.516 GB, free: 47.36 MB / 394.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)