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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001205/0.001205, allocations: 190.9 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.223/1.223, allocations: 194.2 MB / 202.8 MB, free: 8.656 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001821/0.001821, allocations: 122.5 kB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.186e-06/8.226e-06, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.08202, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.379/4.461, allocations: 2.584 GB / 2.918 GB, free: 110.6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/4.461, allocations: 76.38 kB / 2.918 GB, free: 110.6 MB / 394.7 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: time 1.492/5.953, allocations: 496.6 MB / 3.403 GB, free: 32.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.123e-05/5.953, allocations: 29.17 kB / 3.403 GB, free: 32.1 MB / 410.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.009499/5.962, allocations: 2.232 MB / 3.405 GB, free: 31.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/5.963, allocations: 7.875 kB / 3.405 GB, free: 31.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006204/5.969, allocations: 0.7352 MB / 3.406 GB, free: 31.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/5.971, allocations: 0.9626 MB / 3.407 GB, free: 30.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.09e-05/5.971, allocations: 36.66 kB / 3.407 GB, free: 30.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002447/5.971, allocations: 54.5 kB / 3.407 GB, free: 30.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002049/5.973, allocations: 1.06 MB / 3.408 GB, free: 30.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001977/5.975, allocations: 1.241 MB / 3.409 GB, free: 30.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/5.975, allocations: 7 kB / 3.409 GB, free: 30.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/5.976, allocations: 3.844 kB / 3.409 GB, free: 30.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/5.976, allocations: 30.59 kB / 3.409 GB, free: 30.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.927/6.903, allocations: 265.3 MB / 3.668 GB, free: 105.6 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008243/6.903, allocations: 0.5338 MB / 3.669 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/6.904, allocations: 287.6 kB / 3.669 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0971/7.001, allocations: 47.39 MB / 3.715 GB, free: 78.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/7.001, allocations: 41.62 kB / 3.715 GB, free: 78.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=49): time 2.816e-06/7.001, allocations: 3.562 kB / 3.715 GB, free: 78.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=49): time 0.00577/7.007, allocations: 1.564 MB / 3.717 GB, free: 78.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/7.007, allocations: 185.5 kB / 3.717 GB, free: 78.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/7.008, allocations: 0.8916 MB / 3.718 GB, free: 78.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.961e-05/7.008, allocations: 28.48 kB / 3.718 GB, free: 78.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/7.009, allocations: 0.5644 MB / 3.718 GB, free: 77.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/7.009, allocations: 177.8 kB / 3.719 GB, free: 77.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/7.009, allocations: 1.203 kB / 3.719 GB, free: 77.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/7.009, allocations: 356.6 kB / 3.719 GB, free: 77.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006035/7.01, allocations: 367.2 kB / 3.719 GB, free: 77.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/7.011, allocations: 0.8387 MB / 3.72 GB, free: 76.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/7.014, allocations: 0.8103 MB / 3.721 GB, free: 76.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.768e-05/7.014, allocations: 4.125 kB / 3.721 GB, free: 76.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.007171/7.021, allocations: 2.412 MB / 3.723 GB, free: 76.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/7.021, allocations: 4.938 kB / 3.723 GB, free: 76.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/7.021, allocations: 17.94 kB / 3.723 GB, free: 76.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/7.022, allocations: 207.4 kB / 3.724 GB, free: 76.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/7.023, allocations: 343.8 kB / 3.724 GB, free: 76.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/7.025, allocations: 1.911 MB / 3.726 GB, free: 75.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/7.027, allocations: 161 kB / 3.726 GB, free: 75.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/7.027, allocations: 75.34 kB / 3.726 GB, free: 75.47 MB / 458.7 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.0002336/7.027, allocations: 153 kB / 3.726 GB, free: 75.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/7.029, allocations: 0.5856 MB / 3.727 GB, free: 75.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/7.033, allocations: 2.571 MB / 3.729 GB, free: 75.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/7.033, allocations: 20.83 kB / 3.729 GB, free: 75.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/7.033, allocations: 1.203 kB / 3.729 GB, free: 75.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/7.033, allocations: 3.516 kB / 3.729 GB, free: 75.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004835/7.038, allocations: 3.921 MB / 3.733 GB, free: 74.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/7.038, allocations: 2.156 kB / 3.733 GB, free: 74.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009596/7.039, allocations: 147.5 kB / 3.733 GB, free: 74.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/7.04, allocations: 1.506 MB / 3.735 GB, free: 74.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/7.04, allocations: 10.75 kB / 3.735 GB, free: 74.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/7.043, allocations: 2.57 MB / 3.737 GB, free: 73.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/7.043, allocations: 3.938 kB / 3.737 GB, free: 73.01 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003614/7.046, allocations: 2.18 MB / 3.739 GB, free: 72.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/7.047, allocations: 326.1 kB / 3.74 GB, free: 72.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003212/7.047, allocations: 3.781 kB / 3.74 GB, free: 72.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006731/7.048, allocations: 27.14 kB / 3.74 GB, free: 72.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/7.048, allocations: 29.14 kB / 3.74 GB, free: 72.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/7.048, allocations: 21.06 kB / 3.74 GB, free: 72.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001025/7.049, allocations: 0.8091 MB / 3.74 GB, free: 72.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005615/7.055, allocations: 1.32 MB / 3.742 GB, free: 72.3 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: 8 ($cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 Backend phase and start with SimCode phase: time 0.008412/7.063, allocations: 1.958 MB / 3.744 GB, free: 72.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002962/7.066, allocations: 1.278 MB / 3.745 GB, free: 72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/7.066, allocations: 0 / 3.745 GB, free: 72 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/7.068, allocations: 0.7746 MB / 3.746 GB, free: 71.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002355/7.07, allocations: 421.9 kB / 3.746 GB, free: 71.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05065/7.121, allocations: 22.75 MB / 3.768 GB, free: 70.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009978/7.122, allocations: 1.341 MB / 3.77 GB, free: 69.92 MB / 458.7 MB Notification: Performance of SimCode: time 7.01e-07/7.122, allocations: 0 / 3.77 GB, free: 69.92 MB / 458.7 MB Notification: Performance of Templates: time 0.06245/7.184, allocations: 46.98 MB / 3.815 GB, free: 57.73 MB / 458.7 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)