Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_cpp_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.002045/0.002051, allocations: 180.2 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.125/2.125, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001268, allocations: 86.66 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.438e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3407, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.949/8.29, allocations: 2.75 GB / 3.104 GB, free: 86.21 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/8.29, allocations: 79.92 kB / 3.104 GB, free: 86.21 MB / 427.1 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 2.588/10.88, allocations: 499.1 MB / 3.591 GB, free: 38.96 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.764e-06/10.88, allocations: 2.062 kB / 3.591 GB, free: 38.96 MB / 443.1 MB Notification: Performance of Transformations before backend: time 0.0001087/10.88, allocations: 25.34 kB / 3.591 GB, free: 38.96 MB / 443.1 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.01026/10.89, allocations: 2.203 MB / 3.593 GB, free: 38.1 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/10.89, allocations: 9.219 kB / 3.593 GB, free: 38.1 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00718/10.9, allocations: 0.7099 MB / 3.594 GB, free: 38.03 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/10.9, allocations: 0.9209 MB / 3.595 GB, free: 37.72 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/10.9, allocations: 32.06 kB / 3.595 GB, free: 37.72 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/10.9, allocations: 55.19 kB / 3.595 GB, free: 37.72 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002951/10.9, allocations: 1.069 MB / 3.596 GB, free: 37.71 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/10.91, allocations: 1.243 MB / 3.597 GB, free: 37.3 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/10.91, allocations: 3.781 kB / 3.597 GB, free: 37.3 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/10.91, allocations: 7.562 kB / 3.597 GB, free: 37.3 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/10.91, allocations: 26.5 kB / 3.597 GB, free: 37.3 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.351/12.26, allocations: 325 MB / 3.915 GB, free: 17.23 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/12.26, allocations: 0.5456 MB / 3.915 GB, free: 16.91 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005561/12.26, allocations: 273.3 kB / 3.916 GB, free: 16.76 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4778/12.74, allocations: 47.99 MB / 3.962 GB, free: 112.5 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/12.74, allocations: 42.5 kB / 3.962 GB, free: 112.5 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=49): time 4.429e-06/12.74, allocations: 0 / 3.962 GB, free: 112.5 MB / 0.5265 GB Notification: Performance of matching and sorting (n=49): time 0.007191/12.74, allocations: 1.534 MB / 3.964 GB, free: 112.4 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/12.74, allocations: 185.9 kB / 3.964 GB, free: 112.2 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/12.75, allocations: 0.8872 MB / 3.965 GB, free: 112 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0001372/12.75, allocations: 25.7 kB / 3.965 GB, free: 112 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004913/12.75, allocations: 0.6803 MB / 3.966 GB, free: 111.7 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/12.75, allocations: 177.6 kB / 3.966 GB, free: 111.6 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/12.75, allocations: 0 / 3.966 GB, free: 111.6 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001127/12.75, allocations: 352.1 kB / 3.966 GB, free: 111.3 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007467/12.75, allocations: 319.6 kB / 3.967 GB, free: 111.3 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009565/12.75, allocations: 0.7319 MB / 3.967 GB, free: 110.8 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004044/12.75, allocations: 0.713 MB / 3.968 GB, free: 110.8 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/12.75, allocations: 3.594 kB / 3.968 GB, free: 110.8 MB / 0.5265 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006425/12.76, allocations: 1.453 MB / 3.969 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/12.76, allocations: 10.66 kB / 3.969 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/12.76, allocations: 16.91 kB / 3.969 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007978/12.76, allocations: 207 kB / 3.97 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/12.76, allocations: 305.8 kB / 3.97 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/12.76, allocations: 1.67 MB / 3.972 GB, free: 109.6 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/12.77, allocations: 150.6 kB / 3.972 GB, free: 109.5 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002262/12.77, allocations: 68.83 kB / 3.972 GB, free: 109.5 MB / 0.5265 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.0003168/12.77, allocations: 151.5 kB / 3.972 GB, free: 109.4 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004854/12.77, allocations: 0.9587 MB / 3.973 GB, free: 109.3 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003467/12.77, allocations: 107.9 kB / 3.973 GB, free: 109.3 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006531/12.78, allocations: 3.011 MB / 3.976 GB, free: 109.1 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.475e-05/12.78, allocations: 17.83 kB / 3.976 GB, free: 109.1 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/12.78, allocations: 2.469 kB / 3.976 GB, free: 109.1 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/12.78, allocations: 2.297 kB / 3.976 GB, free: 109.1 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/12.78, allocations: 1.391 MB / 3.977 GB, free: 108.9 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/12.78, allocations: 6.125 kB / 3.977 GB, free: 108.9 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/12.78, allocations: 129.3 kB / 3.977 GB, free: 108.9 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003295/12.79, allocations: 2.159 MB / 3.979 GB, free: 108.8 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/12.79, allocations: 9.531 kB / 3.979 GB, free: 108.8 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003675/12.79, allocations: 3.027 MB / 3.982 GB, free: 107.7 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/12.79, allocations: 3.094 kB / 3.982 GB, free: 107.7 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004303/12.8, allocations: 2.187 MB / 3.985 GB, free: 107.3 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007031/12.8, allocations: 303.8 kB / 3.985 GB, free: 107.1 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/12.8, allocations: 0 / 3.985 GB, free: 107.1 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/12.8, allocations: 27.53 kB / 3.985 GB, free: 107.1 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.006e-05/12.8, allocations: 33.3 kB / 3.985 GB, free: 107.1 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.393e-05/12.8, allocations: 23.8 kB / 3.985 GB, free: 107.1 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.001479/12.8, allocations: 0.8501 MB / 3.986 GB, free: 107 MB / 0.5265 GB Notification: Performance of sort global known variables: time 5.21e-07/12.8, allocations: 0 / 3.986 GB, free: 107 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.006435/12.81, allocations: 1.302 MB / 3.987 GB, free: 106.9 MB / 0.5265 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.01421/12.82, allocations: 3.877 MB / 3.991 GB, free: 105.9 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.004151/12.82, allocations: 0.9762 MB / 3.992 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/12.82, allocations: 2.594 kB / 3.992 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.002905/12.83, allocations: 0.5302 MB / 3.992 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/12.83, allocations: 448.3 kB / 3.993 GB, free: 105.8 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008726/12.84, allocations: 2.176 MB / 3.995 GB, free: 105.2 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007247/12.84, allocations: 1.195 MB / 3.996 GB, free: 104.5 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/12.84, allocations: 0.5349 MB / 3.997 GB, free: 104.5 MB / 0.5265 GB Notification: Performance of SimCode: time 1.242e-06/12.84, allocations: 0 / 3.997 GB, free: 104.5 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.852/16.69, allocations: 55.64 MB / 4.051 GB, free: 100.2 MB / 0.5265 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat