Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00162/0.00162, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.144/2.144, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001796/0.001796, allocations: 115.3 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.964e-05, allocations: 4 kB / 298.1 MB, free: 8.238 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 44.48 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.391/6.5, allocations: 2.584 GB / 2.918 GB, free: 58.2 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/6.5, allocations: 77.72 kB / 2.919 GB, free: 58.18 MB / 395.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329: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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329: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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329: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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329: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.691/8.192, allocations: 495.7 MB / 3.403 GB, free: 24.59 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.262e-06/8.192, allocations: 0 / 3.403 GB, free: 24.59 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.00012/8.192, allocations: 34.36 kB / 3.403 GB, free: 24.58 MB / 411.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.008589/8.201, allocations: 2.197 MB / 3.405 GB, free: 23.41 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/8.201, allocations: 7.906 kB / 3.405 GB, free: 23.41 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005147/8.206, allocations: 0.7162 MB / 3.405 GB, free: 23.24 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/8.208, allocations: 0.9452 MB / 3.406 GB, free: 22.69 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.632e-05/8.208, allocations: 30.88 kB / 3.406 GB, free: 22.69 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/8.208, allocations: 58.84 kB / 3.406 GB, free: 22.69 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001752/8.21, allocations: 1.069 MB / 3.408 GB, free: 22.29 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/8.212, allocations: 1.237 MB / 3.409 GB, free: 21.54 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/8.212, allocations: 3.938 kB / 3.409 GB, free: 21.54 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/8.212, allocations: 7.438 kB / 3.409 GB, free: 21.54 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/8.212, allocations: 25.47 kB / 3.409 GB, free: 21.54 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.217/9.429, allocations: 264 MB / 3.667 GB, free: 63.77 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/9.431, allocations: 0.5373 MB / 3.667 GB, free: 63.72 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/9.431, allocations: 275.4 kB / 3.667 GB, free: 63.7 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1316/9.563, allocations: 47.3 MB / 3.714 GB, free: 35.41 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/9.563, allocations: 37.81 kB / 3.714 GB, free: 35.38 MB / 475.1 MB Notification: Performance of pre-optimization done (n=49): time 4.077e-06/9.563, allocations: 0 / 3.714 GB, free: 35.38 MB / 475.1 MB Notification: Performance of matching and sorting (n=49): time 0.008519/9.572, allocations: 1.506 MB / 3.715 GB, free: 35.3 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.616e-05/9.572, allocations: 189.3 kB / 3.715 GB, free: 35.08 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/9.574, allocations: 0.8711 MB / 3.716 GB, free: 34.92 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 9.355e-05/9.574, allocations: 29.7 kB / 3.716 GB, free: 34.89 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008051/9.575, allocations: 0.6903 MB / 3.717 GB, free: 34.59 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002986/9.575, allocations: 178.8 kB / 3.717 GB, free: 34.51 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.893e-05/9.575, allocations: 0 / 3.717 GB, free: 34.51 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/9.576, allocations: 357 kB / 3.717 GB, free: 34.2 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007549/9.576, allocations: 310.4 kB / 3.718 GB, free: 34.2 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/9.577, allocations: 0.7895 MB / 3.718 GB, free: 33.59 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004559/9.582, allocations: 0.7214 MB / 3.719 GB, free: 33.56 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.978e-05/9.582, allocations: 3.938 kB / 3.719 GB, free: 33.56 MB / 475.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006775/9.589, allocations: 1.532 MB / 3.721 GB, free: 33.44 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/9.589, allocations: 12.12 kB / 3.721 GB, free: 33.44 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/9.589, allocations: 18.47 kB / 3.721 GB, free: 33.44 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/9.59, allocations: 192.8 kB / 3.721 GB, free: 33.43 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002265/9.592, allocations: 327.3 kB / 3.721 GB, free: 33.43 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/9.594, allocations: 1.648 MB / 3.723 GB, free: 32.31 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/9.596, allocations: 163.6 kB / 3.723 GB, free: 32.26 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/9.596, allocations: 70.14 kB / 3.723 GB, free: 32.26 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (138): * Single equations (assignments): 136 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002975/9.596, allocations: 160.6 kB / 3.723 GB, free: 32.15 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/9.597, allocations: 114.4 kB / 3.723 GB, free: 32.09 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/9.603, allocations: 2.997 MB / 3.726 GB, free: 31.89 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/9.603, allocations: 19.7 kB / 3.726 GB, free: 31.89 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/9.603, allocations: 3.469 kB / 3.726 GB, free: 31.89 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/9.603, allocations: 8.266 kB / 3.726 GB, free: 31.89 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/9.606, allocations: 1.346 MB / 3.728 GB, free: 31.69 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/9.606, allocations: 0 / 3.728 GB, free: 31.69 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/9.607, allocations: 135.1 kB / 3.728 GB, free: 31.69 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/9.611, allocations: 2.133 MB / 3.73 GB, free: 31.67 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/9.611, allocations: 16.75 kB / 3.73 GB, free: 31.66 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/9.614, allocations: 2.991 MB / 3.733 GB, free: 30.51 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/9.614, allocations: 0.9375 kB / 3.733 GB, free: 30.51 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004005/9.618, allocations: 2.176 MB / 3.735 GB, free: 30.1 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008355/9.619, allocations: 292 kB / 3.735 GB, free: 29.91 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002514/9.62, allocations: 0 / 3.735 GB, free: 29.91 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007979/9.62, allocations: 36.02 kB / 3.735 GB, free: 29.9 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/9.62, allocations: 31.55 kB / 3.735 GB, free: 29.9 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/9.62, allocations: 21.56 kB / 3.735 GB, free: 29.9 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.001263/9.622, allocations: 0.7827 MB / 3.736 GB, free: 29.79 MB / 475.1 MB Notification: Performance of sort global known variables: time 2.3e-07/9.622, allocations: 0 / 3.736 GB, free: 29.79 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.007981/9.63, allocations: 1.278 MB / 3.737 GB, free: 29.71 MB / 475.1 MB 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 (39): * Single equations (assignments): 37 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0124/9.642, allocations: 1.888 MB / 3.739 GB, free: 29.44 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004103/9.646, allocations: 0.9667 MB / 3.74 GB, free: 28.91 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/9.646, allocations: 2.062 kB / 3.74 GB, free: 28.91 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/9.649, allocations: 0.502 MB / 3.74 GB, free: 28.64 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004001/9.653, allocations: 432.5 kB / 3.741 GB, free: 28.42 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/9.657, allocations: 1.592 MB / 3.742 GB, free: 27.16 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/9.658, allocations: 1.207 MB / 3.744 GB, free: 26.13 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.002625/9.661, allocations: 0.9618 MB / 3.745 GB, free: 25.58 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/9.661, allocations: 100.9 kB / 3.745 GB, free: 25.5 MB / 475.1 MB Notification: Performance of SimCode: time 1.623e-06/9.661, allocations: 0 / 3.745 GB, free: 25.5 MB / 475.1 MB Notification: Performance of Templates: time 0.3592/10.02, allocations: 40.69 MB / 3.784 GB, free: 92.91 MB / 475.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)