Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001563/0.001563, allocations: 192.2 kB / 8.534 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 88.11 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.382e-06/6.763e-06, allocations: 0 / 343.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.144, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.945/8.09, allocations: 2.756 GB / 3.141 GB, free: 114 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/8.09, allocations: 79.66 kB / 3.141 GB, free: 114 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.668/9.758, allocations: 0.4939 GB / 3.635 GB, free: 15.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.406e-05/9.758, allocations: 31.94 kB / 3.635 GB, free: 15.59 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.01125/9.769, allocations: 2.233 MB / 3.637 GB, free: 13.33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/9.769, allocations: 11.97 kB / 3.637 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005754/9.775, allocations: 0.7397 MB / 3.638 GB, free: 12.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/9.778, allocations: 0.9396 MB / 3.639 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/9.778, allocations: 32 kB / 3.639 GB, free: 11.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/9.778, allocations: 56 kB / 3.639 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001795/9.78, allocations: 1.066 MB / 3.64 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/9.781, allocations: 1.232 MB / 3.641 GB, free: 9.086 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/9.781, allocations: 11.81 kB / 3.641 GB, free: 9.078 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-05/9.781, allocations: 7.984 kB / 3.641 GB, free: 9.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/9.781, allocations: 28 kB / 3.641 GB, free: 9.043 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.505/11.29, allocations: 368.5 MB / 4.001 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008947/11.29, allocations: 0.5535 MB / 4.002 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/11.29, allocations: 277.4 kB / 4.002 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09698/11.38, allocations: 55.2 MB / 4.056 GB, free: 64.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.37e-05/11.38, allocations: 43.59 kB / 4.056 GB, free: 64.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 2.916e-06/11.38, allocations: 0 / 4.056 GB, free: 64.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.005316/11.39, allocations: 1.58 MB / 4.057 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/11.39, allocations: 187.1 kB / 4.058 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/11.39, allocations: 0.9261 MB / 4.058 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/11.39, allocations: 25.7 kB / 4.058 GB, free: 63.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/11.39, allocations: 0.5452 MB / 4.059 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/11.39, allocations: 178.4 kB / 4.059 GB, free: 63.53 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/11.39, allocations: 0 / 4.059 GB, free: 63.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.615e-05/11.39, allocations: 348.1 kB / 4.059 GB, free: 63.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000537/11.39, allocations: 381.4 kB / 4.06 GB, free: 63.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006988/11.39, allocations: 0.7864 MB / 4.061 GB, free: 62.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/11.4, allocations: 0.8173 MB / 4.061 GB, free: 62.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/11.4, allocations: 2.25 kB / 4.061 GB, free: 62.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006888/11.4, allocations: 2.42 MB / 4.064 GB, free: 62.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/11.4, allocations: 2.812 kB / 4.064 GB, free: 62.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/11.4, allocations: 17.53 kB / 4.064 GB, free: 62.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005596/11.4, allocations: 223.2 kB / 4.064 GB, free: 62.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/11.4, allocations: 318.7 kB / 4.064 GB, free: 62.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/11.41, allocations: 1.939 MB / 4.066 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/11.41, allocations: 154.8 kB / 4.066 GB, free: 61.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/11.41, allocations: 73.75 kB / 4.066 GB, free: 61.38 MB / 0.5105 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.0002314/11.41, allocations: 146.1 kB / 4.067 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001565/11.41, allocations: 0.5842 MB / 4.067 GB, free: 61.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003617/11.41, allocations: 2.563 MB / 4.07 GB, free: 61.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/11.41, allocations: 18.81 kB / 4.07 GB, free: 61.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/11.41, allocations: 3.719 kB / 4.07 GB, free: 61.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/11.41, allocations: 3.609 kB / 4.07 GB, free: 61.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004805/11.42, allocations: 4.027 MB / 4.074 GB, free: 60.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/11.42, allocations: 0 / 4.074 GB, free: 60.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008368/11.42, allocations: 147.3 kB / 4.074 GB, free: 60.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/11.42, allocations: 1.553 MB / 4.075 GB, free: 60.06 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/11.42, allocations: 11.16 kB / 4.075 GB, free: 60.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/11.42, allocations: 2.6 MB / 4.078 GB, free: 58.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/11.42, allocations: 0 / 4.078 GB, free: 58.92 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003517/11.43, allocations: 2.194 MB / 4.08 GB, free: 58.57 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005594/11.43, allocations: 338.9 kB / 4.08 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/11.43, allocations: 0 / 4.08 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/11.43, allocations: 24.56 kB / 4.08 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.961e-05/11.43, allocations: 34.84 kB / 4.08 GB, free: 58.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.644e-05/11.43, allocations: 22.98 kB / 4.08 GB, free: 58.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001144/11.43, allocations: 0.8966 MB / 4.081 GB, free: 58.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006946/11.44, allocations: 1.352 MB / 4.083 GB, free: 58.27 MB / 0.5105 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.01007/11.45, allocations: 1.985 MB / 4.084 GB, free: 57.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003205/11.45, allocations: 1.275 MB / 4.086 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/11.45, allocations: 3.969 kB / 4.086 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001684/11.45, allocations: 0.7787 MB / 4.086 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/11.45, allocations: 423.9 kB / 4.087 GB, free: 57.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/11.46, allocations: 1.776 MB / 4.089 GB, free: 57.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000884/11.46, allocations: 1.333 MB / 4.09 GB, free: 56.73 MB / 0.5105 GB Notification: Performance of SimCode: time 1.483e-06/11.46, allocations: 0 / 4.09 GB, free: 56.73 MB / 0.5105 GB Notification: Performance of Templates: time 0.07153/11.53, allocations: 47.68 MB / 4.136 GB, free: 52.36 MB / 0.5105 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)