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.001527/0.001528, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 90.86 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.378e-05/5.381e-05, allocations: 0 / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1629, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.299/8.462, allocations: 2.756 GB / 3.149 GB, free: 52.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/8.462, allocations: 81.73 kB / 3.149 GB, free: 52.67 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.981/10.44, allocations: 0.5042 GB / 3.653 GB, free: 42.31 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.353e-06/10.44, allocations: 1.641 kB / 3.653 GB, free: 42.31 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.466e-05/10.44, allocations: 29.12 kB / 3.653 GB, free: 42.31 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.00947/10.45, allocations: 2.211 MB / 3.656 GB, free: 41.14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/10.45, allocations: 7.625 kB / 3.656 GB, free: 41.14 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002373/10.45, allocations: 156.6 kB / 3.656 GB, free: 41.04 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004829/10.46, allocations: 0.7086 MB / 3.656 GB, free: 40.88 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001701/10.46, allocations: 0.9243 MB / 3.657 GB, free: 40.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/10.46, allocations: 76.89 kB / 3.657 GB, free: 40.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/10.46, allocations: 98.78 kB / 3.657 GB, free: 40.27 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/10.46, allocations: 1.8 MB / 3.659 GB, free: 39.37 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/10.46, allocations: 7.812 kB / 3.659 GB, free: 39.37 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/10.46, allocations: 46.66 kB / 3.659 GB, free: 39.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/10.46, allocations: 33.27 kB / 3.659 GB, free: 39.33 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002819/10.47, allocations: 1.6 MB / 3.661 GB, free: 38.82 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009441/10.48, allocations: 8.533 MB / 3.669 GB, free: 32.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/10.48, allocations: 1.824 MB / 3.671 GB, free: 30.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005259/10.48, allocations: 424.4 kB / 3.671 GB, free: 30.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1225/10.6, allocations: 70.2 MB / 3.74 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.955e-05/10.6, allocations: 51.08 kB / 3.74 GB, free: 6.367 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=77): time 3.446e-06/10.6, allocations: 0 / 3.74 GB, free: 6.367 MB / 0.4948 GB Notification: Performance of matching and sorting (n=77): time 0.004589/10.61, allocations: 1.724 MB / 3.742 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/10.61, allocations: 188.5 kB / 3.742 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/10.61, allocations: 0.9307 MB / 3.743 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001037/10.61, allocations: 37.7 kB / 3.743 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004421/10.61, allocations: 0.5678 MB / 3.743 GB, free: 3.309 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/10.61, allocations: 273.9 kB / 3.744 GB, free: 3.062 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-05/10.61, allocations: 24 kB / 3.744 GB, free: 3.039 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001486/10.61, allocations: 344.1 kB / 3.744 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005703/10.61, allocations: 336.9 kB / 3.744 GB, free: 2.395 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/10.61, allocations: 0.7482 MB / 3.745 GB, free: 1.488 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007144/10.61, allocations: 447.1 kB / 3.745 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/10.61, allocations: 4 kB / 3.745 GB, free: 1.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.3666/10.98, allocations: 1.347 MB / 3.747 GB, free: 75.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.949e-05/10.98, allocations: 16.39 kB / 3.747 GB, free: 75.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.489e-05/10.98, allocations: 12.59 kB / 3.747 GB, free: 75.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007045/10.99, allocations: 0.8359 MB / 3.748 GB, free: 75.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/10.99, allocations: 300.2 kB / 3.748 GB, free: 75.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/10.99, allocations: 1.546 MB / 3.749 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/10.99, allocations: 164.3 kB / 3.75 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.169e-05/10.99, allocations: 62.97 kB / 3.75 GB, free: 74.84 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 () * 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.0002285/10.99, allocations: 193.5 kB / 3.75 GB, free: 74.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/10.99, allocations: 126.7 kB / 3.75 GB, free: 74.72 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/10.99, allocations: 4.551 MB / 3.754 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.839e-05/10.99, allocations: 44 kB / 3.754 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/10.99, allocations: 3.953 kB / 3.754 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/10.99, allocations: 9.625 kB / 3.754 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005515/11, allocations: 5.116 MB / 3.759 GB, free: 73.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/11, allocations: 1.531 kB / 3.759 GB, free: 73.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009999/11, allocations: 191 kB / 3.76 GB, free: 73.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006895/11.01, allocations: 1.916 MB / 3.761 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/11.01, allocations: 24.45 kB / 3.761 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/11.01, allocations: 1.932 MB / 3.763 GB, free: 72.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/11.01, allocations: 0 / 3.763 GB, free: 72.12 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/11.01, allocations: 2.096 MB / 3.765 GB, free: 71.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007523/11.01, allocations: 358.9 kB / 3.766 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/11.01, allocations: 21.08 kB / 3.766 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007384/11.01, allocations: 60.72 kB / 3.766 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/11.01, allocations: 57.25 kB / 3.766 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.722e-05/11.01, allocations: 28.28 kB / 3.766 GB, free: 71.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001133/11.01, allocations: 0.8903 MB / 3.767 GB, free: 71.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.523e-06/11.01, allocations: 0 / 3.767 GB, free: 71.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00665/11.02, allocations: 1.356 MB / 3.768 GB, free: 71.33 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 () * 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.01193/11.03, allocations: 4.384 MB / 3.772 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003326/11.04, allocations: 1.337 MB / 3.774 GB, free: 70.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/11.04, allocations: 0 / 3.774 GB, free: 70.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001887/11.04, allocations: 0.9459 MB / 3.775 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/11.04, allocations: 0.6857 MB / 3.775 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009243/11.05, allocations: 2.963 MB / 3.778 GB, free: 69.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/11.05, allocations: 1.357 MB / 3.78 GB, free: 68.78 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001906/11.06, allocations: 0.6091 MB / 3.78 GB, free: 68.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/11.06, allocations: 0.6514 MB / 3.781 GB, free: 68.76 MB / 0.4948 GB Notification: Performance of SimCode: time 1.814e-06/11.06, allocations: 0 / 3.781 GB, free: 68.76 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1483/11.2, allocations: 73.86 MB / 3.853 GB, free: 65.37 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/11.2, allocations: 229.5 kB / 3.853 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.456/15.66, allocations: 0.6562 kB / 3.853 GB, free: 65.14 MB / 0.4948 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