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.00114/0.00114, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008634/0.0008634, allocations: 105.1 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002523, allocations: 8 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2219, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.71/4.932, allocations: 2.756 GB / 3.156 GB, free: 147.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/4.932, allocations: 80.5 kB / 3.156 GB, free: 147.4 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 1.565/6.498, allocations: 0.506 GB / 3.662 GB, free: 45.05 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.046e-06/6.498, allocations: 0 / 3.662 GB, free: 45.05 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.941e-05/6.498, allocations: 30.31 kB / 3.662 GB, free: 45.05 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.007977/6.506, allocations: 2.349 MB / 3.665 GB, free: 44.14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/6.506, allocations: 7.656 kB / 3.665 GB, free: 44.14 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002108/6.506, allocations: 153.7 kB / 3.665 GB, free: 44.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00464/6.511, allocations: 0.7184 MB / 3.666 GB, free: 44.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/6.512, allocations: 0.9251 MB / 3.666 GB, free: 43.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/6.512, allocations: 76.77 kB / 3.667 GB, free: 43.73 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/6.512, allocations: 98.25 kB / 3.667 GB, free: 43.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/6.515, allocations: 1.708 MB / 3.668 GB, free: 43.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/6.515, allocations: 4.875 kB / 3.668 GB, free: 43.32 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/6.515, allocations: 46.78 kB / 3.668 GB, free: 43.32 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/6.516, allocations: 29.09 kB / 3.668 GB, free: 43.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002846/6.518, allocations: 1.518 MB / 3.67 GB, free: 43.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008028/6.526, allocations: 8.547 MB / 3.678 GB, free: 37.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/6.529, allocations: 1.734 MB / 3.68 GB, free: 36.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1062/6.635, allocations: 69.96 MB / 3.748 GB, free: 22.76 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/6.635, allocations: 46.81 kB / 3.748 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=77): time 2.314e-06/6.635, allocations: 0 / 3.748 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=77): time 0.004896/6.64, allocations: 2.114 MB / 3.75 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.467e-05/6.64, allocations: 192.7 kB / 3.751 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/6.641, allocations: 0.9372 MB / 3.751 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.036e-05/6.641, allocations: 38.27 kB / 3.751 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/6.642, allocations: 0.5688 MB / 3.752 GB, free: 21.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/6.642, allocations: 280.6 kB / 3.752 GB, free: 21.67 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/6.642, allocations: 22.53 kB / 3.752 GB, free: 21.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001246/6.642, allocations: 349.3 kB / 3.753 GB, free: 21.36 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004706/6.643, allocations: 344.3 kB / 3.753 GB, free: 21.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006386/6.643, allocations: 0.7557 MB / 3.754 GB, free: 20.83 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005705/6.644, allocations: 452.7 kB / 3.754 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/6.644, allocations: 3.75 kB / 3.754 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001696/6.645, allocations: 1.329 MB / 3.755 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/6.645, allocations: 11.56 kB / 3.755 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/6.645, allocations: 15.28 kB / 3.755 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005935/6.651, allocations: 0.8498 MB / 3.756 GB, free: 20.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/6.653, allocations: 302.5 kB / 3.757 GB, free: 20.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/6.654, allocations: 1.551 MB / 3.758 GB, free: 19.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009808/6.655, allocations: 164.6 kB / 3.758 GB, free: 19.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.239e-05/6.655, allocations: 66.84 kB / 3.758 GB, free: 19.45 MB / 0.4948 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 () * Number of clocked 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.0004416/6.655, allocations: 296.9 kB / 3.759 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/6.655, allocations: 127.8 kB / 3.759 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003942/6.659, allocations: 4.581 MB / 3.763 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.373e-05/6.659, allocations: 43.5 kB / 3.763 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/6.659, allocations: 2.344 kB / 3.763 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/6.659, allocations: 6.703 kB / 3.763 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004839/6.664, allocations: 5.128 MB / 3.768 GB, free: 17.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/6.664, allocations: 7.672 kB / 3.768 GB, free: 17.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009574/6.665, allocations: 188.2 kB / 3.768 GB, free: 17.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006259/6.672, allocations: 1.917 MB / 3.77 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.534e-05/6.672, allocations: 22.91 kB / 3.77 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/6.673, allocations: 1.935 MB / 3.772 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/6.673, allocations: 0 / 3.772 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/6.675, allocations: 2.113 MB / 3.774 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005004/6.676, allocations: 363.7 kB / 3.775 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/6.676, allocations: 19.3 kB / 3.775 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000656/6.677, allocations: 61.67 kB / 3.775 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/6.677, allocations: 52.19 kB / 3.775 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/6.677, allocations: 33.69 kB / 3.775 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009778/6.678, allocations: 0.9046 MB / 3.776 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/6.678, allocations: 1.219 kB / 3.776 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004803/6.682, allocations: 1.361 MB / 3.777 GB, free: 15.47 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.008318/6.691, allocations: 4.393 MB / 3.781 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002609/6.693, allocations: 1.355 MB / 3.783 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/6.693, allocations: 0 / 3.783 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001631/6.695, allocations: 0.9634 MB / 3.784 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/6.698, allocations: 0.6888 MB / 3.784 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/6.713, allocations: 17.83 MB / 3.802 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007055/6.713, allocations: 1.348 MB / 3.803 GB, free: 16.95 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001269/6.715, allocations: 0.6158 MB / 3.804 GB, free: 16.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/6.715, allocations: 0.6515 MB / 3.804 GB, free: 16.89 MB / 0.5105 GB Notification: Performance of SimCode: time 6.52e-07/6.715, allocations: 0 / 3.804 GB, free: 16.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3196/7.035, allocations: 70.73 MB / 3.873 GB, free: 87.74 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/7.035, allocations: 257.5 kB / 3.874 GB, free: 87.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.28/11.31, allocations: 1.875 kB / 3.874 GB, free: 87.41 MB / 0.5105 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat