Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.594/1.594, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009563/0.0009564, allocations: 89.23 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.051e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1475, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.158/8.306, allocations: 2.755 GB / 3.133 GB, free: 76.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/8.306, allocations: 81.88 kB / 3.133 GB, free: 76.55 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 2.003/10.31, allocations: 0.4929 GB / 3.626 GB, free: 39.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.004e-06/10.31, allocations: 0 / 3.626 GB, free: 39.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.486e-05/10.31, allocations: 30.48 kB / 3.626 GB, free: 39.67 MB / 458.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.007912/10.32, allocations: 2.196 MB / 3.629 GB, free: 38.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/10.32, allocations: 14.81 kB / 3.629 GB, free: 38.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004783/10.32, allocations: 0.7137 MB / 3.629 GB, free: 38.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/10.32, allocations: 0.9225 MB / 3.63 GB, free: 38.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/10.32, allocations: 30.56 kB / 3.63 GB, free: 38.31 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/10.32, allocations: 59.56 kB / 3.63 GB, free: 38.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001632/10.33, allocations: 1.065 MB / 3.631 GB, free: 38.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/10.33, allocations: 1.244 MB / 3.633 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/10.33, allocations: 7.531 kB / 3.633 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.431e-05/10.33, allocations: 3.969 kB / 3.633 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/10.33, allocations: 33.31 kB / 3.633 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.356/11.68, allocations: 325 MB / 3.95 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009919/11.68, allocations: 0.5582 MB / 3.951 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/11.68, allocations: 272.5 kB / 3.951 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08756/11.77, allocations: 48 MB / 3.998 GB, free: 96.79 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.61e-05/11.77, allocations: 44.06 kB / 3.998 GB, free: 96.74 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/11.77, allocations: 0 / 3.998 GB, free: 96.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49): time 0.005025/11.78, allocations: 1.528 MB / 3.999 GB, free: 96.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/11.78, allocations: 188.9 kB / 3.999 GB, free: 96.44 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/11.78, allocations: 0.8821 MB / 4 GB, free: 96.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/11.78, allocations: 27.86 kB / 4 GB, free: 96.26 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003738/11.78, allocations: 0.6761 MB / 4.001 GB, free: 95.98 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/11.78, allocations: 180.6 kB / 4.001 GB, free: 95.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/11.78, allocations: 0 / 4.001 GB, free: 95.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.119e-05/11.78, allocations: 350.6 kB / 4.001 GB, free: 95.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/11.78, allocations: 313.4 kB / 4.002 GB, free: 95.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006933/11.78, allocations: 0.7316 MB / 4.002 GB, free: 95.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/11.78, allocations: 0.7161 MB / 4.003 GB, free: 95.05 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/11.78, allocations: 3.719 kB / 4.003 GB, free: 95.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003572/11.79, allocations: 1.502 MB / 4.005 GB, free: 94.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/11.79, allocations: 11.53 kB / 4.005 GB, free: 94.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/11.79, allocations: 12.38 kB / 4.005 GB, free: 94.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004635/11.79, allocations: 202.9 kB / 4.005 GB, free: 94.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/11.79, allocations: 304.7 kB / 4.005 GB, free: 94.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/11.79, allocations: 1.682 MB / 4.007 GB, free: 93.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/11.79, allocations: 152.9 kB / 4.007 GB, free: 93.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.423e-05/11.79, allocations: 63.16 kB / 4.007 GB, free: 93.75 MB / 0.5417 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.0002208/11.79, allocations: 161.2 kB / 4.007 GB, free: 93.63 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002585/11.79, allocations: 0.9446 MB / 4.008 GB, free: 93.53 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/11.79, allocations: 111.8 kB / 4.008 GB, free: 93.48 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/11.8, allocations: 3.007 MB / 4.011 GB, free: 93.28 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/11.8, allocations: 21.48 kB / 4.011 GB, free: 93.28 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/11.8, allocations: 3 kB / 4.011 GB, free: 93.28 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/11.8, allocations: 3.891 kB / 4.011 GB, free: 93.28 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/11.8, allocations: 1.387 MB / 4.012 GB, free: 93.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/11.8, allocations: 0 / 4.012 GB, free: 93.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/11.8, allocations: 137.5 kB / 4.013 GB, free: 93.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/11.8, allocations: 2.154 MB / 4.015 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/11.8, allocations: 14.2 kB / 4.015 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/11.81, allocations: 3.031 MB / 4.018 GB, free: 91.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/11.81, allocations: 3.953 kB / 4.018 GB, free: 91.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/11.81, allocations: 2.181 MB / 4.02 GB, free: 91.51 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/11.81, allocations: 306 kB / 4.02 GB, free: 91.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/11.81, allocations: 0 / 4.02 GB, free: 91.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/11.81, allocations: 25.28 kB / 4.02 GB, free: 91.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/11.81, allocations: 37.95 kB / 4.02 GB, free: 91.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/11.81, allocations: 22.03 kB / 4.02 GB, free: 91.34 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001002/11.81, allocations: 0.8512 MB / 4.021 GB, free: 91.23 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/11.81, allocations: 0 / 4.021 GB, free: 91.23 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006125/11.82, allocations: 1.306 MB / 4.022 GB, free: 91.16 MB / 0.5417 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.009726/11.83, allocations: 3.89 MB / 4.026 GB, free: 90.03 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002593/11.83, allocations: 0.9713 MB / 4.027 GB, free: 90 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/11.83, allocations: 0 / 4.027 GB, free: 90 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/11.83, allocations: 0.5085 MB / 4.028 GB, free: 90 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/11.83, allocations: 438.6 kB / 4.028 GB, free: 89.97 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007452/11.84, allocations: 2.157 MB / 4.03 GB, free: 89.37 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/11.84, allocations: 1.207 MB / 4.031 GB, free: 88.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001661/11.84, allocations: 1.024 MB / 4.032 GB, free: 88.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006349/11.84, allocations: 0.5266 MB / 4.033 GB, free: 88.58 MB / 0.5417 GB Notification: Performance of SimCode: time 1.202e-06/11.84, allocations: 0 / 4.033 GB, free: 88.58 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09844/11.94, allocations: 54.6 MB / 4.086 GB, free: 78.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/11.94, allocations: 188 kB / 4.086 GB, free: 78.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.98/15.92, allocations: 0 / 4.086 GB, free: 78.47 MB / 0.5417 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)