Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001615/0.001615, allocations: 188.1 kB / 7.803 MB, free: 2.488 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.795/1.795, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 88.73 kB / 261.4 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2267/0.2267, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2572/0.484, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.9219, allocations: 58.84 MB / 476.7 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.323/7.245, allocations: 2.76 GB / 3.225 GB, free: 93.66 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/7.245, allocations: 83.48 kB / 3.225 GB, free: 93.59 MB / 0.4948 GB [/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: 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 2.11/9.355, allocations: 0.4895 GB / 3.715 GB, free: 49.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/9.355, allocations: 7.938 kB / 3.715 GB, free: 49.43 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005/9.36, allocations: 0.6444 MB / 3.715 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/9.362, allocations: 0.9224 MB / 3.716 GB, free: 49.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.552e-05/9.362, allocations: 29.19 kB / 3.716 GB, free: 49.06 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001677/9.363, allocations: 58.09 kB / 3.716 GB, free: 49.06 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001767/9.364, allocations: 0.9782 MB / 3.717 GB, free: 49.06 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/9.366, allocations: 1.18 MB / 3.718 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/9.366, allocations: 9.031 kB / 3.718 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/9.366, allocations: 10.12 kB / 3.718 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/9.366, allocations: 25.44 kB / 3.718 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9978/10.36, allocations: 324.4 MB / 4.035 GB, free: 110.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/10.36, allocations: 0.4937 MB / 4.036 GB, free: 110.2 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/10.37, allocations: 243.7 kB / 4.036 GB, free: 110.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09614/10.46, allocations: 48.04 MB / 4.083 GB, free: 79.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.308e-05/10.46, allocations: 37.88 kB / 4.083 GB, free: 79.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=41): time 4.037e-06/10.46, allocations: 1.203 kB / 4.083 GB, free: 79.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=41): time 0.005867/10.47, allocations: 1.504 MB / 4.084 GB, free: 79.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/10.47, allocations: 187.4 kB / 4.085 GB, free: 78.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/10.47, allocations: 0.9237 MB / 4.085 GB, free: 78.72 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/10.47, allocations: 31.81 kB / 4.085 GB, free: 78.69 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006918/10.47, allocations: 0.5367 MB / 4.086 GB, free: 78.41 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003348/10.47, allocations: 151.3 kB / 4.086 GB, free: 78.34 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/10.47, allocations: 1.125 kB / 4.086 GB, free: 78.34 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001373/10.47, allocations: 343.4 kB / 4.086 GB, free: 78.03 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007857/10.47, allocations: 357.3 kB / 4.087 GB, free: 78.02 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/10.47, allocations: 0.7527 MB / 4.088 GB, free: 77.5 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00479/10.48, allocations: 0.7883 MB / 4.088 GB, free: 77.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.404e-05/10.48, allocations: 3.812 kB / 4.088 GB, free: 77.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.01317/10.49, allocations: 2.339 MB / 4.091 GB, free: 77.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/10.49, allocations: 4.75 kB / 4.091 GB, free: 77.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.705e-05/10.49, allocations: 16.91 kB / 4.091 GB, free: 77.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/10.49, allocations: 224.5 kB / 4.091 GB, free: 77.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/10.5, allocations: 294.2 kB / 4.091 GB, free: 77.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004093/10.5, allocations: 1.929 MB / 4.093 GB, free: 76.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/10.5, allocations: 153.3 kB / 4.093 GB, free: 76.17 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/10.5, allocations: 61.48 kB / 4.093 GB, free: 76.17 MB / 0.6042 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.0003815/10.5, allocations: 149.9 kB / 4.093 GB, free: 76.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003201/10.51, allocations: 0.5892 MB / 4.094 GB, free: 75.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006611/10.51, allocations: 2.485 MB / 4.096 GB, free: 75.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/10.51, allocations: 15 kB / 4.096 GB, free: 75.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/10.51, allocations: 3.906 kB / 4.096 GB, free: 75.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/10.51, allocations: 3.797 kB / 4.096 GB, free: 75.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009507/10.52, allocations: 3.888 MB / 4.1 GB, free: 74.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/10.52, allocations: 0 / 4.1 GB, free: 74.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/10.52, allocations: 127.8 kB / 4.1 GB, free: 74.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003124/10.53, allocations: 1.525 MB / 4.102 GB, free: 74.84 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/10.53, allocations: 7.844 kB / 4.102 GB, free: 74.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/10.53, allocations: 2.595 MB / 4.104 GB, free: 73.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/10.53, allocations: 0 / 4.104 GB, free: 73.7 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004162/10.53, allocations: 2.118 MB / 4.106 GB, free: 73.34 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004943/10.54, allocations: 2.533 MB / 4.109 GB, free: 72.63 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/10.54, allocations: 337.7 kB / 4.109 GB, free: 72.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000663/10.54, allocations: 5 kB / 4.109 GB, free: 72.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009925/10.54, allocations: 24.36 kB / 4.109 GB, free: 72.44 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/10.54, allocations: 23.94 kB / 4.109 GB, free: 72.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-05/10.54, allocations: 25.64 kB / 4.109 GB, free: 72.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.00198/10.54, allocations: 0.8948 MB / 4.11 GB, free: 72.33 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009648/10.55, allocations: 1.472 MB / 4.112 GB, free: 72.24 MB / 0.6042 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.0136/10.57, allocations: 1.955 MB / 4.113 GB, free: 71.96 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004427/10.57, allocations: 1.196 MB / 4.115 GB, free: 71.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/10.57, allocations: 2.719 kB / 4.115 GB, free: 71.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002166/10.57, allocations: 0.728 MB / 4.115 GB, free: 71.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003445/10.58, allocations: 421.6 kB / 4.116 GB, free: 71.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/10.58, allocations: 1.719 MB / 4.117 GB, free: 71.44 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002647/10.59, allocations: 1.303 MB / 4.119 GB, free: 70.51 MB / 0.6042 GB Notification: Performance of SimCode: time 2.204e-06/10.59, allocations: 0 / 4.119 GB, free: 70.51 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)