Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 185.6 kB / 8.139 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 85.88 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.436e-05/1.44e-05, allocations: 4 kB / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3476, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.157/6.505, allocations: 2.755 GB / 3.133 GB, free: 58.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/6.505, allocations: 79.95 kB / 3.133 GB, free: 58.19 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: time 1.64/8.146, allocations: 0.4938 GB / 3.627 GB, free: 43.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.246e-05/8.146, allocations: 29.52 kB / 3.627 GB, free: 43.57 MB / 458.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.008607/8.154, allocations: 2.223 MB / 3.629 GB, free: 42.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/8.155, allocations: 9.938 kB / 3.629 GB, free: 42.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005767/8.16, allocations: 0.7383 MB / 3.63 GB, free: 42.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002163/8.163, allocations: 0.9298 MB / 3.63 GB, free: 42.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/8.163, allocations: 30.66 kB / 3.63 GB, free: 42.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/8.163, allocations: 59.09 kB / 3.631 GB, free: 42.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001889/8.165, allocations: 1.073 MB / 3.632 GB, free: 42.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/8.166, allocations: 1.242 MB / 3.633 GB, free: 41.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/8.166, allocations: 7.688 kB / 3.633 GB, free: 41.33 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.644e-05/8.166, allocations: 3.938 kB / 3.633 GB, free: 41.33 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/8.167, allocations: 27.12 kB / 3.633 GB, free: 41.33 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.049/9.215, allocations: 324.6 MB / 3.95 GB, free: 70.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/9.217, allocations: 0.5422 MB / 3.95 GB, free: 70.42 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/9.217, allocations: 283 kB / 3.951 GB, free: 70.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09314/9.31, allocations: 48.04 MB / 3.998 GB, free: 39.41 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/9.31, allocations: 45.5 kB / 3.998 GB, free: 39.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 3.597e-06/9.31, allocations: 0 / 3.998 GB, free: 39.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.005725/9.316, allocations: 1.576 MB / 3.999 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/9.316, allocations: 189.8 kB / 3.999 GB, free: 39.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/9.318, allocations: 0.9223 MB / 4 GB, free: 38.94 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.864e-05/9.318, allocations: 28.11 kB / 4 GB, free: 38.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/9.319, allocations: 0.5455 MB / 4.001 GB, free: 38.62 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/9.319, allocations: 174.3 kB / 4.001 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.071e-05/9.319, allocations: 0 / 4.001 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.976e-05/9.319, allocations: 346.8 kB / 4.001 GB, free: 38.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000688/9.32, allocations: 384.2 kB / 4.002 GB, free: 38.23 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008422/9.32, allocations: 0.7914 MB / 4.002 GB, free: 37.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00322/9.324, allocations: 0.8141 MB / 4.003 GB, free: 37.69 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/9.324, allocations: 8.125 kB / 4.003 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.007231/9.331, allocations: 2.428 MB / 4.006 GB, free: 37.56 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/9.331, allocations: 5.562 kB / 4.006 GB, free: 37.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/9.331, allocations: 13.38 kB / 4.006 GB, free: 37.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005792/9.332, allocations: 220.6 kB / 4.006 GB, free: 37.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/9.333, allocations: 314.4 kB / 4.006 GB, free: 37.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/9.335, allocations: 1.94 MB / 4.008 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/9.337, allocations: 152.9 kB / 4.008 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/9.337, allocations: 72 kB / 4.008 GB, free: 36.38 MB / 0.4948 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.0002743/9.337, allocations: 156.1 kB / 4.008 GB, free: 36.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001808/9.339, allocations: 0.578 MB / 4.009 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/9.343, allocations: 2.57 MB / 4.011 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/9.343, allocations: 20.52 kB / 4.011 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/9.343, allocations: 0 / 4.011 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/9.343, allocations: 9.797 kB / 4.011 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005461/9.349, allocations: 4.022 MB / 4.015 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/9.349, allocations: 0 / 4.015 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008929/9.35, allocations: 145.4 kB / 4.016 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/9.351, allocations: 1.547 MB / 4.017 GB, free: 35.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/9.351, allocations: 13.34 kB / 4.017 GB, free: 35.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002407/9.354, allocations: 2.599 MB / 4.02 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/9.354, allocations: 0 / 4.02 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003597/9.357, allocations: 2.191 MB / 4.022 GB, free: 33.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006096/9.358, allocations: 341.9 kB / 4.022 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/9.358, allocations: 1.875 kB / 4.022 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000801/9.359, allocations: 32.58 kB / 4.022 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/9.359, allocations: 28.47 kB / 4.022 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/9.359, allocations: 28.73 kB / 4.022 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001157/9.36, allocations: 0.8849 MB / 4.023 GB, free: 33.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006184/9.367, allocations: 1.344 MB / 4.024 GB, free: 33.25 MB / 0.4948 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 ($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 (41): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.01028/9.377, allocations: 1.988 MB / 4.026 GB, free: 32.95 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003391/9.38, allocations: 1.278 MB / 4.028 GB, free: 32.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/9.38, allocations: 1.562 kB / 4.028 GB, free: 32.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001872/9.382, allocations: 0.7784 MB / 4.028 GB, free: 32.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/9.385, allocations: 418.9 kB / 4.029 GB, free: 32.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/9.39, allocations: 1.77 MB / 4.03 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/9.391, allocations: 1.336 MB / 4.032 GB, free: 31.7 MB / 0.4948 GB Notification: Performance of SimCode: time 9.42e-07/9.391, allocations: 0 / 4.032 GB, free: 31.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.269/9.66, allocations: 47.68 MB / 4.078 GB, free: 123.8 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)