Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 87.62 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.581e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.582/8.713, allocations: 2.755 GB / 3.133 GB, free: 78.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/8.713, allocations: 77.61 kB / 3.133 GB, free: 78.37 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 2.032/10.75, allocations: 0.4929 GB / 3.626 GB, free: 39.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.784e-06/10.75, allocations: 1.969 kB / 3.626 GB, free: 39.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.991e-05/10.75, allocations: 32.98 kB / 3.626 GB, free: 39.09 MB / 458.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.008265/10.75, allocations: 2.198 MB / 3.629 GB, free: 38.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/10.75, allocations: 10.28 kB / 3.629 GB, free: 38.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004953/10.76, allocations: 0.7063 MB / 3.629 GB, free: 38.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/10.76, allocations: 0.9317 MB / 3.63 GB, free: 37.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/10.76, allocations: 31.94 kB / 3.63 GB, free: 37.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/10.76, allocations: 54.75 kB / 3.63 GB, free: 37.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001544/10.76, allocations: 1.072 MB / 3.631 GB, free: 37.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/10.76, allocations: 1.233 MB / 3.632 GB, free: 37.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/10.76, allocations: 8.375 kB / 3.632 GB, free: 37.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.955e-05/10.76, allocations: 7.266 kB / 3.632 GB, free: 37.34 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/10.76, allocations: 29.19 kB / 3.632 GB, free: 37.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.216/11.98, allocations: 325 MB / 3.95 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/11.98, allocations: 0.5441 MB / 3.95 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/11.98, allocations: 274 kB / 3.951 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08281/12.06, allocations: 48 MB / 3.998 GB, free: 95.39 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/12.06, allocations: 41.16 kB / 3.998 GB, free: 95.36 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=49): time 2.444e-06/12.06, allocations: 0 / 3.998 GB, free: 95.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49): time 0.004885/12.07, allocations: 1.535 MB / 3.999 GB, free: 95.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/12.07, allocations: 186.9 kB / 3.999 GB, free: 95.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/12.07, allocations: 0.8813 MB / 4 GB, free: 94.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/12.07, allocations: 29.58 kB / 4 GB, free: 94.87 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000393/12.07, allocations: 0.6678 MB / 4.001 GB, free: 94.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/12.07, allocations: 181.5 kB / 4.001 GB, free: 94.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/12.07, allocations: 0 / 4.001 GB, free: 94.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.272e-05/12.07, allocations: 349 kB / 4.001 GB, free: 94.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/12.07, allocations: 324.8 kB / 4.002 GB, free: 94.19 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005538/12.07, allocations: 0.7283 MB / 4.002 GB, free: 93.68 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002422/12.07, allocations: 0.7155 MB / 4.003 GB, free: 93.65 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/12.07, allocations: 3.75 kB / 4.003 GB, free: 93.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003673/12.08, allocations: 1.504 MB / 4.004 GB, free: 93.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/12.08, allocations: 10.16 kB / 4.004 GB, free: 93.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/12.08, allocations: 10.38 kB / 4.004 GB, free: 93.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/12.08, allocations: 214.7 kB / 4.005 GB, free: 93.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/12.08, allocations: 295 kB / 4.005 GB, free: 93.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/12.08, allocations: 1.683 MB / 4.007 GB, free: 92.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/12.08, allocations: 154 kB / 4.007 GB, free: 92.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/12.08, allocations: 66.42 kB / 4.007 GB, free: 92.35 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (124): * Single equations (assignments): 122 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002493/12.08, allocations: 157.2 kB / 4.007 GB, free: 92.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003091/12.08, allocations: 108.1 kB / 4.007 GB, free: 92.19 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004005/12.09, allocations: 3.018 MB / 4.01 GB, free: 91.99 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/12.09, allocations: 12.95 kB / 4.01 GB, free: 91.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/12.09, allocations: 3.953 kB / 4.01 GB, free: 91.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/12.09, allocations: 3.094 kB / 4.01 GB, free: 91.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/12.09, allocations: 1.395 MB / 4.011 GB, free: 91.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/12.09, allocations: 0 / 4.011 GB, free: 91.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007655/12.09, allocations: 134.9 kB / 4.012 GB, free: 91.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/12.09, allocations: 2.155 MB / 4.014 GB, free: 91.77 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/12.09, allocations: 14.42 kB / 4.014 GB, free: 91.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/12.09, allocations: 3.027 MB / 4.017 GB, free: 90.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/12.09, allocations: 0 / 4.017 GB, free: 90.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/12.1, allocations: 2.186 MB / 4.019 GB, free: 90.22 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00051/12.1, allocations: 302.6 kB / 4.019 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/12.1, allocations: 0 / 4.019 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005555/12.1, allocations: 18.39 kB / 4.019 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/12.1, allocations: 34.53 kB / 4.019 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/12.1, allocations: 28.33 kB / 4.019 GB, free: 90.05 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001119/12.1, allocations: 0.8521 MB / 4.02 GB, free: 89.94 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.71e-07/12.1, allocations: 0 / 4.02 GB, free: 89.94 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006346/12.11, allocations: 1.304 MB / 4.021 GB, free: 89.86 MB / 0.5417 GB 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 (37): * Single equations (assignments): 35 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.009081/12.12, allocations: 1.88 MB / 4.023 GB, free: 89.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00281/12.12, allocations: 0.9736 MB / 4.024 GB, free: 89.56 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/12.12, allocations: 0 / 4.024 GB, free: 89.56 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001448/12.12, allocations: 0.5042 MB / 4.025 GB, free: 89.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/12.12, allocations: 434.9 kB / 4.025 GB, free: 89.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/12.13, allocations: 1.611 MB / 4.026 GB, free: 89.04 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/12.13, allocations: 1.202 MB / 4.028 GB, free: 88.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001597/12.13, allocations: 1.018 MB / 4.029 GB, free: 88.27 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/12.13, allocations: 104 kB / 4.029 GB, free: 88.25 MB / 0.5417 GB Notification: Performance of SimCode: time 1.112e-06/12.13, allocations: 3.75 kB / 4.029 GB, free: 88.25 MB / 0.5417 GB Notification: Performance of Templates: time 0.05623/12.18, allocations: 41.16 MB / 4.069 GB, free: 85.6 MB / 0.5417 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)