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.001379/0.001379, allocations: 169.2 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.705/1.705, allocations: 221.3 MB / 235.5 MB, free: 2.859 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.0009569/0.0009569, allocations: 92.05 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.697e-05/5.741e-05, allocations: 7.938 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1622, allocations: 50.41 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.22/8.383, allocations: 2.756 GB / 3.141 GB, free: 66.99 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/8.383, allocations: 75.97 kB / 3.141 GB, free: 66.91 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.086/10.47, allocations: 0.5042 GB / 3.645 GB, free: 37.24 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.414e-06/10.47, allocations: 0 / 3.645 GB, free: 37.24 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001327/10.47, allocations: 32.2 kB / 3.645 GB, free: 37.23 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.009308/10.48, allocations: 2.203 MB / 3.647 GB, free: 36.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/10.48, allocations: 7.625 kB / 3.647 GB, free: 36.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005969/10.48, allocations: 152.7 kB / 3.647 GB, free: 35.97 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005361/10.48, allocations: 0.7102 MB / 3.648 GB, free: 35.81 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002362/10.49, allocations: 0.9195 MB / 3.649 GB, free: 35.27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.363e-05/10.49, allocations: 75.45 kB / 3.649 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003169/10.49, allocations: 99.12 kB / 3.649 GB, free: 35.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004046/10.49, allocations: 1.8 MB / 3.651 GB, free: 34.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.303e-05/10.49, allocations: 7.781 kB / 3.651 GB, free: 34.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/10.49, allocations: 52.5 kB / 3.651 GB, free: 34.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/10.49, allocations: 24.59 kB / 3.651 GB, free: 34.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004549/10.5, allocations: 1.596 MB / 3.652 GB, free: 33.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0149/10.51, allocations: 8.551 MB / 3.661 GB, free: 26.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004246/10.52, allocations: 1.826 MB / 3.663 GB, free: 25.81 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000842/10.52, allocations: 422.8 kB / 3.663 GB, free: 25.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.13/10.65, allocations: 63.23 MB / 3.725 GB, free: 8.648 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.36e-05/10.65, allocations: 47.06 kB / 3.725 GB, free: 8.594 MB / 490.7 MB Notification: Performance of pre-optimization done (n=77): time 3.707e-06/10.65, allocations: 0 / 3.725 GB, free: 8.594 MB / 490.7 MB Notification: Performance of matching and sorting (n=77): time 0.005544/10.65, allocations: 1.722 MB / 3.726 GB, free: 7.199 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/10.65, allocations: 196.4 kB / 3.727 GB, free: 6.965 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002031/10.65, allocations: 0.9239 MB / 3.728 GB, free: 6.102 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/10.66, allocations: 45.7 kB / 3.728 GB, free: 6.051 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005856/10.66, allocations: 0.57 MB / 3.728 GB, free: 5.523 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/10.66, allocations: 270.2 kB / 3.728 GB, free: 5.285 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/10.66, allocations: 20 kB / 3.728 GB, free: 5.266 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/10.66, allocations: 347.2 kB / 3.729 GB, free: 4.934 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007619/10.66, allocations: 332.5 kB / 3.729 GB, free: 4.625 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/10.66, allocations: 0.7495 MB / 3.73 GB, free: 3.707 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009683/10.66, allocations: 438.6 kB / 3.73 GB, free: 3.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.72e-05/10.66, allocations: 4 kB / 3.73 GB, free: 3.316 MB / 490.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002862/10.66, allocations: 1.314 MB / 3.731 GB, free: 2.094 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/10.66, allocations: 12 kB / 3.731 GB, free: 2.082 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/10.66, allocations: 12 kB / 3.731 GB, free: 2.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006691/10.67, allocations: 0.837 MB / 3.732 GB, free: 1.484 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/10.67, allocations: 304.1 kB / 3.733 GB, free: 1.238 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3147/10.99, allocations: 1.553 MB / 3.734 GB, free: 70.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/10.99, allocations: 161.5 kB / 3.734 GB, free: 70.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/10.99, allocations: 64.81 kB / 3.734 GB, free: 70.52 MB / 490.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.0003325/10.99, allocations: 187.4 kB / 3.735 GB, free: 70.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/10.99, allocations: 126.8 kB / 3.735 GB, free: 70.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006905/11, allocations: 4.557 MB / 3.739 GB, free: 70.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.174e-05/11, allocations: 50.89 kB / 3.739 GB, free: 70.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/11, allocations: 0 / 3.739 GB, free: 70.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/11, allocations: 9.344 kB / 3.739 GB, free: 70.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005712/11, allocations: 5.104 MB / 3.744 GB, free: 69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/11, allocations: 4.406 kB / 3.744 GB, free: 69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/11, allocations: 198.5 kB / 3.744 GB, free: 69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007344/11.01, allocations: 1.91 MB / 3.746 GB, free: 68.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/11.01, allocations: 24.7 kB / 3.746 GB, free: 68.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/11.01, allocations: 1.937 MB / 3.748 GB, free: 67.83 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/11.01, allocations: 3.406 kB / 3.748 GB, free: 67.83 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002831/11.01, allocations: 2.092 MB / 3.75 GB, free: 67.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007789/11.01, allocations: 362 kB / 3.75 GB, free: 67.19 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/11.01, allocations: 14.58 kB / 3.751 GB, free: 67.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/11.02, allocations: 65.67 kB / 3.751 GB, free: 67.19 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/11.02, allocations: 51.06 kB / 3.751 GB, free: 67.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-05/11.02, allocations: 33.44 kB / 3.751 GB, free: 67.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001363/11.02, allocations: 0.8876 MB / 3.752 GB, free: 67.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/11.02, allocations: 0 / 3.752 GB, free: 67.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006105/11.02, allocations: 1.349 MB / 3.753 GB, free: 67.03 MB / 490.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.01166/11.03, allocations: 4.375 MB / 3.757 GB, free: 65.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003672/11.04, allocations: 1.343 MB / 3.758 GB, free: 65.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/11.04, allocations: 5 kB / 3.758 GB, free: 65.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/11.04, allocations: 0.9464 MB / 3.759 GB, free: 65.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/11.04, allocations: 0.6804 MB / 3.76 GB, free: 65.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00675/11.05, allocations: 2.96 MB / 3.763 GB, free: 65.21 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/11.05, allocations: 1.351 MB / 3.764 GB, free: 64.48 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001278/11.05, allocations: 0.621 MB / 3.765 GB, free: 64.46 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000944/11.05, allocations: 0.6509 MB / 3.765 GB, free: 64.46 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/11.05, allocations: 2.469 kB / 3.765 GB, free: 64.46 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.163/12.22, allocations: 73.8 MB / 3.838 GB, free: 60.88 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/12.22, allocations: 226.1 kB / 3.838 GB, free: 60.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.552/16.77, allocations: 0 / 3.838 GB, free: 60.6 MB / 490.7 MB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat