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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008804/0.0008803, allocations: 97.38 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 45.16 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.749e-05/1.751e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1264, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.033/7.159, allocations: 2.766 GB / 3.27 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/7.159, allocations: 89.67 kB / 3.271 GB, free: 142.8 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: Performance of FrontEnd - DAE generated: time 1.913/9.072, allocations: 0.492 GB / 3.763 GB, free: 40.32 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.004e-06/9.073, allocations: 0 / 3.763 GB, free: 40.32 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001405/9.073, allocations: 33.03 kB / 3.763 GB, free: 40.32 MB / 0.5261 GB 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.01021/9.083, allocations: 2.187 MB / 3.765 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/9.083, allocations: 9.562 kB / 3.765 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005029/9.088, allocations: 0.625 MB / 3.765 GB, free: 38.62 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002535/9.091, allocations: 0.9072 MB / 3.766 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.168e-05/9.091, allocations: 36.47 kB / 3.766 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/9.091, allocations: 60.92 kB / 3.766 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001995/9.093, allocations: 0.9685 MB / 3.767 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/9.095, allocations: 1.182 MB / 3.768 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/9.095, allocations: 3.938 kB / 3.768 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/9.095, allocations: 3.938 kB / 3.768 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/9.096, allocations: 26.59 kB / 3.768 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.49/10.59, allocations: 360.1 MB / 4.12 GB, free: 119.6 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009797/10.59, allocations: 0.4884 MB / 4.121 GB, free: 119.5 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/10.59, allocations: 242.4 kB / 4.121 GB, free: 119.5 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09137/10.68, allocations: 53.54 MB / 4.173 GB, free: 83.18 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/10.68, allocations: 42.62 kB / 4.173 GB, free: 83.14 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=41): time 2.434e-06/10.68, allocations: 0 / 4.173 GB, free: 83.14 MB / 0.6355 GB Notification: Performance of matching and sorting (n=41): time 0.005464/10.68, allocations: 1.446 MB / 4.175 GB, free: 83.07 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/10.68, allocations: 189.9 kB / 4.175 GB, free: 82.85 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002224/10.69, allocations: 0.8881 MB / 4.176 GB, free: 82.69 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001336/10.69, allocations: 26.8 kB / 4.176 GB, free: 82.66 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007292/10.69, allocations: 0.6674 MB / 4.176 GB, free: 82.38 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/10.69, allocations: 157.2 kB / 4.176 GB, free: 82.3 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.292e-05/10.69, allocations: 0 / 4.176 GB, free: 82.3 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001602/10.69, allocations: 351 kB / 4.177 GB, free: 82 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006424/10.69, allocations: 287.7 kB / 4.177 GB, free: 82 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007763/10.69, allocations: 0.6858 MB / 4.178 GB, free: 81.49 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/10.69, allocations: 0.6892 MB / 4.178 GB, free: 81.46 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.662e-05/10.69, allocations: 4.719 kB / 4.178 GB, free: 81.46 MB / 0.6355 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.004068/10.7, allocations: 1.418 MB / 4.18 GB, free: 81.34 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/10.7, allocations: 15.08 kB / 4.18 GB, free: 81.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/10.7, allocations: 15.56 kB / 4.18 GB, free: 81.34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005429/10.7, allocations: 198.9 kB / 4.18 GB, free: 81.33 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/10.7, allocations: 288.8 kB / 4.18 GB, free: 81.33 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/10.7, allocations: 1.674 MB / 4.182 GB, free: 80.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/10.7, allocations: 148.3 kB / 4.182 GB, free: 80.17 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/10.7, allocations: 65.58 kB / 4.182 GB, free: 80.17 MB / 0.6355 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.0002582/10.7, allocations: 159.5 kB / 4.182 GB, free: 80.05 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002743/10.7, allocations: 0.8711 MB / 4.183 GB, free: 79.95 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/10.71, allocations: 105.7 kB / 4.183 GB, free: 79.9 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003582/10.71, allocations: 2.928 MB / 4.186 GB, free: 79.7 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/10.71, allocations: 21.09 kB / 4.186 GB, free: 79.7 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/10.71, allocations: 0 / 4.186 GB, free: 79.7 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/10.71, allocations: 3.609 kB / 4.186 GB, free: 79.7 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/10.71, allocations: 1.332 MB / 4.187 GB, free: 79.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/10.71, allocations: 7.062 kB / 4.187 GB, free: 79.51 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007039/10.71, allocations: 115 kB / 4.188 GB, free: 79.51 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/10.71, allocations: 2.192 MB / 4.19 GB, free: 79.45 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/10.71, allocations: 10.8 kB / 4.19 GB, free: 79.45 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/10.72, allocations: 3.014 MB / 4.193 GB, free: 78.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/10.72, allocations: 2.188 kB / 4.193 GB, free: 78.29 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/10.72, allocations: 2.114 MB / 4.195 GB, free: 77.89 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007238/10.72, allocations: 296.6 kB / 4.195 GB, free: 77.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004005/10.72, allocations: 0 / 4.195 GB, free: 77.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007497/10.72, allocations: 21.36 kB / 4.195 GB, free: 77.73 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/10.72, allocations: 31.41 kB / 4.195 GB, free: 77.72 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/10.72, allocations: 19.61 kB / 4.195 GB, free: 77.72 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001331/10.72, allocations: 0.8508 MB / 4.196 GB, free: 77.61 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.8e-07/10.72, allocations: 0 / 4.196 GB, free: 77.61 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.006907/10.73, allocations: 1.299 MB / 4.197 GB, free: 77.58 MB / 0.6355 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 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.01263/10.74, allocations: 3.821 MB / 4.201 GB, free: 76.46 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002804/10.75, allocations: 0.8806 MB / 4.202 GB, free: 76.44 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/10.75, allocations: 0 / 4.202 GB, free: 76.44 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001455/10.75, allocations: 463.4 kB / 4.202 GB, free: 76.44 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/10.75, allocations: 436.8 kB / 4.203 GB, free: 76.41 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008106/10.76, allocations: 2.097 MB / 4.205 GB, free: 75.86 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/10.76, allocations: 1.185 MB / 4.206 GB, free: 75.13 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001984/10.76, allocations: 1.014 MB / 4.207 GB, free: 75.09 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008645/10.76, allocations: 0.5179 MB / 4.207 GB, free: 75.08 MB / 0.6355 GB Notification: Performance of SimCode: time 1.373e-06/10.76, allocations: 0 / 4.207 GB, free: 75.08 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5338/11.3, allocations: 53.71 MB / 4.26 GB, free: 161.2 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/11.3, allocations: 190.2 kB / 4.26 GB, free: 161 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.862/15.16, allocations: 0 / 4.26 GB, free: 161 MB / 0.6355 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)