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.001373/0.001373, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009592/0.0009592, allocations: 86.7 kB / 268 MB, free: 14.06 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.931e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 47.58 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.343/6.445, allocations: 2.75 GB / 3.112 GB, free: 71.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/6.445, allocations: 75.55 kB / 3.112 GB, free: 71.18 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.815/8.26, allocations: 0.4987 GB / 3.611 GB, free: 37.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.343e-06/8.26, allocations: 0 / 3.611 GB, free: 37.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.174e-05/8.26, allocations: 30.31 kB / 3.611 GB, free: 37.9 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.007692/8.268, allocations: 2.195 MB / 3.613 GB, free: 36.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/8.268, allocations: 11.62 kB / 3.613 GB, free: 36.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002247/8.268, allocations: 154.4 kB / 3.613 GB, free: 36.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004777/8.273, allocations: 0.7116 MB / 3.614 GB, free: 36.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/8.275, allocations: 0.9186 MB / 3.615 GB, free: 35.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/8.275, allocations: 77.7 kB / 3.615 GB, free: 35.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/8.275, allocations: 94.69 kB / 3.615 GB, free: 35.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003188/8.278, allocations: 1.812 MB / 3.617 GB, free: 34.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/8.278, allocations: 3.938 kB / 3.617 GB, free: 34.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/8.278, allocations: 51.19 kB / 3.617 GB, free: 34.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/8.278, allocations: 29.59 kB / 3.617 GB, free: 34.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/8.281, allocations: 1.61 MB / 3.618 GB, free: 34.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008162/8.289, allocations: 8.532 MB / 3.626 GB, free: 27.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/8.292, allocations: 1.825 MB / 3.628 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/8.293, allocations: 431.6 kB / 3.629 GB, free: 26.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1129/8.406, allocations: 63.21 MB / 3.69 GB, free: 9.367 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.682e-05/8.406, allocations: 47.08 kB / 3.69 GB, free: 9.312 MB / 474.7 MB Notification: Performance of pre-optimization done (n=77): time 2.765e-06/8.406, allocations: 0 / 3.69 GB, free: 9.312 MB / 474.7 MB Notification: Performance of matching and sorting (n=77): time 0.004999/8.411, allocations: 1.723 MB / 3.692 GB, free: 7.918 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/8.411, allocations: 192.5 kB / 3.692 GB, free: 7.688 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/8.413, allocations: 0.9184 MB / 3.693 GB, free: 6.828 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/8.413, allocations: 41.7 kB / 3.693 GB, free: 6.781 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/8.413, allocations: 0.573 MB / 3.694 GB, free: 6.254 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/8.414, allocations: 276.6 kB / 3.694 GB, free: 6.012 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/8.414, allocations: 28 kB / 3.694 GB, free: 5.984 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/8.414, allocations: 341.5 kB / 3.694 GB, free: 5.656 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006079/8.414, allocations: 337.6 kB / 3.695 GB, free: 5.34 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008652/8.415, allocations: 0.744 MB / 3.695 GB, free: 4.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008264/8.416, allocations: 445.6 kB / 3.696 GB, free: 4.039 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/8.416, allocations: 4 kB / 3.696 GB, free: 4.035 MB / 474.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002449/8.419, allocations: 1.313 MB / 3.697 GB, free: 2.812 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/8.419, allocations: 16.03 kB / 3.697 GB, free: 2.797 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/8.419, allocations: 15.95 kB / 3.697 GB, free: 2.781 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006476/8.425, allocations: 0.833 MB / 3.698 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/8.427, allocations: 298.1 kB / 3.698 GB, free: 1.961 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/8.428, allocations: 1.554 MB / 3.7 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/8.43, allocations: 172 kB / 3.7 GB, free: 260 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/8.43, allocations: 63.61 kB / 3.7 GB, free: 200 kB / 474.7 MB 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.0003844/8.43, allocations: 191.6 kB / 3.7 GB, free: 4 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3023/8.733, allocations: 121.7 kB / 3.7 GB, free: 71.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005974/8.739, allocations: 4.549 MB / 3.705 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-05/8.739, allocations: 46.31 kB / 3.705 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/8.739, allocations: 0 / 3.705 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/8.739, allocations: 9.406 kB / 3.705 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006297/8.745, allocations: 5.113 MB / 3.71 GB, free: 70.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-06/8.745, allocations: 3.094 kB / 3.71 GB, free: 70.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000999/8.746, allocations: 193.8 kB / 3.71 GB, free: 70.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007042/8.753, allocations: 1.905 MB / 3.712 GB, free: 70.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/8.753, allocations: 23.98 kB / 3.712 GB, free: 70.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/8.755, allocations: 1.938 MB / 3.714 GB, free: 69.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/8.755, allocations: 0 / 3.714 GB, free: 69.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/8.758, allocations: 2.096 MB / 3.716 GB, free: 68.72 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008578/8.759, allocations: 360.1 kB / 3.716 GB, free: 68.53 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/8.759, allocations: 20.41 kB / 3.716 GB, free: 68.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/8.76, allocations: 65.22 kB / 3.716 GB, free: 68.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/8.76, allocations: 54.02 kB / 3.716 GB, free: 68.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.79e-05/8.76, allocations: 30.25 kB / 3.716 GB, free: 68.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001488/8.762, allocations: 0.886 MB / 3.717 GB, free: 68.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/8.762, allocations: 0 / 3.717 GB, free: 68.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007341/8.769, allocations: 1.351 MB / 3.719 GB, free: 68.39 MB / 474.7 MB 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 () * 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.01322/8.782, allocations: 4.357 MB / 3.723 GB, free: 67.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/8.786, allocations: 1.341 MB / 3.724 GB, free: 67.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/8.786, allocations: 0 / 3.724 GB, free: 67.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/8.788, allocations: 0.9582 MB / 3.725 GB, free: 67.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003941/8.792, allocations: 0.6847 MB / 3.726 GB, free: 67.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007455/8.799, allocations: 2.965 MB / 3.729 GB, free: 66.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008994/8.8, allocations: 1.353 MB / 3.73 GB, free: 65.87 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001516/8.802, allocations: 0.6102 MB / 3.731 GB, free: 65.85 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007253/8.803, allocations: 0.6485 MB / 3.731 GB, free: 65.84 MB / 474.7 MB Notification: Performance of SimCode: time 2.094e-06/8.803, allocations: 2.969 kB / 3.731 GB, free: 65.84 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1194/8.922, allocations: 73.77 MB / 3.803 GB, free: 61.92 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/8.922, allocations: 229.6 kB / 3.803 GB, free: 61.66 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.356/13.28, allocations: 3.938 kB / 3.803 GB, free: 61.66 MB / 474.7 MB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat