Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.002191/0.002191, allocations: 204.9 kB / 8.544 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008637/0.0008637, allocations: 92.48 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1708/0.1708, allocations: 45.14 MB / 383.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2103/0.3811, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.4749, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.332/4.807, allocations: 2.766 GB / 3.27 GB, free: 136 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/4.807, allocations: 87.44 kB / 3.27 GB, free: 135.9 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.341/6.148, allocations: 0.4951 GB / 3.765 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/6.148, allocations: 8.125 kB / 3.765 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005213/6.154, allocations: 0.6536 MB / 3.766 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/6.156, allocations: 0.9227 MB / 3.767 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/6.156, allocations: 32 kB / 3.767 GB, free: 32.65 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/6.156, allocations: 54.84 kB / 3.767 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001909/6.158, allocations: 0.9801 MB / 3.768 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/6.16, allocations: 1.178 MB / 3.769 GB, free: 30.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/6.16, allocations: 7.922 kB / 3.769 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/6.16, allocations: 8 kB / 3.769 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/6.16, allocations: 27.41 kB / 3.769 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9547/7.115, allocations: 368.3 MB / 4.128 GB, free: 74.04 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/7.115, allocations: 0.4958 MB / 4.129 GB, free: 73.99 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/7.116, allocations: 241.7 kB / 4.129 GB, free: 73.97 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08451/7.2, allocations: 55.18 MB / 4.183 GB, free: 37.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/7.2, allocations: 46 kB / 4.183 GB, free: 37.05 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=41): time 3.697e-06/7.2, allocations: 2.438 kB / 4.183 GB, free: 37.05 MB / 0.5886 GB Notification: Performance of matching and sorting (n=41): time 0.004744/7.205, allocations: 1.51 MB / 4.185 GB, free: 37 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/7.205, allocations: 185.5 kB / 4.185 GB, free: 36.78 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/7.206, allocations: 0.9208 MB / 4.186 GB, free: 36.62 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/7.206, allocations: 28 kB / 4.186 GB, free: 36.59 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/7.206, allocations: 0.5382 MB / 4.186 GB, free: 36.31 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/7.207, allocations: 156.6 kB / 4.186 GB, free: 36.24 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/7.207, allocations: 0 / 4.186 GB, free: 36.24 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.309e-05/7.207, allocations: 349.8 kB / 4.187 GB, free: 35.93 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/7.207, allocations: 347.2 kB / 4.187 GB, free: 35.93 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006049/7.208, allocations: 0.7492 MB / 4.188 GB, free: 35.41 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/7.211, allocations: 0.7898 MB / 4.188 GB, free: 35.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/7.211, allocations: 3.969 kB / 4.188 GB, free: 35.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.006361/7.217, allocations: 2.343 MB / 4.191 GB, free: 35.27 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/7.217, allocations: 8.312 kB / 4.191 GB, free: 35.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/7.217, allocations: 12.59 kB / 4.191 GB, free: 35.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005052/7.218, allocations: 218.5 kB / 4.191 GB, free: 35.26 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/7.219, allocations: 297.8 kB / 4.191 GB, free: 35.26 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/7.221, allocations: 1.928 MB / 4.193 GB, free: 34.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009944/7.222, allocations: 143 kB / 4.193 GB, free: 34.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.454e-05/7.222, allocations: 70.58 kB / 4.193 GB, free: 34.1 MB / 0.5886 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.0001592/7.222, allocations: 152.4 kB / 4.194 GB, free: 33.98 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/7.224, allocations: 0.5757 MB / 4.194 GB, free: 33.93 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/7.227, allocations: 2.482 MB / 4.197 GB, free: 33.73 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/7.227, allocations: 21.47 kB / 4.197 GB, free: 33.73 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/7.227, allocations: 3.906 kB / 4.197 GB, free: 33.73 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/7.227, allocations: 3.422 kB / 4.197 GB, free: 33.73 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003943/7.231, allocations: 3.888 MB / 4.2 GB, free: 32.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/7.231, allocations: 2.875 kB / 4.2 GB, free: 32.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007469/7.232, allocations: 122.7 kB / 4.2 GB, free: 32.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001768/7.233, allocations: 1.525 MB / 4.202 GB, free: 32.81 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/7.233, allocations: 5.625 kB / 4.202 GB, free: 32.81 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/7.236, allocations: 2.606 MB / 4.204 GB, free: 30.94 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/7.236, allocations: 2.25 kB / 4.204 GB, free: 30.94 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003119/7.239, allocations: 2.109 MB / 4.207 GB, free: 29.69 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003286/7.242, allocations: 2.542 MB / 4.209 GB, free: 28.06 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/7.243, allocations: 342.9 kB / 4.209 GB, free: 27.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001931/7.243, allocations: 0 / 4.209 GB, free: 27.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/7.243, allocations: 25.11 kB / 4.209 GB, free: 27.81 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/7.243, allocations: 27.36 kB / 4.209 GB, free: 27.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/7.243, allocations: 27.14 kB / 4.209 GB, free: 27.78 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0009572/7.244, allocations: 0.8889 MB / 4.21 GB, free: 27.25 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006015/7.25, allocations: 1.494 MB / 4.212 GB, free: 26.19 MB / 0.5886 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.007921/7.258, allocations: 1.975 MB / 4.214 GB, free: 24.82 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002821/7.261, allocations: 1.187 MB / 4.215 GB, free: 24.15 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/7.261, allocations: 8.453 kB / 4.215 GB, free: 24.14 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/7.263, allocations: 0.7302 MB / 4.216 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/7.265, allocations: 419 kB / 4.216 GB, free: 23.57 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/7.267, allocations: 1.712 MB / 4.218 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007947/7.268, allocations: 1.3 MB / 4.219 GB, free: 21.16 MB / 0.5886 GB Notification: Performance of SimCode: time 9.52e-07/7.268, allocations: 0 / 4.219 GB, free: 21.16 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)