Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.003135/0.003135, allocations: 172.9 kB / 7.446 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.352/1.352, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001647/0.001647, allocations: 116.5 kB / 217.7 MB, free: 8.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1745/0.1745, allocations: 37.97 MB / 294.8 MB, free: 9.641 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.514e-06, allocations: 1.531 kB / 349.5 MB, free: 37.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09759, allocations: 48.72 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.996/6.094, allocations: 2.482 GB / 2.871 GB, free: 27.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/6.094, allocations: 79.95 kB / 2.871 GB, free: 27.42 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.821/7.915, allocations: 484.8 MB / 3.345 GB, free: 20.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000106/7.915, allocations: 29.12 kB / 3.345 GB, free: 20.8 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.01072/7.926, allocations: 2.099 MB / 3.347 GB, free: 19.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/7.926, allocations: 6.625 kB / 3.347 GB, free: 19.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/7.931, allocations: 0.6129 MB / 3.347 GB, free: 18.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/7.934, allocations: 0.9397 MB / 3.348 GB, free: 17.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/7.935, allocations: 35.98 kB / 3.348 GB, free: 17.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/7.935, allocations: 56 kB / 3.348 GB, free: 17.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001843/7.937, allocations: 0.9685 MB / 3.349 GB, free: 16.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/7.938, allocations: 1.171 MB / 3.351 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/7.938, allocations: 7.875 kB / 3.351 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/7.938, allocations: 15.92 kB / 3.351 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.545e-05/7.938, allocations: 27.91 kB / 3.351 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.245/9.184, allocations: 264.8 MB / 3.609 GB, free: 50.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009447/9.185, allocations: 494.6 kB / 3.61 GB, free: 50 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/9.185, allocations: 242.4 kB / 3.61 GB, free: 49.99 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1117/9.297, allocations: 47.39 MB / 3.656 GB, free: 37.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.205e-05/9.297, allocations: 36.78 kB / 3.656 GB, free: 37.29 MB / 474.7 MB Notification: Performance of pre-optimization done (n=41): time 4.027e-06/9.297, allocations: 0 / 3.656 GB, free: 37.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=41): time 0.006044/9.303, allocations: 1.488 MB / 3.658 GB, free: 37.22 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/9.303, allocations: 192 kB / 3.658 GB, free: 37 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002769/9.306, allocations: 0.8873 MB / 3.659 GB, free: 36.84 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/9.306, allocations: 29.58 kB / 3.659 GB, free: 36.81 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006444/9.307, allocations: 0.5674 MB / 3.659 GB, free: 36.51 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/9.307, allocations: 155.1 kB / 3.659 GB, free: 36.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/9.307, allocations: 0 / 3.659 GB, free: 36.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/9.308, allocations: 345 kB / 3.66 GB, free: 36.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/9.308, allocations: 335.6 kB / 3.66 GB, free: 36.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009319/9.309, allocations: 0.8013 MB / 3.661 GB, free: 35.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/9.312, allocations: 0.7846 MB / 3.662 GB, free: 35.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.332e-05/9.312, allocations: 7.938 kB / 3.662 GB, free: 35.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.007527/9.32, allocations: 2.338 MB / 3.664 GB, free: 35.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/9.32, allocations: 7.156 kB / 3.664 GB, free: 35.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/9.32, allocations: 13.06 kB / 3.664 GB, free: 35.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005723/9.321, allocations: 204.9 kB / 3.664 GB, free: 35.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/9.322, allocations: 325.8 kB / 3.665 GB, free: 35.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/9.325, allocations: 1.905 MB / 3.666 GB, free: 34.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/9.327, allocations: 158.4 kB / 3.667 GB, free: 34.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/9.327, allocations: 70.72 kB / 3.667 GB, free: 34.2 MB / 474.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 (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.0003083/9.327, allocations: 167.6 kB / 3.667 GB, free: 34.09 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001896/9.329, allocations: 0.5806 MB / 3.667 GB, free: 34.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004489/9.333, allocations: 2.488 MB / 3.67 GB, free: 33.47 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/9.334, allocations: 18.47 kB / 3.67 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/9.334, allocations: 0 / 3.67 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/9.334, allocations: 0 / 3.67 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006971/9.341, allocations: 3.791 MB / 3.673 GB, free: 31.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/9.341, allocations: 0 / 3.673 GB, free: 31.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/9.341, allocations: 124.2 kB / 3.674 GB, free: 31.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/9.343, allocations: 1.537 MB / 3.675 GB, free: 29.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-05/9.343, allocations: 9.141 kB / 3.675 GB, free: 29.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003124/9.346, allocations: 2.565 MB / 3.678 GB, free: 28.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/9.346, allocations: 7.219 kB / 3.678 GB, free: 28.09 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003991/9.35, allocations: 2.1 MB / 3.68 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008992/9.351, allocations: 326.9 kB / 3.68 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005141/9.352, allocations: 0 / 3.68 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009639/9.353, allocations: 22 kB / 3.68 GB, free: 26.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/9.353, allocations: 34.25 kB / 3.68 GB, free: 26.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/9.353, allocations: 18.06 kB / 3.68 GB, free: 26.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001484/9.355, allocations: 0.8102 MB / 3.681 GB, free: 26.06 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007929/9.362, allocations: 1.293 MB / 3.682 GB, free: 25.02 MB / 474.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 (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.01185/9.374, allocations: 1.967 MB / 3.684 GB, free: 23.64 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003619/9.378, allocations: 1.187 MB / 3.685 GB, free: 22.97 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/9.378, allocations: 0 / 3.685 GB, free: 22.97 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/9.38, allocations: 0.733 MB / 3.686 GB, free: 22.61 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003638/9.384, allocations: 420.7 kB / 3.686 GB, free: 22.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04932/9.433, allocations: 21.91 MB / 3.708 GB, free: 9.969 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/9.434, allocations: 1.31 MB / 3.709 GB, free: 8.852 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/9.434, allocations: 0 / 3.709 GB, free: 8.852 MB / 474.7 MB Notification: Performance of Templates: time 0.3512/9.785, allocations: 45.61 MB / 3.754 GB, free: 105.9 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)