Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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) 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(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002521/0.002521, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.73/1.73, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001216, allocations: 102.2 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.151e-05/2.161e-05, allocations: 0 / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1681, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.748/8.916, allocations: 2.756 GB / 3.142 GB, free: 89.89 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/8.917, allocations: 80.33 kB / 3.142 GB, free: 89.89 MB / 458.7 MB [/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 2.162/11.08, allocations: 0.493 GB / 3.635 GB, free: 43.55 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/11.08, allocations: 0 / 3.635 GB, free: 43.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001643/11.08, allocations: 30.97 kB / 3.635 GB, free: 43.55 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.01036/11.09, allocations: 2.206 MB / 3.637 GB, free: 42.64 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/11.09, allocations: 9.531 kB / 3.637 GB, free: 42.64 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005798/11.1, allocations: 0.7104 MB / 3.638 GB, free: 42.57 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/11.1, allocations: 0.9228 MB / 3.639 GB, free: 42.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.933e-05/11.1, allocations: 29.84 kB / 3.639 GB, free: 42.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000331/11.1, allocations: 58.28 kB / 3.639 GB, free: 42.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002517/11.1, allocations: 1.073 MB / 3.64 GB, free: 42.25 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002627/11.1, allocations: 1.233 MB / 3.641 GB, free: 41.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/11.1, allocations: 7.156 kB / 3.641 GB, free: 41.85 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/11.1, allocations: 3.969 kB / 3.641 GB, free: 41.85 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/11.1, allocations: 32 kB / 3.641 GB, free: 41.85 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.498/12.6, allocations: 360.3 MB / 3.993 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/12.6, allocations: 0.5459 MB / 3.993 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003978/12.6, allocations: 276 kB / 3.994 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09456/12.7, allocations: 53.54 MB / 4.046 GB, free: 84.51 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.213e-05/12.7, allocations: 45.45 kB / 4.046 GB, free: 84.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/12.7, allocations: 1.281 kB / 4.046 GB, free: 84.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=49): time 0.00662/12.71, allocations: 1.522 MB / 4.047 GB, free: 84.4 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.617e-05/12.71, allocations: 193.1 kB / 4.048 GB, free: 84.18 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002639/12.71, allocations: 0.8842 MB / 4.048 GB, free: 84.02 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001488/12.71, allocations: 29.31 kB / 4.049 GB, free: 83.99 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007042/12.71, allocations: 0.6712 MB / 4.049 GB, free: 83.71 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/12.71, allocations: 175 kB / 4.049 GB, free: 83.62 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/12.71, allocations: 1.281 kB / 4.049 GB, free: 83.62 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001273/12.71, allocations: 346.1 kB / 4.05 GB, free: 83.32 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007596/12.71, allocations: 319.9 kB / 4.05 GB, free: 83.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/12.71, allocations: 0.7321 MB / 4.051 GB, free: 82.81 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003469/12.71, allocations: 0.7195 MB / 4.051 GB, free: 82.78 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.147e-05/12.71, allocations: 3.906 kB / 4.051 GB, free: 82.78 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.005236/12.72, allocations: 1.508 MB / 4.053 GB, free: 82.67 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/12.72, allocations: 12.72 kB / 4.053 GB, free: 82.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/12.72, allocations: 11.12 kB / 4.053 GB, free: 82.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008361/12.72, allocations: 203.6 kB / 4.053 GB, free: 82.66 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/12.72, allocations: 303.1 kB / 4.053 GB, free: 82.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/12.72, allocations: 1.678 MB / 4.055 GB, free: 81.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/12.73, allocations: 155.8 kB / 4.055 GB, free: 81.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/12.73, allocations: 66.88 kB / 4.055 GB, free: 81.49 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 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.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 (124): * Single equations (assignments): 122 * 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.0002779/12.73, allocations: 150.8 kB / 4.055 GB, free: 81.38 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003262/12.73, allocations: 0.9539 MB / 4.056 GB, free: 81.27 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/12.73, allocations: 109.8 kB / 4.056 GB, free: 81.21 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/12.74, allocations: 3.024 MB / 4.059 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/12.74, allocations: 19.09 kB / 4.059 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/12.74, allocations: 0 / 4.059 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/12.74, allocations: 3.891 kB / 4.059 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/12.74, allocations: 1.389 MB / 4.061 GB, free: 80.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/12.74, allocations: 0 / 4.061 GB, free: 80.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009177/12.74, allocations: 137.8 kB / 4.061 GB, free: 80.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002502/12.74, allocations: 2.158 MB / 4.063 GB, free: 80.78 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-05/12.74, allocations: 8.234 kB / 4.063 GB, free: 80.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/12.74, allocations: 3.031 MB / 4.066 GB, free: 79.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/12.74, allocations: 2.844 kB / 4.066 GB, free: 79.63 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/12.75, allocations: 2.18 MB / 4.068 GB, free: 79.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006383/12.75, allocations: 300.9 kB / 4.068 GB, free: 79.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/12.75, allocations: 2.719 kB / 4.068 GB, free: 79.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008654/12.75, allocations: 28.08 kB / 4.068 GB, free: 79.03 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/12.75, allocations: 32.16 kB / 4.068 GB, free: 79.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.97e-05/12.75, allocations: 21.84 kB / 4.068 GB, free: 79.03 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001313/12.75, allocations: 0.8525 MB / 4.069 GB, free: 78.92 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/12.75, allocations: 2.812 kB / 4.069 GB, free: 78.92 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007247/12.76, allocations: 1.306 MB / 4.071 GB, free: 78.84 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 ($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 (37): * Single equations (assignments): 35 * 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.01554/12.77, allocations: 3.904 MB / 4.074 GB, free: 77.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003517/12.78, allocations: 0.9718 MB / 4.075 GB, free: 77.69 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/12.78, allocations: 0 / 4.075 GB, free: 77.69 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00173/12.78, allocations: 0.5059 MB / 4.076 GB, free: 77.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/12.78, allocations: 442.1 kB / 4.076 GB, free: 77.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/12.79, allocations: 2.168 MB / 4.078 GB, free: 77.08 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008299/12.79, allocations: 1.202 MB / 4.08 GB, free: 76.34 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002114/12.8, allocations: 1.02 MB / 4.081 GB, free: 76.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008032/12.8, allocations: 0.5301 MB / 4.081 GB, free: 76.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/12.8, allocations: 0 / 4.081 GB, free: 76.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.118/12.91, allocations: 54.66 MB / 4.134 GB, free: 66.68 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/12.91, allocations: 176.2 kB / 4.135 GB, free: 66.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.025/16.94, allocations: 4 kB / 4.135 GB, free: 66.48 MB / 0.5573 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)