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.01119/0.01119, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.495/1.495, allocations: 170.8 MB / 186.6 MB, free: 1.035 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.001992/0.001992, allocations: 110 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.00035, allocations: 8 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2816, allocations: 38.76 MB / 312.9 MB, free: 38.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.55/6.831, allocations: 2.475 GB / 2.781 GB, free: 79.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/6.832, allocations: 84.42 kB / 2.781 GB, free: 79.76 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.85/8.681, allocations: 498.1 MB / 3.267 GB, free: 27.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/8.681, allocations: 4.703 kB / 3.267 GB, free: 27.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001614/8.681, allocations: 26.75 kB / 3.267 GB, free: 27.83 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.01055/8.692, allocations: 2.227 MB / 3.269 GB, free: 26.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/8.692, allocations: 10.53 kB / 3.269 GB, free: 26.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005515/8.698, allocations: 0.6863 MB / 3.27 GB, free: 26.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002887/8.701, allocations: 0.9524 MB / 3.271 GB, free: 25.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/8.701, allocations: 76.92 kB / 3.271 GB, free: 25.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000364/8.701, allocations: 97.81 kB / 3.271 GB, free: 25.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004451/8.706, allocations: 1.702 MB / 3.273 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.5e-05/8.706, allocations: 6.969 kB / 3.273 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000218/8.706, allocations: 48.16 kB / 3.273 GB, free: 24.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.115e-05/8.706, allocations: 23.56 kB / 3.273 GB, free: 24.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003464/8.709, allocations: 1.513 MB / 3.274 GB, free: 24.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/8.72, allocations: 8.266 MB / 3.282 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/8.723, allocations: 1.69 MB / 3.284 GB, free: 16.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.477/9.2, allocations: 80.22 MB / 3.362 GB, free: 24.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/9.2, allocations: 39.41 kB / 3.362 GB, free: 24.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 5.71e-06/9.2, allocations: 0 / 3.362 GB, free: 24.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.007008/9.207, allocations: 2.028 MB / 3.364 GB, free: 24.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/9.207, allocations: 193.7 kB / 3.365 GB, free: 23.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/9.209, allocations: 0.813 MB / 3.365 GB, free: 23.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/9.209, allocations: 40.92 kB / 3.365 GB, free: 23.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004706/9.21, allocations: 0.6062 MB / 3.366 GB, free: 23.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/9.21, allocations: 278.7 kB / 3.366 GB, free: 23.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/9.21, allocations: 23.81 kB / 3.366 GB, free: 23.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/9.21, allocations: 353.5 kB / 3.367 GB, free: 22.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005697/9.211, allocations: 345.8 kB / 3.367 GB, free: 22.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/9.211, allocations: 0.8157 MB / 3.368 GB, free: 22.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006426/9.212, allocations: 455.4 kB / 3.368 GB, free: 22.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/9.212, allocations: 5.188 kB / 3.368 GB, free: 22.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00215/9.214, allocations: 1.364 MB / 3.369 GB, free: 22.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/9.214, allocations: 14.72 kB / 3.369 GB, free: 22.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/9.214, allocations: 14.91 kB / 3.369 GB, free: 22.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006348/9.221, allocations: 0.8248 MB / 3.37 GB, free: 22.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/9.223, allocations: 335.6 kB / 3.371 GB, free: 22.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/9.224, allocations: 1.527 MB / 3.372 GB, free: 21.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/9.225, allocations: 157.8 kB / 3.372 GB, free: 21.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/9.226, allocations: 69.92 kB / 3.372 GB, free: 21.05 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 () * 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.0006511/9.226, allocations: 299.6 kB / 3.373 GB, free: 20.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/9.226, allocations: 111.1 kB / 3.373 GB, free: 20.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004677/9.231, allocations: 4.564 MB / 3.377 GB, free: 20.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.87e-05/9.231, allocations: 47.67 kB / 3.377 GB, free: 20.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/9.231, allocations: 0 / 3.377 GB, free: 20.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/9.231, allocations: 6.422 kB / 3.377 GB, free: 20.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005488/9.237, allocations: 5.025 MB / 3.382 GB, free: 19.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/9.237, allocations: 0 / 3.382 GB, free: 19.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/9.238, allocations: 195.8 kB / 3.382 GB, free: 19.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006721/9.244, allocations: 1.888 MB / 3.384 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/9.245, allocations: 20.19 kB / 3.384 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/9.246, allocations: 1.905 MB / 3.386 GB, free: 18.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/9.246, allocations: 0 / 3.386 GB, free: 18.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/9.249, allocations: 2.082 MB / 3.388 GB, free: 17.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000552/9.249, allocations: 332.1 kB / 3.388 GB, free: 17.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/9.249, allocations: 22.09 kB / 3.388 GB, free: 17.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005656/9.25, allocations: 63.45 kB / 3.388 GB, free: 17.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/9.25, allocations: 50.98 kB / 3.389 GB, free: 17.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/9.25, allocations: 32.44 kB / 3.389 GB, free: 17.49 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008985/9.251, allocations: 0.7018 MB / 3.389 GB, free: 17.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.5e-07/9.251, allocations: 0 / 3.389 GB, free: 17.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00625/9.257, allocations: 1.336 MB / 3.391 GB, free: 17.3 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 () * 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.008498/9.266, allocations: 1.737 MB / 3.392 GB, free: 17.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003269/9.269, allocations: 1.362 MB / 3.394 GB, free: 16.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/9.269, allocations: 3.656 kB / 3.394 GB, free: 16.99 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/9.271, allocations: 0.9541 MB / 3.395 GB, free: 16.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/9.274, allocations: 0.5482 MB / 3.395 GB, free: 16.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1192/9.393, allocations: 78.29 MB / 3.471 GB, free: 8.773 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/9.394, allocations: 1.352 MB / 3.473 GB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001661/9.396, allocations: 0.5687 MB / 3.473 GB, free: 7.285 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/9.396, allocations: 112 kB / 3.473 GB, free: 7.195 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/9.396, allocations: 0 / 3.473 GB, free: 7.195 MB / 410.7 MB Notification: Performance of Templates: time 0.339/9.735, allocations: 50.25 MB / 3.523 GB, free: 58.8 MB / 410.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)