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: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001573/0.001573, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001193/0.001192, allocations: 91.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.264e-05/2.257e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3537, allocations: 47.57 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.08/8.434, allocations: 2.75 GB / 3.104 GB, free: 86.12 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/8.434, allocations: 84.53 kB / 3.104 GB, free: 86.12 MB / 427.1 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.686/11.12, allocations: 499.1 MB / 3.591 GB, free: 39.96 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.743e-06/11.12, allocations: 0 / 3.591 GB, free: 39.96 MB / 443.1 MB Notification: Performance of Transformations before backend: time 0.0001034/11.12, allocations: 29.17 kB / 3.591 GB, free: 39.96 MB / 443.1 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.01049/11.13, allocations: 2.193 MB / 3.593 GB, free: 39.14 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/11.13, allocations: 16.23 kB / 3.593 GB, free: 39.14 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007583/11.14, allocations: 0.7059 MB / 3.594 GB, free: 39.07 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002969/11.14, allocations: 0.9321 MB / 3.595 GB, free: 38.76 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/11.14, allocations: 32.03 kB / 3.595 GB, free: 38.76 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/11.14, allocations: 55.59 kB / 3.595 GB, free: 38.76 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002791/11.14, allocations: 1.066 MB / 3.596 GB, free: 38.75 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/11.15, allocations: 1.236 MB / 3.597 GB, free: 38.35 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.031e-05/11.15, allocations: 13.06 kB / 3.597 GB, free: 38.35 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/11.15, allocations: 3.906 kB / 3.597 GB, free: 38.35 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.903e-05/11.15, allocations: 29.62 kB / 3.597 GB, free: 38.35 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.445/12.59, allocations: 324.9 MB / 3.915 GB, free: 20.7 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/12.59, allocations: 0.5486 MB / 3.915 GB, free: 20.65 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000548/12.59, allocations: 278 kB / 3.915 GB, free: 20.63 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4905/13.09, allocations: 47.99 MB / 3.962 GB, free: 97.98 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.388e-05/13.09, allocations: 41.12 kB / 3.962 GB, free: 97.94 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=49): time 4.619e-06/13.09, allocations: 3.562 kB / 3.962 GB, free: 97.94 MB / 0.5108 GB Notification: Performance of matching and sorting (n=49): time 0.007508/13.09, allocations: 1.528 MB / 3.964 GB, free: 97.89 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/13.09, allocations: 187.6 kB / 3.964 GB, free: 97.68 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/13.09, allocations: 0.8853 MB / 3.965 GB, free: 97.52 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0001893/13.09, allocations: 25.7 kB / 3.965 GB, free: 97.49 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004912/13.1, allocations: 0.6796 MB / 3.966 GB, free: 97.14 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/13.1, allocations: 182 kB / 3.966 GB, free: 97.06 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/13.1, allocations: 0 / 3.966 GB, free: 97.06 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001002/13.1, allocations: 352.2 kB / 3.966 GB, free: 96.75 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007547/13.1, allocations: 318 kB / 3.966 GB, free: 96.75 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/13.1, allocations: 0.7305 MB / 3.967 GB, free: 96.25 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004341/13.1, allocations: 0.7108 MB / 3.968 GB, free: 96.24 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/13.1, allocations: 6.375 kB / 3.968 GB, free: 96.24 MB / 0.5108 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006427/13.11, allocations: 1.45 MB / 3.969 GB, free: 96.17 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/13.11, allocations: 10.97 kB / 3.969 GB, free: 96.17 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/13.11, allocations: 12.72 kB / 3.969 GB, free: 96.17 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008111/13.11, allocations: 213.2 kB / 3.969 GB, free: 96.16 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/13.11, allocations: 296 kB / 3.97 GB, free: 96.16 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/13.11, allocations: 1.676 MB / 3.971 GB, free: 95.04 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/13.12, allocations: 149.6 kB / 3.972 GB, free: 95 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/13.12, allocations: 67.44 kB / 3.972 GB, free: 95 MB / 0.5108 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.0003313/13.12, allocations: 151.7 kB / 3.972 GB, free: 94.89 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/13.12, allocations: 113.4 kB / 3.972 GB, free: 94.84 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0069/13.12, allocations: 3.016 MB / 3.975 GB, free: 94.64 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.051e-05/13.12, allocations: 18.3 kB / 3.975 GB, free: 94.64 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/13.12, allocations: 1.344 kB / 3.975 GB, free: 94.64 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/13.12, allocations: 5.922 kB / 3.975 GB, free: 94.64 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/13.13, allocations: 1.391 MB / 3.976 GB, free: 94.43 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/13.13, allocations: 0.9375 kB / 3.976 GB, free: 94.43 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/13.13, allocations: 134.2 kB / 3.976 GB, free: 94.43 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003417/13.13, allocations: 2.159 MB / 3.978 GB, free: 94.41 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/13.13, allocations: 6.641 kB / 3.978 GB, free: 94.41 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003821/13.14, allocations: 3.03 MB / 3.981 GB, free: 93.27 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/13.14, allocations: 0 / 3.981 GB, free: 93.27 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004496/13.14, allocations: 2.189 MB / 3.984 GB, free: 92.87 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008414/13.14, allocations: 304.1 kB / 3.984 GB, free: 92.67 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003652/13.14, allocations: 4.625 kB / 3.984 GB, free: 92.67 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/13.14, allocations: 24.12 kB / 3.984 GB, free: 92.67 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.552e-05/13.14, allocations: 35.89 kB / 3.984 GB, free: 92.67 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/13.14, allocations: 21.23 kB / 3.984 GB, free: 92.67 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.001617/13.15, allocations: 0.854 MB / 3.985 GB, free: 92.56 MB / 0.5108 GB Notification: Performance of sort global known variables: time 5.51e-07/13.15, allocations: 0 / 3.985 GB, free: 92.56 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.006789/13.15, allocations: 1.306 MB / 3.986 GB, free: 92.48 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.01108/13.16, allocations: 1.873 MB / 3.988 GB, free: 92.29 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.004115/13.17, allocations: 0.9682 MB / 3.989 GB, free: 92.27 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/13.17, allocations: 0 / 3.989 GB, free: 92.27 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.002955/13.17, allocations: 0.5386 MB / 3.989 GB, free: 92.26 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004117/13.18, allocations: 444.6 kB / 3.99 GB, free: 92.24 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004066/13.18, allocations: 1.621 MB / 3.991 GB, free: 91.75 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007008/13.18, allocations: 1.192 MB / 3.992 GB, free: 91.05 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/13.18, allocations: 109.8 kB / 3.993 GB, free: 91.04 MB / 0.5108 GB Notification: Performance of SimCode: time 9.92e-07/13.18, allocations: 0 / 3.993 GB, free: 91.04 MB / 0.5108 GB Notification: Performance of Templates: time 0.095/13.28, allocations: 49.66 MB / 4.041 GB, free: 87.28 MB / 0.5108 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)