Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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) 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(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 178.9 kB / 8.701 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008731/0.0008732, allocations: 86.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.97e-05/1.973e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.14/6.244, allocations: 2.75 GB / 3.105 GB, free: 108 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/6.244, allocations: 79.06 kB / 3.105 GB, free: 107.9 MB / 426.7 MB [/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: Performance of FrontEnd - DAE generated: time 1.886/8.13, allocations: 499.1 MB / 3.592 GB, free: 36.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/8.13, allocations: 0 / 3.592 GB, free: 36.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.211e-05/8.13, allocations: 30.56 kB / 3.592 GB, free: 36.04 MB / 442.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.008982/8.139, allocations: 2.197 MB / 3.594 GB, free: 35.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/8.139, allocations: 7.562 kB / 3.594 GB, free: 35.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004932/8.144, allocations: 0.7122 MB / 3.595 GB, free: 35.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001844/8.146, allocations: 0.917 MB / 3.596 GB, free: 34.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/8.146, allocations: 33.53 kB / 3.596 GB, free: 34.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/8.146, allocations: 58.88 kB / 3.596 GB, free: 34.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001742/8.148, allocations: 1.071 MB / 3.597 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/8.15, allocations: 1.241 MB / 3.598 GB, free: 34.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/8.15, allocations: 12.03 kB / 3.598 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.461e-05/8.15, allocations: 2.562 kB / 3.598 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/8.15, allocations: 29.95 kB / 3.598 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9734/9.124, allocations: 325 MB / 3.916 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/9.125, allocations: 0.5435 MB / 3.916 GB, free: 15.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004488/9.125, allocations: 272.8 kB / 3.917 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4387/9.564, allocations: 47.99 MB / 3.963 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/9.564, allocations: 49.7 kB / 3.963 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 3.427e-06/9.564, allocations: 0 / 3.963 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.00548/9.569, allocations: 1.515 MB / 3.965 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/9.57, allocations: 196.1 kB / 3.965 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/9.571, allocations: 0.8863 MB / 3.966 GB, free: 109 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.561e-05/9.571, allocations: 26.91 kB / 3.966 GB, free: 109 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004756/9.572, allocations: 0.6707 MB / 3.967 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/9.572, allocations: 177.1 kB / 3.967 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.272e-05/9.572, allocations: 0 / 3.967 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/9.572, allocations: 346.6 kB / 3.967 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004827/9.573, allocations: 323.5 kB / 3.967 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007335/9.573, allocations: 0.7294 MB / 3.968 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/9.576, allocations: 0.7117 MB / 3.969 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/9.576, allocations: 4.812 kB / 3.969 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004019/9.58, allocations: 1.509 MB / 3.97 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/9.58, allocations: 13.25 kB / 3.97 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/9.58, allocations: 15.22 kB / 3.97 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005192/9.581, allocations: 207.7 kB / 3.971 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/9.582, allocations: 303.7 kB / 3.971 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/9.584, allocations: 1.675 MB / 3.972 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/9.585, allocations: 147.3 kB / 3.973 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/9.585, allocations: 67.83 kB / 3.973 GB, free: 106.5 MB / 0.5261 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.0002598/9.585, allocations: 158.4 kB / 3.973 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00285/9.588, allocations: 0.9518 MB / 3.974 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003286/9.589, allocations: 110.9 kB / 3.974 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/9.593, allocations: 3.016 MB / 3.977 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/9.593, allocations: 13.23 kB / 3.977 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/9.593, allocations: 0 / 3.977 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/9.593, allocations: 10.52 kB / 3.977 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/9.595, allocations: 1.388 MB / 3.978 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/9.595, allocations: 3 kB / 3.978 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/9.596, allocations: 137.2 kB / 3.978 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/9.598, allocations: 2.151 MB / 3.98 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.594e-05/9.598, allocations: 12.41 kB / 3.98 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/9.601, allocations: 3.029 MB / 3.983 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/9.601, allocations: 0 / 3.983 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002854/9.604, allocations: 2.184 MB / 3.986 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/9.605, allocations: 305.7 kB / 3.986 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/9.605, allocations: 4.734 kB / 3.986 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008408/9.606, allocations: 23.86 kB / 3.986 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/9.606, allocations: 34.16 kB / 3.986 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/9.606, allocations: 25.17 kB / 3.986 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001417/9.607, allocations: 0.8488 MB / 3.987 GB, free: 104 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.31e-07/9.607, allocations: 0 / 3.987 GB, free: 104 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006984/9.614, allocations: 1.304 MB / 3.988 GB, free: 103.9 MB / 0.5261 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.01379/9.628, allocations: 3.882 MB / 3.992 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003131/9.631, allocations: 0.971 MB / 3.993 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/9.631, allocations: 1.281 kB / 3.993 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001582/9.633, allocations: 0.5096 MB / 3.993 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002894/9.636, allocations: 450 kB / 3.994 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008617/9.645, allocations: 2.159 MB / 3.996 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008397/9.645, allocations: 1.198 MB / 3.997 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001877/9.647, allocations: 1.02 MB / 3.998 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000813/9.648, allocations: 0.5292 MB / 3.998 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.533e-06/9.648, allocations: 0 / 3.998 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1136/9.762, allocations: 54.56 MB / 4.052 GB, free: 97.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/9.762, allocations: 179 kB / 4.052 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/13.38, allocations: 3.031 kB / 4.052 GB, free: 97.57 MB / 0.5261 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)