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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 178.9 kB / 8.477 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.001062/0.001062, allocations: 82.27 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.032e-05/1.035e-05, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 47.56 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.063/6.176, allocations: 2.75 GB / 3.104 GB, free: 130.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/6.176, allocations: 79.44 kB / 3.104 GB, free: 130.4 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: time 1.433/7.609, allocations: 0.4883 GB / 3.592 GB, free: 2.629 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.793e-05/7.61, allocations: 35.45 kB / 3.592 GB, free: 2.598 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.01198/7.622, allocations: 2.224 MB / 3.594 GB, free: 348 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.954e-05/7.622, allocations: 8.031 kB / 3.594 GB, free: 340 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2329/7.855, allocations: 0.74 MB / 3.595 GB, free: 71.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/7.857, allocations: 0.9196 MB / 3.596 GB, free: 71.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/7.857, allocations: 34.12 kB / 3.596 GB, free: 71.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/7.857, allocations: 57.08 kB / 3.596 GB, free: 71.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001826/7.859, allocations: 1.078 MB / 3.597 GB, free: 71.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/7.861, allocations: 1.235 MB / 3.598 GB, free: 71.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/7.861, allocations: 9.609 kB / 3.598 GB, free: 71.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-05/7.861, allocations: 3.75 kB / 3.598 GB, free: 71.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/7.861, allocations: 29.03 kB / 3.598 GB, free: 71.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.037/8.898, allocations: 324.5 MB / 3.915 GB, free: 98.44 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008278/8.899, allocations: 0.5485 MB / 3.916 GB, free: 98.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/8.899, allocations: 277.2 kB / 3.916 GB, free: 98.38 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08224/8.981, allocations: 48.04 MB / 3.963 GB, free: 68.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/8.981, allocations: 44.5 kB / 3.963 GB, free: 68.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=49): time 3.186e-06/8.981, allocations: 1.125 kB / 3.963 GB, free: 68.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=49): time 0.00497/8.986, allocations: 1.578 MB / 3.965 GB, free: 68.15 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/8.986, allocations: 192 kB / 3.965 GB, free: 67.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/8.988, allocations: 0.9255 MB / 3.966 GB, free: 67.77 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/8.988, allocations: 25.7 kB / 3.966 GB, free: 67.74 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/8.988, allocations: 0.5446 MB / 3.966 GB, free: 67.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/8.988, allocations: 174.3 kB / 3.966 GB, free: 67.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/8.988, allocations: 0 / 3.966 GB, free: 67.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.285e-05/8.988, allocations: 349.4 kB / 3.967 GB, free: 67.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000504/8.989, allocations: 382.6 kB / 3.967 GB, free: 67.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006823/8.989, allocations: 0.787 MB / 3.968 GB, free: 66.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002788/8.992, allocations: 0.8178 MB / 3.969 GB, free: 66.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/8.992, allocations: 6.969 kB / 3.969 GB, free: 66.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006324/8.999, allocations: 2.414 MB / 3.971 GB, free: 66.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/8.999, allocations: 14.8 kB / 3.971 GB, free: 66.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/8.999, allocations: 16.34 kB / 3.971 GB, free: 66.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/8.999, allocations: 222.7 kB / 3.971 GB, free: 66.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/9, allocations: 311.8 kB / 3.972 GB, free: 66.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/9.002, allocations: 1.931 MB / 3.974 GB, free: 65.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/9.004, allocations: 157.6 kB / 3.974 GB, free: 65.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/9.004, allocations: 68.62 kB / 3.974 GB, free: 65.23 MB / 490.7 MB 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.0001872/9.004, allocations: 144.5 kB / 3.974 GB, free: 65.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/9.005, allocations: 0.5815 MB / 3.974 GB, free: 65.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003368/9.009, allocations: 2.577 MB / 3.977 GB, free: 64.87 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/9.009, allocations: 20.34 kB / 3.977 GB, free: 64.87 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/9.009, allocations: 4 kB / 3.977 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/9.009, allocations: 4.75 kB / 3.977 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004499/9.013, allocations: 4.021 MB / 3.981 GB, free: 63.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/9.013, allocations: 3.969 kB / 3.981 GB, free: 63.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008688/9.014, allocations: 140.5 kB / 3.981 GB, free: 63.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/9.016, allocations: 1.548 MB / 3.983 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/9.016, allocations: 18.06 kB / 3.983 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/9.018, allocations: 2.597 MB / 3.985 GB, free: 62.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/9.018, allocations: 0 / 3.985 GB, free: 62.76 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003416/9.021, allocations: 2.194 MB / 3.987 GB, free: 62.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005253/9.022, allocations: 342.4 kB / 3.988 GB, free: 62.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/9.022, allocations: 3.969 kB / 3.988 GB, free: 62.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005792/9.023, allocations: 29.81 kB / 3.988 GB, free: 62.24 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/9.023, allocations: 29.45 kB / 3.988 GB, free: 62.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/9.023, allocations: 22.61 kB / 3.988 GB, free: 62.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001075/9.024, allocations: 0.8974 MB / 3.989 GB, free: 62.13 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005915/9.03, allocations: 1.343 MB / 3.99 GB, free: 62.08 MB / 490.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: 8 ($cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.006811/9.037, allocations: 1.954 MB / 3.992 GB, free: 61.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002909/9.04, allocations: 1.284 MB / 3.993 GB, free: 61.77 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/9.04, allocations: 0 / 3.993 GB, free: 61.77 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/9.041, allocations: 0.7833 MB / 3.994 GB, free: 61.76 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/9.044, allocations: 421.8 kB / 3.994 GB, free: 61.74 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/9.048, allocations: 1.766 MB / 3.996 GB, free: 61.27 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/9.049, allocations: 1.34 MB / 3.997 GB, free: 60.53 MB / 490.7 MB Notification: Performance of SimCode: time 1.122e-06/9.049, allocations: 0 / 3.997 GB, free: 60.53 MB / 490.7 MB Notification: Performance of Templates: time 0.06084/9.11, allocations: 47.58 MB / 4.044 GB, free: 54.18 MB / 490.7 MB 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)