Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 170.9 kB / 8.515 MB, free: 1.855 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.201/1.201, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009767/0.0009767, allocations: 82.5 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.165/0.165, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1951/0.3602, allocations: 68.04 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.4593, allocations: 61.92 MB / 0.4942 GB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.905/4.365, allocations: 2.765 GB / 3.259 GB, free: 8.188 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/4.365, allocations: 87.78 kB / 3.259 GB, free: 8.105 MB / 0.5105 GB [/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: 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 1.532/5.897, allocations: 0.495 GB / 3.754 GB, free: 63.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/5.897, allocations: 12.84 kB / 3.754 GB, free: 63.46 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004732/5.901, allocations: 0.6504 MB / 3.755 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002283/5.904, allocations: 0.9214 MB / 3.756 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.028e-05/5.904, allocations: 32.81 kB / 3.756 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/5.904, allocations: 54.92 kB / 3.756 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001878/5.906, allocations: 0.9761 MB / 3.757 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/5.908, allocations: 1.18 MB / 3.758 GB, free: 62.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/5.908, allocations: 6.625 kB / 3.758 GB, free: 62.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/5.908, allocations: 10.2 kB / 3.758 GB, free: 62.69 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/5.908, allocations: 23.44 kB / 3.758 GB, free: 62.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9733/6.881, allocations: 324.4 MB / 4.075 GB, free: 133.5 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/6.882, allocations: 0.4963 MB / 4.075 GB, free: 133.5 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/6.882, allocations: 242.8 kB / 4.075 GB, free: 133.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08444/6.967, allocations: 48.04 MB / 4.122 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/6.967, allocations: 42.48 kB / 4.122 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=41): time 2.786e-06/6.967, allocations: 0 / 4.122 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=41): time 0.004923/6.972, allocations: 1.505 MB / 4.124 GB, free: 103.4 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/6.972, allocations: 194.2 kB / 4.124 GB, free: 103.2 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/6.973, allocations: 0.9225 MB / 4.125 GB, free: 103.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/6.973, allocations: 29.55 kB / 4.125 GB, free: 103 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/6.973, allocations: 0.5372 MB / 4.126 GB, free: 102.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/6.974, allocations: 151.9 kB / 4.126 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.985e-05/6.974, allocations: 0 / 4.126 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 6.567e-05/6.974, allocations: 352 kB / 4.126 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/6.974, allocations: 351.5 kB / 4.126 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006461/6.975, allocations: 0.7514 MB / 4.127 GB, free: 101.9 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/6.978, allocations: 0.7922 MB / 4.128 GB, free: 101.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/6.978, allocations: 5.031 kB / 4.128 GB, free: 101.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.006402/6.984, allocations: 2.33 MB / 4.13 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/6.984, allocations: 4.406 kB / 4.13 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/6.984, allocations: 14.59 kB / 4.13 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005304/6.985, allocations: 229.8 kB / 4.13 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/6.986, allocations: 294 kB / 4.131 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/6.988, allocations: 1.926 MB / 4.133 GB, free: 100.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/6.989, allocations: 146.7 kB / 4.133 GB, free: 100.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/6.989, allocations: 65.91 kB / 4.133 GB, free: 100.6 MB / 0.5573 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 (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 (116): * Single equations (assignments): 114 * 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.0001886/6.989, allocations: 150.8 kB / 4.133 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/6.991, allocations: 0.5807 MB / 4.133 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003401/6.994, allocations: 2.483 MB / 4.136 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/6.994, allocations: 20.28 kB / 4.136 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/6.994, allocations: 0 / 4.136 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/6.994, allocations: 7.844 kB / 4.136 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/6.999, allocations: 3.89 MB / 4.14 GB, free: 99.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/6.999, allocations: 0 / 4.14 GB, free: 99.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/7, allocations: 124.5 kB / 4.14 GB, free: 99.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/7.001, allocations: 1.528 MB / 4.141 GB, free: 99.25 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.371e-05/7.001, allocations: 17.23 kB / 4.141 GB, free: 99.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/7.004, allocations: 2.592 MB / 4.144 GB, free: 98.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/7.004, allocations: 0 / 4.144 GB, free: 98.11 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003264/7.007, allocations: 2.114 MB / 4.146 GB, free: 97.76 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003347/7.01, allocations: 2.542 MB / 4.148 GB, free: 97.04 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004992/7.011, allocations: 342.1 kB / 4.149 GB, free: 96.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/7.011, allocations: 3.906 kB / 4.149 GB, free: 96.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/7.012, allocations: 18.56 kB / 4.149 GB, free: 96.87 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/7.012, allocations: 32.38 kB / 4.149 GB, free: 96.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.869e-05/7.012, allocations: 17.44 kB / 4.149 GB, free: 96.87 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.00104/7.013, allocations: 0.8909 MB / 4.15 GB, free: 96.76 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005931/7.019, allocations: 1.477 MB / 4.151 GB, free: 96.71 MB / 0.5573 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 (33): * Single equations (assignments): 31 * 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.008028/7.027, allocations: 1.964 MB / 4.153 GB, free: 96.41 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002505/7.029, allocations: 1.189 MB / 4.154 GB, free: 96.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/7.029, allocations: 256 / 4.154 GB, free: 96.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001521/7.031, allocations: 0.7355 MB / 4.155 GB, free: 96.38 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/7.033, allocations: 419.6 kB / 4.155 GB, free: 96.36 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/7.036, allocations: 1.705 MB / 4.157 GB, free: 95.91 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007075/7.036, allocations: 1.306 MB / 4.158 GB, free: 95.18 MB / 0.5573 GB Notification: Performance of SimCode: time 3.01e-07/7.036, allocations: 0 / 4.158 GB, free: 95.18 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)