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.001404/0.001405, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.585/1.585, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001028, allocations: 89.73 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3201, allocations: 50.42 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.984/7.305, allocations: 2.756 GB / 3.148 GB, free: 106.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/7.305, allocations: 85.17 kB / 3.148 GB, free: 106.4 MB / 458.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 1.548/8.853, allocations: 0.5059 GB / 3.654 GB, free: 10.78 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.903e-06/8.853, allocations: 3.938 kB / 3.654 GB, free: 10.78 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.122e-05/8.853, allocations: 31.91 kB / 3.654 GB, free: 10.75 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.009305/8.863, allocations: 2.33 MB / 3.656 GB, free: 8.391 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/8.863, allocations: 8.031 kB / 3.656 GB, free: 8.383 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004215/8.863, allocations: 160.3 kB / 3.656 GB, free: 8.219 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005312/8.868, allocations: 0.7078 MB / 3.657 GB, free: 7.516 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/8.871, allocations: 0.9339 MB / 3.658 GB, free: 6.559 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/8.871, allocations: 74.02 kB / 3.658 GB, free: 6.484 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/8.871, allocations: 96 kB / 3.658 GB, free: 6.391 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003727/8.875, allocations: 1.707 MB / 3.66 GB, free: 4.531 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/8.875, allocations: 4 kB / 3.66 GB, free: 4.527 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/8.875, allocations: 50.75 kB / 3.66 GB, free: 4.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/8.875, allocations: 28 kB / 3.66 GB, free: 4.453 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003366/8.878, allocations: 1.518 MB / 3.661 GB, free: 2.934 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3038/9.182, allocations: 8.543 MB / 3.67 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/9.185, allocations: 1.728 MB / 3.671 GB, free: 39.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1103/9.295, allocations: 62.99 MB / 3.733 GB, free: 33.28 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.171e-05/9.295, allocations: 49.31 kB / 3.733 GB, free: 33.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=77): time 4.859e-06/9.295, allocations: 0 / 3.733 GB, free: 33.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=77): time 0.00604/9.301, allocations: 2.115 MB / 3.735 GB, free: 33.03 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/9.301, allocations: 188 kB / 3.735 GB, free: 32.81 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/9.303, allocations: 0.9357 MB / 3.736 GB, free: 32.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.823e-05/9.303, allocations: 37.86 kB / 3.736 GB, free: 32.63 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004852/9.304, allocations: 0.5726 MB / 3.737 GB, free: 32.42 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/9.304, allocations: 272.8 kB / 3.737 GB, free: 32.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/9.304, allocations: 19.53 kB / 3.737 GB, free: 32.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002049/9.304, allocations: 352.1 kB / 3.737 GB, free: 31.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005348/9.305, allocations: 343.3 kB / 3.738 GB, free: 31.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007761/9.305, allocations: 0.7572 MB / 3.738 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006597/9.306, allocations: 457.5 kB / 3.739 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/9.306, allocations: 3.25 kB / 3.739 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001916/9.308, allocations: 1.342 MB / 3.74 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/9.308, allocations: 10.34 kB / 3.74 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/9.308, allocations: 15.91 kB / 3.74 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006144/9.314, allocations: 0.8347 MB / 3.741 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/9.316, allocations: 300 kB / 3.741 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/9.317, allocations: 1.553 MB / 3.743 GB, free: 30.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/9.318, allocations: 172.2 kB / 3.743 GB, free: 30.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.841e-05/9.318, allocations: 65.59 kB / 3.743 GB, free: 30.11 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.0005874/9.319, allocations: 293.5 kB / 3.743 GB, free: 30 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/9.319, allocations: 120.5 kB / 3.743 GB, free: 29.94 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004148/9.323, allocations: 4.576 MB / 3.748 GB, free: 29.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-05/9.323, allocations: 50.5 kB / 3.748 GB, free: 29.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/9.323, allocations: 2.078 kB / 3.748 GB, free: 29.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/9.323, allocations: 10.66 kB / 3.748 GB, free: 29.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/9.329, allocations: 5.127 MB / 3.753 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/9.329, allocations: 6.016 kB / 3.753 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/9.33, allocations: 185.6 kB / 3.753 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006542/9.336, allocations: 1.915 MB / 3.755 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/9.336, allocations: 24.09 kB / 3.755 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/9.338, allocations: 1.937 MB / 3.757 GB, free: 27.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/9.338, allocations: 0 / 3.757 GB, free: 27.26 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/9.34, allocations: 2.121 MB / 3.759 GB, free: 26.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006273/9.341, allocations: 360.8 kB / 3.759 GB, free: 26.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/9.341, allocations: 18.06 kB / 3.759 GB, free: 26.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006359/9.342, allocations: 61.47 kB / 3.759 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.081e-05/9.342, allocations: 57.45 kB / 3.759 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.004e-05/9.342, allocations: 31.84 kB / 3.759 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001094/9.343, allocations: 0.9016 MB / 3.76 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.51e-07/9.343, allocations: 0 / 3.76 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005625/9.349, allocations: 1.348 MB / 3.762 GB, free: 26.41 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.009661/9.358, allocations: 4.399 MB / 3.766 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003076/9.361, allocations: 1.361 MB / 3.767 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/9.361, allocations: 3.312 kB / 3.767 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/9.363, allocations: 0.9577 MB / 3.768 GB, free: 25.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003246/9.366, allocations: 0.6794 MB / 3.769 GB, free: 25.09 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02041/9.387, allocations: 17.82 MB / 3.786 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009914/9.388, allocations: 1.357 MB / 3.788 GB, free: 28.15 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001661/9.39, allocations: 0.6144 MB / 3.788 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007548/9.39, allocations: 0.6576 MB / 3.789 GB, free: 28.09 MB / 0.5105 GB Notification: Performance of SimCode: time 1.874e-06/9.39, allocations: 0 / 3.789 GB, free: 28.09 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/9.503, allocations: 70.66 MB / 3.858 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/9.503, allocations: 272.8 kB / 3.858 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.575/14.08, allocations: 0 / 3.858 GB, free: 1.832 MB / 0.5105 GB (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