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.001211/0.001211, allocations: 180 kB / 17.01 MB, free: 5.125 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.772/1.772, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.001025/0.001025, allocations: 94.61 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003611, allocations: 7.984 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3164, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.328/6.644, allocations: 2.751 GB / 3.118 GB, free: 134 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/6.644, allocations: 84.45 kB / 3.118 GB, free: 134 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.714/8.359, allocations: 0.5004 GB / 3.618 GB, free: 39.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.734e-06/8.359, allocations: 0 / 3.618 GB, free: 39.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.795e-05/8.359, allocations: 34.47 kB / 3.618 GB, free: 39.97 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.01043/8.369, allocations: 2.327 MB / 3.62 GB, free: 38.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/8.369, allocations: 8.969 kB / 3.62 GB, free: 38.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004402/8.37, allocations: 155.9 kB / 3.621 GB, free: 38.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005256/8.375, allocations: 0.7128 MB / 3.621 GB, free: 38.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/8.377, allocations: 0.9335 MB / 3.622 GB, free: 38.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.977e-05/8.378, allocations: 73.11 kB / 3.622 GB, free: 38.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/8.378, allocations: 97.97 kB / 3.622 GB, free: 38.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003715/8.381, allocations: 1.713 MB / 3.624 GB, free: 38.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/8.381, allocations: 3.828 kB / 3.624 GB, free: 38.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/8.382, allocations: 52.28 kB / 3.624 GB, free: 38.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.45e-05/8.382, allocations: 26.44 kB / 3.624 GB, free: 38.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003445/8.385, allocations: 1.517 MB / 3.626 GB, free: 38.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/8.395, allocations: 8.545 MB / 3.634 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002657/8.398, allocations: 1.729 MB / 3.636 GB, free: 31.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1068/8.505, allocations: 62.98 MB / 3.697 GB, free: 24.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/8.505, allocations: 49.03 kB / 3.697 GB, free: 24.51 MB / 474.7 MB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/8.505, allocations: 0 / 3.697 GB, free: 24.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=77): time 0.005421/8.51, allocations: 2.115 MB / 3.699 GB, free: 24.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.783e-05/8.51, allocations: 192.1 kB / 3.699 GB, free: 24.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/8.512, allocations: 0.9355 MB / 3.7 GB, free: 23.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.437e-05/8.512, allocations: 40.55 kB / 3.7 GB, free: 23.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/8.512, allocations: 0.5663 MB / 3.701 GB, free: 23.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/8.512, allocations: 274.5 kB / 3.701 GB, free: 23.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/8.512, allocations: 22.44 kB / 3.701 GB, free: 23.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/8.512, allocations: 356.9 kB / 3.702 GB, free: 23.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/8.513, allocations: 342.3 kB / 3.702 GB, free: 23.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/8.514, allocations: 0.7589 MB / 3.703 GB, free: 22.62 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006128/8.514, allocations: 446.5 kB / 3.703 GB, free: 22.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/8.514, allocations: 3.969 kB / 3.703 GB, free: 22.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002044/8.516, allocations: 1.337 MB / 3.704 GB, free: 22.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/8.516, allocations: 10.34 kB / 3.704 GB, free: 22.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/8.516, allocations: 16.62 kB / 3.704 GB, free: 22.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00615/8.523, allocations: 0.8414 MB / 3.705 GB, free: 22.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/8.524, allocations: 308.1 kB / 3.706 GB, free: 22.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/8.525, allocations: 1.551 MB / 3.707 GB, free: 21.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/8.527, allocations: 162.6 kB / 3.707 GB, free: 21.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/8.527, allocations: 72.67 kB / 3.707 GB, free: 21.23 MB / 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 () * 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.0006094/8.528, allocations: 294.2 kB / 3.708 GB, free: 21.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/8.528, allocations: 118.9 kB / 3.708 GB, free: 21.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004141/8.532, allocations: 4.579 MB / 3.712 GB, free: 20.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/8.532, allocations: 45.42 kB / 3.712 GB, free: 20.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/8.532, allocations: 0 / 3.712 GB, free: 20.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/8.532, allocations: 6.422 kB / 3.712 GB, free: 20.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005589/8.538, allocations: 5.136 MB / 3.717 GB, free: 19.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/8.538, allocations: 3.594 kB / 3.717 GB, free: 19.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/8.539, allocations: 191 kB / 3.717 GB, free: 19.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006778/8.546, allocations: 1.917 MB / 3.719 GB, free: 19.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/8.546, allocations: 20.02 kB / 3.719 GB, free: 19.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/8.547, allocations: 1.938 MB / 3.721 GB, free: 18.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/8.547, allocations: 0 / 3.721 GB, free: 18.25 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/8.55, allocations: 2.113 MB / 3.723 GB, free: 17.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006827/8.55, allocations: 366.6 kB / 3.724 GB, free: 17.56 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/8.551, allocations: 19.52 kB / 3.724 GB, free: 17.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006924/8.551, allocations: 61.23 kB / 3.724 GB, free: 17.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.993e-05/8.551, allocations: 54.05 kB / 3.724 GB, free: 17.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.418e-05/8.551, allocations: 35.27 kB / 3.724 GB, free: 17.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001145/8.553, allocations: 0.8988 MB / 3.725 GB, free: 17.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/8.553, allocations: 0 / 3.725 GB, free: 17.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006299/8.559, allocations: 1.346 MB / 3.726 GB, free: 17.25 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 () * 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.01178/8.571, allocations: 4.384 MB / 3.73 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003321/8.574, allocations: 1.361 MB / 3.732 GB, free: 15.87 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/8.574, allocations: 4.375 kB / 3.732 GB, free: 15.87 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/8.576, allocations: 0.9581 MB / 3.732 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/8.579, allocations: 0.6768 MB / 3.733 GB, free: 15.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01795/8.597, allocations: 17.83 MB / 3.751 GB, free: 16.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/8.598, allocations: 1.351 MB / 3.752 GB, free: 15.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00146/8.6, allocations: 0.6101 MB / 3.752 GB, free: 15.26 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006751/8.6, allocations: 0.6539 MB / 3.753 GB, free: 15.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.203e-06/8.6, allocations: 0 / 3.753 GB, free: 15.16 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3567/8.957, allocations: 70.64 MB / 3.822 GB, free: 74.47 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/8.957, allocations: 258.2 kB / 3.822 GB, free: 74.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.368/13.33, allocations: 0.5625 kB / 3.822 GB, free: 74.12 MB / 490.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