Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") [: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.2+maint.om/package.mo): time 0.003879/0.003879, allocations: 185.5 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.321/1.321, allocations: 194.2 MB / 202.1 MB, free: 8.656 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.001964/0.001964, allocations: 122.7 kB / 247.1 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1978/0.1978, allocations: 39.94 MB / 331.9 MB, free: 4.887 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.496e-06/8.516e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 54.86 MB / 447.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.686/4.799, allocations: 2.593 GB / 3.03 GB, free: 148.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/4.799, allocations: 80.97 kB / 3.03 GB, free: 148.2 MB / 490.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: time 1.483/6.282, allocations: 495.6 MB / 3.514 GB, free: 41.58 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00017/6.283, allocations: 30.08 kB / 3.514 GB, free: 41.58 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.01274/6.295, allocations: 2.212 MB / 3.517 GB, free: 40.12 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/6.295, allocations: 10.75 kB / 3.517 GB, free: 40.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005269/6.301, allocations: 0.6465 MB / 3.517 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003177/6.304, allocations: 0.9442 MB / 3.518 GB, free: 39.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.711e-05/6.304, allocations: 32.53 kB / 3.518 GB, free: 39.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003039/6.304, allocations: 52.06 kB / 3.518 GB, free: 39.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002368/6.307, allocations: 0.9784 MB / 3.519 GB, free: 38.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/6.309, allocations: 1.18 MB / 3.52 GB, free: 37.85 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/6.309, allocations: 3.938 kB / 3.52 GB, free: 37.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/6.309, allocations: 13.25 kB / 3.52 GB, free: 37.84 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/6.309, allocations: 30.75 kB / 3.52 GB, free: 37.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.106/7.415, allocations: 265.1 MB / 3.779 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008752/7.416, allocations: 492.4 kB / 3.78 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/7.417, allocations: 244.8 kB / 3.78 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09775/7.515, allocations: 47.38 MB / 3.826 GB, free: 76.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.665e-05/7.515, allocations: 40.22 kB / 3.826 GB, free: 76.47 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=41): time 4.047e-06/7.515, allocations: 1.969 kB / 3.826 GB, free: 76.47 MB / 0.5105 GB Notification: Performance of matching and sorting (n=41): time 0.005367/7.52, allocations: 1.483 MB / 3.828 GB, free: 76.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/7.52, allocations: 183.6 kB / 3.828 GB, free: 76.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/7.522, allocations: 0.8955 MB / 3.829 GB, free: 76.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.818e-05/7.522, allocations: 29.7 kB / 3.829 GB, free: 76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/7.522, allocations: 0.5622 MB / 3.829 GB, free: 75.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/7.522, allocations: 152.6 kB / 3.829 GB, free: 75.63 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/7.523, allocations: 0 / 3.829 GB, free: 75.63 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001173/7.523, allocations: 354 kB / 3.83 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000526/7.523, allocations: 331.8 kB / 3.83 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007555/7.524, allocations: 0.8069 MB / 3.831 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/7.527, allocations: 0.7853 MB / 3.832 GB, free: 74.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/7.527, allocations: 6.766 kB / 3.832 GB, free: 74.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.006665/7.533, allocations: 2.336 MB / 3.834 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/7.534, allocations: 2.781 kB / 3.834 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.809e-05/7.534, allocations: 16.62 kB / 3.834 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/7.534, allocations: 210.1 kB / 3.834 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/7.535, allocations: 323.2 kB / 3.834 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/7.538, allocations: 1.905 MB / 3.836 GB, free: 73.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/7.539, allocations: 152.4 kB / 3.836 GB, free: 73.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/7.539, allocations: 77.08 kB / 3.837 GB, free: 73.39 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 20 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.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 (130): * Single equations (assignments): 128 * 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.0002235/7.539, allocations: 156.7 kB / 3.837 GB, free: 73.28 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001845/7.541, allocations: 0.5827 MB / 3.837 GB, free: 73.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/7.545, allocations: 2.481 MB / 3.84 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/7.545, allocations: 16 kB / 3.84 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/7.545, allocations: 3.797 kB / 3.84 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/7.545, allocations: 3 kB / 3.84 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005156/7.551, allocations: 3.8 MB / 3.843 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/7.551, allocations: 0 / 3.843 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007963/7.551, allocations: 126.6 kB / 3.844 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/7.553, allocations: 1.526 MB / 3.845 GB, free: 72.06 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/7.553, allocations: 14.95 kB / 3.845 GB, free: 72.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/7.555, allocations: 2.564 MB / 3.848 GB, free: 70.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/7.555, allocations: 0 / 3.848 GB, free: 70.92 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003519/7.559, allocations: 2.108 MB / 3.85 GB, free: 70.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/7.56, allocations: 320.8 kB / 3.85 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003787/7.56, allocations: 6.859 kB / 3.85 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006465/7.561, allocations: 23.97 kB / 3.85 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/7.561, allocations: 26.89 kB / 3.85 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/7.561, allocations: 24.12 kB / 3.85 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.00118/7.562, allocations: 0.8084 MB / 3.851 GB, free: 70.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007121/7.569, allocations: 1.304 MB / 3.852 GB, free: 70.25 MB / 0.5105 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 ($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 (35): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01116/7.58, allocations: 1.963 MB / 3.854 GB, free: 69.97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003028/7.583, allocations: 1.184 MB / 3.855 GB, free: 69.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/7.583, allocations: 5.656 kB / 3.855 GB, free: 69.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00165/7.585, allocations: 0.7423 MB / 3.856 GB, free: 69.94 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/7.588, allocations: 414.7 kB / 3.856 GB, free: 69.92 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0496/7.637, allocations: 22.7 MB / 3.878 GB, free: 68.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/7.638, allocations: 1.315 MB / 3.88 GB, free: 67.89 MB / 0.5105 GB Notification: Performance of SimCode: time 9.01e-07/7.638, allocations: 0 / 3.88 GB, free: 67.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.06626/7.705, allocations: 45.71 MB / 3.924 GB, free: 52.47 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)