Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003688/0.003688, allocations: 173.7 kB / 7.448 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.521/1.521, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00199/0.00199, allocations: 119.8 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.06e-05, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.829/6.935, allocations: 2.474 GB / 2.768 GB, free: 50.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/6.935, allocations: 86.39 kB / 2.768 GB, free: 50.01 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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 2.087/9.022, allocations: 485.8 MB / 3.242 GB, free: 36.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001386/9.023, allocations: 33.12 kB / 3.242 GB, free: 36.96 MB / 378.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.01062/9.033, allocations: 2.11 MB / 3.244 GB, free: 36.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/9.033, allocations: 10.84 kB / 3.244 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005843/9.039, allocations: 0.6977 MB / 3.245 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002616/9.042, allocations: 0.9595 MB / 3.246 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.078e-05/9.042, allocations: 33.81 kB / 3.246 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/9.042, allocations: 58.22 kB / 3.246 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002287/9.045, allocations: 1.068 MB / 3.247 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/9.047, allocations: 1.232 MB / 3.248 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/9.047, allocations: 6.938 kB / 3.248 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001526/9.047, allocations: 3.812 kB / 3.248 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.588e-05/9.047, allocations: 28.12 kB / 3.248 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.03/10.08, allocations: 265 MB / 3.507 GB, free: 43.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/10.08, allocations: 0.5414 MB / 3.508 GB, free: 43.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005158/10.08, allocations: 279.1 kB / 3.508 GB, free: 43.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3719/10.45, allocations: 47.38 MB / 3.554 GB, free: 105.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/10.45, allocations: 38.38 kB / 3.554 GB, free: 105.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.464e-06/10.45, allocations: 0 / 3.554 GB, free: 105.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.005444/10.46, allocations: 1.564 MB / 3.556 GB, free: 105.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/10.46, allocations: 191 kB / 3.556 GB, free: 105.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/10.46, allocations: 0.8918 MB / 3.557 GB, free: 105.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.811e-05/10.46, allocations: 25.7 kB / 3.557 GB, free: 105.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/10.46, allocations: 0.5641 MB / 3.557 GB, free: 104.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/10.46, allocations: 180.3 kB / 3.557 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.723e-05/10.46, allocations: 0 / 3.557 GB, free: 104.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/10.46, allocations: 352.1 kB / 3.558 GB, free: 104.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005123/10.46, allocations: 369.5 kB / 3.558 GB, free: 104.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000777/10.46, allocations: 0.8354 MB / 3.559 GB, free: 103.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/10.46, allocations: 0.8112 MB / 3.56 GB, free: 103.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/10.46, allocations: 4.719 kB / 3.56 GB, free: 103.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006889/10.47, allocations: 2.415 MB / 3.562 GB, free: 103.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/10.47, allocations: 10.44 kB / 3.562 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/10.47, allocations: 17.97 kB / 3.562 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004904/10.47, allocations: 204.6 kB / 3.562 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/10.47, allocations: 340.9 kB / 3.563 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/10.47, allocations: 1.908 MB / 3.565 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/10.48, allocations: 164.7 kB / 3.565 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/10.48, allocations: 79.67 kB / 3.565 GB, free: 102.7 MB / 426.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.0002399/10.48, allocations: 159.6 kB / 3.565 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/10.48, allocations: 0.5847 MB / 3.565 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004014/10.48, allocations: 2.571 MB / 3.568 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/10.48, allocations: 17.64 kB / 3.568 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/10.48, allocations: 1.812 kB / 3.568 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.958e-05/10.48, allocations: 7.172 kB / 3.568 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005177/10.49, allocations: 3.925 MB / 3.572 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/10.49, allocations: 4.984 kB / 3.572 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008984/10.49, allocations: 148.2 kB / 3.572 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/10.49, allocations: 1.505 MB / 3.573 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/10.49, allocations: 10.17 kB / 3.573 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002573/10.49, allocations: 2.571 MB / 3.576 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/10.49, allocations: 0 / 3.576 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003756/10.5, allocations: 2.178 MB / 3.578 GB, free: 99.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006226/10.5, allocations: 330.5 kB / 3.578 GB, free: 99.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/10.5, allocations: 0 / 3.578 GB, free: 99.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/10.5, allocations: 20.66 kB / 3.578 GB, free: 99.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/10.5, allocations: 33.14 kB / 3.578 GB, free: 99.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/10.5, allocations: 20.33 kB / 3.578 GB, free: 99.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001206/10.5, allocations: 0.8179 MB / 3.579 GB, free: 99.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007527/10.51, allocations: 1.308 MB / 3.581 GB, free: 99.48 MB / 426.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.01319/10.52, allocations: 1.956 MB / 3.582 GB, free: 99.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004054/10.52, allocations: 1.277 MB / 3.584 GB, free: 99.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/10.52, allocations: 0 / 3.584 GB, free: 99.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/10.53, allocations: 0.7771 MB / 3.584 GB, free: 99.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002951/10.53, allocations: 428.1 kB / 3.585 GB, free: 99.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05559/10.58, allocations: 21.96 MB / 3.606 GB, free: 98.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/10.59, allocations: 1.334 MB / 3.608 GB, free: 97.99 MB / 426.7 MB Notification: Performance of SimCode: time 3.356e-06/10.59, allocations: 0 / 3.608 GB, free: 97.99 MB / 426.7 MB Notification: Performance of Templates: time 0.08433/10.67, allocations: 46.73 MB / 3.653 GB, free: 95.55 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)