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.002079/0.002078, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.683/1.683, allocations: 194.3 MB / 208.4 MB, free: 6.691 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.001699/0.001699, allocations: 116.7 kB / 253.5 MB, free: 9.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.187e-05/5.19e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.91/8.032, allocations: 2.585 GB / 2.926 GB, free: 103 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/8.032, allocations: 77.22 kB / 2.926 GB, free: 103 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.933/9.966, allocations: 0.4953 GB / 3.421 GB, free: 37.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/9.966, allocations: 0 / 3.421 GB, free: 37.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.728e-05/9.966, allocations: 28.45 kB / 3.421 GB, free: 37.73 MB / 426.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.009563/9.975, allocations: 2.197 MB / 3.423 GB, free: 36.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/9.975, allocations: 7.406 kB / 3.423 GB, free: 36.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005657/9.981, allocations: 0.7104 MB / 3.424 GB, free: 36.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/9.984, allocations: 0.9504 MB / 3.425 GB, free: 36.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.028e-05/9.984, allocations: 71.36 kB / 3.425 GB, free: 36.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/9.984, allocations: 100.8 kB / 3.425 GB, free: 36.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003579/9.988, allocations: 1.797 MB / 3.427 GB, free: 36.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/9.988, allocations: 2.812 kB / 3.427 GB, free: 36.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/9.988, allocations: 49.72 kB / 3.427 GB, free: 36.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/9.988, allocations: 31.83 kB / 3.427 GB, free: 36.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/9.991, allocations: 1.595 MB / 3.429 GB, free: 36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008235/10, allocations: 8.261 MB / 3.437 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002742/10, allocations: 1.793 MB / 3.438 GB, free: 29.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005347/10, allocations: 404.8 kB / 3.439 GB, free: 29.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1632/10.17, allocations: 80.71 MB / 3.518 GB, free: 16.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.636e-05/10.17, allocations: 50.25 kB / 3.518 GB, free: 16.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 5.55e-06/10.17, allocations: 0 / 3.518 GB, free: 16.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.005733/10.17, allocations: 1.68 MB / 3.519 GB, free: 16.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002187/10.17, allocations: 190.4 kB / 3.519 GB, free: 16.33 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002035/10.17, allocations: 0.8056 MB / 3.52 GB, free: 16.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/10.17, allocations: 40.67 kB / 3.52 GB, free: 16.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000524/10.18, allocations: 0.6 MB / 3.521 GB, free: 15.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003438/10.18, allocations: 288.7 kB / 3.521 GB, free: 15.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.292e-05/10.18, allocations: 24.06 kB / 3.521 GB, free: 15.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/10.18, allocations: 353 kB / 3.521 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006293/10.18, allocations: 322.1 kB / 3.522 GB, free: 15.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/10.18, allocations: 0.8064 MB / 3.523 GB, free: 14.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008049/10.18, allocations: 461 kB / 3.523 GB, free: 14.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/10.18, allocations: 3 kB / 3.523 GB, free: 14.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002566/10.18, allocations: 1.344 MB / 3.524 GB, free: 14.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/10.18, allocations: 10.06 kB / 3.524 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/10.18, allocations: 15.06 kB / 3.524 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006275/10.19, allocations: 0.8204 MB / 3.525 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/10.19, allocations: 325.6 kB / 3.525 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/10.19, allocations: 1.532 MB / 3.527 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/10.19, allocations: 161.7 kB / 3.527 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00024/10.19, allocations: 70.72 kB / 3.527 GB, free: 13.34 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 () * 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.0004738/10.19, allocations: 196.6 kB / 3.527 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003906/10.19, allocations: 114.3 kB / 3.527 GB, free: 13.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004922/10.2, allocations: 4.519 MB / 3.532 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-05/10.2, allocations: 56.56 kB / 3.532 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/10.2, allocations: 4 kB / 3.532 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/10.2, allocations: 2.812 kB / 3.532 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005713/10.2, allocations: 5 MB / 3.537 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/10.2, allocations: 4 kB / 3.537 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/10.2, allocations: 191.8 kB / 3.537 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006437/10.21, allocations: 1.885 MB / 3.539 GB, free: 8.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001523/10.21, allocations: 26.17 kB / 3.539 GB, free: 8.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/10.21, allocations: 1.899 MB / 3.541 GB, free: 7.168 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/10.21, allocations: 0 / 3.541 GB, free: 7.168 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3451/10.56, allocations: 2.068 MB / 3.543 GB, free: 69.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/10.56, allocations: 328.1 kB / 3.543 GB, free: 68.87 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/10.56, allocations: 17.06 kB / 3.543 GB, free: 68.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007413/10.56, allocations: 61.61 kB / 3.543 GB, free: 68.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/10.56, allocations: 59.02 kB / 3.543 GB, free: 68.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.01e-05/10.56, allocations: 30.72 kB / 3.543 GB, free: 68.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001514/10.56, allocations: 0.6906 MB / 3.544 GB, free: 68.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.01e-07/10.56, allocations: 1.125 kB / 3.544 GB, free: 68.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009293/10.57, allocations: 1.345 MB / 3.545 GB, free: 68.73 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 () * 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.01224/10.58, allocations: 1.74 MB / 3.547 GB, free: 68.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004223/10.59, allocations: 1.341 MB / 3.548 GB, free: 68.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/10.59, allocations: 0 / 3.548 GB, free: 68.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/10.59, allocations: 0.9474 MB / 3.549 GB, free: 68.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/10.59, allocations: 0.5504 MB / 3.55 GB, free: 68.56 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1208/10.71, allocations: 80.77 MB / 3.629 GB, free: 65.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007865/10.72, allocations: 1.353 MB / 3.63 GB, free: 64.53 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001685/10.72, allocations: 0.5801 MB / 3.63 GB, free: 64.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/10.72, allocations: 106.2 kB / 3.631 GB, free: 64.47 MB / 458.7 MB Notification: Performance of SimCode: time 1.843e-06/10.72, allocations: 2.297 kB / 3.631 GB, free: 64.47 MB / 458.7 MB Notification: Performance of Templates: time 0.0749/10.79, allocations: 52.33 MB / 3.682 GB, free: 36.14 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)