Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_cpp_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.001545/0.001545, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001166/0.001166, allocations: 93.92 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.000407, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3501, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.018/8.368, allocations: 2.751 GB / 3.116 GB, free: 41.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/8.368, allocations: 90.38 kB / 3.117 GB, free: 41.66 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 2.607/10.98, allocations: 0.5004 GB / 3.617 GB, free: 14.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/10.98, allocations: 0 / 3.617 GB, free: 14.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.098e-05/10.98, allocations: 34.98 kB / 3.617 GB, free: 14.52 MB / 426.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.01032/10.99, allocations: 2.333 MB / 3.619 GB, free: 12.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/10.99, allocations: 8.031 kB / 3.619 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004711/10.99, allocations: 164.3 kB / 3.619 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0076/10.99, allocations: 0.7075 MB / 3.62 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/11, allocations: 0.9297 MB / 3.621 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/11, allocations: 77.92 kB / 3.621 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/11, allocations: 96 kB / 3.621 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/11, allocations: 1.706 MB / 3.623 GB, free: 8.293 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.897e-05/11, allocations: 10.88 kB / 3.623 GB, free: 8.285 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001717/11, allocations: 44 kB / 3.623 GB, free: 8.242 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/11, allocations: 31.95 kB / 3.623 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004747/11.01, allocations: 1.514 MB / 3.624 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/11.02, allocations: 8.544 MB / 3.633 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004859/11.03, allocations: 1.729 MB / 3.634 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5334/11.56, allocations: 62.97 MB / 3.696 GB, free: 26.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/11.56, allocations: 50.03 kB / 3.696 GB, free: 26.21 MB / 458.7 MB Notification: Performance of pre-optimization done (n=77): time 4.829e-06/11.56, allocations: 4 kB / 3.696 GB, free: 26.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=77): time 0.009032/11.57, allocations: 2.107 MB / 3.698 GB, free: 26.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/11.57, allocations: 198.4 kB / 3.698 GB, free: 25.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/11.57, allocations: 0.9355 MB / 3.699 GB, free: 25.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002286/11.57, allocations: 40.45 kB / 3.699 GB, free: 25.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004546/11.57, allocations: 0.5618 MB / 3.7 GB, free: 25.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003162/11.57, allocations: 278.2 kB / 3.7 GB, free: 25.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/11.57, allocations: 22.41 kB / 3.7 GB, free: 25.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/11.57, allocations: 351 kB / 3.7 GB, free: 24.94 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009803/11.57, allocations: 343.1 kB / 3.701 GB, free: 24.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/11.57, allocations: 0.7639 MB / 3.701 GB, free: 24.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/11.58, allocations: 446.6 kB / 3.702 GB, free: 24.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/11.58, allocations: 3.906 kB / 3.702 GB, free: 24.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003372/11.58, allocations: 1.264 MB / 3.703 GB, free: 24.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/11.58, allocations: 11.41 kB / 3.703 GB, free: 24.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/11.58, allocations: 15.8 kB / 3.703 GB, free: 24.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01213/11.59, allocations: 0.8416 MB / 3.704 GB, free: 24.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002645/11.59, allocations: 302 kB / 3.704 GB, free: 24.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/11.6, allocations: 1.557 MB / 3.706 GB, free: 23.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/11.6, allocations: 169.7 kB / 3.706 GB, free: 23.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/11.6, allocations: 66.56 kB / 3.706 GB, free: 23.12 MB / 458.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.0008422/11.6, allocations: 285.6 kB / 3.706 GB, free: 23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/11.6, allocations: 121.1 kB / 3.706 GB, free: 22.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006936/11.61, allocations: 4.576 MB / 3.711 GB, free: 22.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-05/11.61, allocations: 46.81 kB / 3.711 GB, free: 22.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/11.61, allocations: 3.688 kB / 3.711 GB, free: 22.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/11.61, allocations: 7.094 kB / 3.711 GB, free: 22.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008893/11.62, allocations: 5.124 MB / 3.716 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/11.62, allocations: 0 / 3.716 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/11.62, allocations: 192.9 kB / 3.716 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01304/11.63, allocations: 1.921 MB / 3.718 GB, free: 21.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001911/11.63, allocations: 21.88 kB / 3.718 GB, free: 21.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/11.63, allocations: 1.928 MB / 3.72 GB, free: 20.26 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/11.63, allocations: 4.672 kB / 3.72 GB, free: 20.26 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/11.64, allocations: 2.119 MB / 3.722 GB, free: 19.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007821/11.64, allocations: 364.3 kB / 3.722 GB, free: 19.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003174/11.64, allocations: 16.97 kB / 3.722 GB, free: 19.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/11.64, allocations: 63.03 kB / 3.722 GB, free: 19.55 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/11.64, allocations: 54.33 kB / 3.722 GB, free: 19.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.799e-05/11.64, allocations: 37.34 kB / 3.722 GB, free: 19.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001662/11.64, allocations: 0.9006 MB / 3.723 GB, free: 19.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/11.64, allocations: 0 / 3.723 GB, free: 19.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006554/11.65, allocations: 1.344 MB / 3.725 GB, free: 19.38 MB / 458.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.0146/11.66, allocations: 4.386 MB / 3.729 GB, free: 18.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005051/11.67, allocations: 1.361 MB / 3.73 GB, free: 18.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/11.67, allocations: 3.188 kB / 3.73 GB, free: 18.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003857/11.67, allocations: 0.9856 MB / 3.731 GB, free: 18.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006215/11.68, allocations: 0.6716 MB / 3.732 GB, free: 18.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02529/11.7, allocations: 17.86 MB / 3.749 GB, free: 21.83 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/11.7, allocations: 1.348 MB / 3.751 GB, free: 21.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/11.71, allocations: 0.655 MB / 3.751 GB, free: 21.09 MB / 474.7 MB Notification: Performance of SimCode: time 2.134e-06/11.71, allocations: 4 kB / 3.751 GB, free: 21.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.159/16.86, allocations: 59.9 MB / 3.81 GB, free: 2.398 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat