Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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.3+maint.om/package.mo): time 0.00228/0.00228, allocations: 176 kB / 8.15 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.00128, allocations: 91.88 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.917e-06/9.017e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2498, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.148/6.398, allocations: 2.75 GB / 3.103 GB, free: 86.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/6.398, allocations: 77.64 kB / 3.103 GB, free: 86.21 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 2.32/8.718, allocations: 0.4883 GB / 3.592 GB, free: 38.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001072/8.718, allocations: 35.56 kB / 3.592 GB, free: 38.61 MB / 442.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.01092/8.729, allocations: 2.219 MB / 3.594 GB, free: 37.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/8.729, allocations: 9.625 kB / 3.594 GB, free: 37.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00842/8.737, allocations: 0.7383 MB / 3.594 GB, free: 37.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/8.74, allocations: 0.9315 MB / 3.595 GB, free: 37.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/8.741, allocations: 32.89 kB / 3.595 GB, free: 37.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/8.741, allocations: 58.59 kB / 3.595 GB, free: 37.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00298/8.744, allocations: 1.072 MB / 3.597 GB, free: 37.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/8.746, allocations: 1.24 MB / 3.598 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.115e-05/8.747, allocations: 6.188 kB / 3.598 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/8.747, allocations: 3.938 kB / 3.598 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/8.747, allocations: 26.75 kB / 3.598 GB, free: 36.97 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.351/10.1, allocations: 324.6 MB / 3.915 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/10.1, allocations: 0.5495 MB / 3.915 GB, free: 22.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006794/10.1, allocations: 277.2 kB / 3.916 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3667/10.47, allocations: 48.04 MB / 3.962 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/10.47, allocations: 40.84 kB / 3.962 GB, free: 119 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 3.176e-06/10.47, allocations: 0 / 3.962 GB, free: 119 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.008065/10.47, allocations: 1.585 MB / 3.964 GB, free: 119 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/10.47, allocations: 189.5 kB / 3.964 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/10.48, allocations: 0.9192 MB / 3.965 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000174/10.48, allocations: 32.39 kB / 3.965 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/10.48, allocations: 0.5459 MB / 3.966 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/10.48, allocations: 181.1 kB / 3.966 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.433e-05/10.48, allocations: 0 / 3.966 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000107/10.48, allocations: 349.8 kB / 3.966 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/10.48, allocations: 387.8 kB / 3.967 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/10.48, allocations: 0.792 MB / 3.967 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005082/10.49, allocations: 0.8154 MB / 3.968 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/10.49, allocations: 3.938 kB / 3.968 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.01148/10.5, allocations: 2.355 MB / 3.97 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/10.5, allocations: 9.812 kB / 3.97 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/10.5, allocations: 10.75 kB / 3.97 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007559/10.5, allocations: 208.9 kB / 3.971 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002939/10.5, allocations: 312.4 kB / 3.971 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/10.5, allocations: 1.886 MB / 3.973 GB, free: 116.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/10.51, allocations: 95.25 kB / 3.973 GB, free: 116.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002122/10.51, allocations: 73.2 kB / 3.973 GB, free: 116.1 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.0003113/10.51, allocations: 78.08 kB / 3.973 GB, free: 116.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002528/10.51, allocations: 0.5774 MB / 3.974 GB, free: 116 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/10.52, allocations: 2.581 MB / 3.976 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.25e-05/10.52, allocations: 20.47 kB / 3.976 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/10.52, allocations: 0 / 3.976 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/10.52, allocations: 3.609 kB / 3.976 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008703/10.52, allocations: 4.064 MB / 3.98 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/10.52, allocations: 6.531 kB / 3.98 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/10.53, allocations: 136.7 kB / 3.98 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002505/10.53, allocations: 1.544 MB / 3.982 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/10.53, allocations: 19.45 kB / 3.982 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003925/10.53, allocations: 2.598 MB / 3.984 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/10.53, allocations: 5.5 kB / 3.984 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006017/10.54, allocations: 2.188 MB / 3.986 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009319/10.54, allocations: 354.7 kB / 3.987 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00048/10.54, allocations: 3.5 kB / 3.987 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/10.54, allocations: 45.47 kB / 3.987 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.129e-05/10.54, allocations: 31.02 kB / 3.987 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.79e-05/10.54, allocations: 26.83 kB / 3.987 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001944/10.54, allocations: 0.8975 MB / 3.988 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007263/10.55, allocations: 1.34 MB / 3.989 GB, free: 113 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.01197/10.56, allocations: 1.964 MB / 3.991 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004975/10.57, allocations: 1.276 MB / 3.992 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/10.57, allocations: 0 / 3.992 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003753/10.57, allocations: 0.8136 MB / 3.993 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/10.58, allocations: 429.5 kB / 3.993 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005202/10.58, allocations: 1.798 MB / 3.995 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/10.58, allocations: 1.318 MB / 3.996 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.984e-06/10.58, allocations: 0 / 3.996 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.099/10.68, allocations: 50.42 MB / 4.046 GB, free: 108.1 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)