Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001665/0.001665, allocations: 177.1 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.853/1.853, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009224/0.0009224, allocations: 86.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.022e-05, allocations: 0 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1262, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.407/7.534, allocations: 2.75 GB / 3.105 GB, free: 107.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/7.534, allocations: 79.06 kB / 3.105 GB, free: 107.7 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 1.931/9.465, allocations: 499.1 MB / 3.592 GB, free: 36.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.593e-06/9.465, allocations: 2.25 kB / 3.592 GB, free: 36.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001283/9.465, allocations: 29.59 kB / 3.592 GB, free: 36.46 MB / 442.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.01139/9.476, allocations: 2.192 MB / 3.594 GB, free: 35.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/9.476, allocations: 9.375 kB / 3.594 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005867/9.482, allocations: 0.7075 MB / 3.595 GB, free: 35.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/9.485, allocations: 0.9227 MB / 3.596 GB, free: 35.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.894e-05/9.485, allocations: 33.16 kB / 3.596 GB, free: 35.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002925/9.485, allocations: 59.28 kB / 3.596 GB, free: 35.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002221/9.488, allocations: 1.069 MB / 3.597 GB, free: 35.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/9.49, allocations: 1.241 MB / 3.598 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/9.49, allocations: 3.75 kB / 3.598 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/9.49, allocations: 6.875 kB / 3.598 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/9.49, allocations: 28.62 kB / 3.598 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8785/10.37, allocations: 324.9 MB / 3.916 GB, free: 16.31 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008415/10.37, allocations: 0.5462 MB / 3.916 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/10.37, allocations: 278.8 kB / 3.916 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3742/10.74, allocations: 47.99 MB / 3.963 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/10.74, allocations: 45.69 kB / 3.963 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/10.74, allocations: 0 / 3.963 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.00472/10.75, allocations: 1.522 MB / 3.965 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/10.75, allocations: 188.9 kB / 3.965 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/10.75, allocations: 0.8833 MB / 3.966 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.151e-05/10.75, allocations: 25.7 kB / 3.966 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/10.75, allocations: 0.679 MB / 3.967 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/10.75, allocations: 171.5 kB / 3.967 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/10.75, allocations: 2.734 kB / 3.967 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.747e-05/10.75, allocations: 349.2 kB / 3.967 GB, free: 109 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/10.75, allocations: 318.2 kB / 3.967 GB, free: 109 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005782/10.75, allocations: 0.7302 MB / 3.968 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/10.75, allocations: 0.7162 MB / 3.969 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/10.75, allocations: 6.375 kB / 3.969 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003551/10.76, allocations: 1.503 MB / 3.97 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/10.76, allocations: 17.45 kB / 3.97 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/10.76, allocations: 12.88 kB / 3.97 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004566/10.76, allocations: 207.2 kB / 3.97 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/10.76, allocations: 297.3 kB / 3.971 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/10.76, allocations: 1.68 MB / 3.972 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/10.76, allocations: 152.4 kB / 3.973 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.132e-05/10.76, allocations: 64.02 kB / 3.973 GB, free: 107.2 MB / 0.5261 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.0002014/10.76, allocations: 158.2 kB / 3.973 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/10.76, allocations: 107.1 kB / 3.973 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/10.77, allocations: 3.016 MB / 3.976 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/10.77, allocations: 19.41 kB / 3.976 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/10.77, allocations: 0 / 3.976 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/10.77, allocations: 10.22 kB / 3.976 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/10.77, allocations: 1.383 MB / 3.977 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/10.77, allocations: 0 / 3.977 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008282/10.77, allocations: 134.2 kB / 3.977 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/10.77, allocations: 2.153 MB / 3.979 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/10.77, allocations: 10.31 kB / 3.979 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/10.77, allocations: 3.031 MB / 3.982 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/10.77, allocations: 0 / 3.982 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00236/10.78, allocations: 2.187 MB / 3.985 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/10.78, allocations: 305.2 kB / 3.985 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/10.78, allocations: 96 / 3.985 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/10.78, allocations: 30.17 kB / 3.985 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/10.78, allocations: 30.58 kB / 3.985 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/10.78, allocations: 34.36 kB / 3.985 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008721/10.78, allocations: 0.8494 MB / 3.986 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/10.78, allocations: 4 kB / 3.986 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005021/10.78, allocations: 1.304 MB / 3.987 GB, free: 104.7 MB / 0.5261 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.006022/10.79, allocations: 1.876 MB / 3.989 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002347/10.79, allocations: 0.9731 MB / 3.99 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/10.79, allocations: 0 / 3.99 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001311/10.79, allocations: 0.5046 MB / 3.99 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/10.79, allocations: 436.1 kB / 3.991 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/10.8, allocations: 1.595 MB / 3.992 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/10.8, allocations: 1.208 MB / 3.993 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001362/10.8, allocations: 1.018 MB / 3.994 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/10.8, allocations: 93.94 kB / 3.995 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/10.8, allocations: 1.125 kB / 3.995 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.05364/10.85, allocations: 41.15 MB / 4.035 GB, free: 100.2 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)