Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) [: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.001163/0.001163, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.235/1.235, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009555/0.0009554, allocations: 87.27 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1893/0.1903, allocations: 52.97 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.272, allocations: 47.57 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.21/4.482, allocations: 2.75 GB / 3.104 GB, free: 126.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/4.482, allocations: 81.77 kB / 3.104 GB, free: 126.1 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: 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 1.381/5.864, allocations: 0.4905 GB / 3.595 GB, free: 38.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/5.864, allocations: 10.34 kB / 3.595 GB, free: 38.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00501/5.869, allocations: 0.7348 MB / 3.595 GB, free: 38.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/5.87, allocations: 0.9332 MB / 3.596 GB, free: 38.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/5.87, allocations: 32.06 kB / 3.596 GB, free: 38.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/5.87, allocations: 59 kB / 3.596 GB, free: 38.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00161/5.872, allocations: 1.068 MB / 3.597 GB, free: 38.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/5.873, allocations: 1.241 MB / 3.598 GB, free: 37.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/5.873, allocations: 7.406 kB / 3.598 GB, free: 37.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-05/5.873, allocations: 7 kB / 3.598 GB, free: 37.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/5.874, allocations: 27 kB / 3.599 GB, free: 37.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8943/6.768, allocations: 324.6 MB / 3.915 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007922/6.769, allocations: 0.5512 MB / 3.916 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/6.769, allocations: 280.8 kB / 3.916 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08519/6.854, allocations: 48.05 MB / 3.963 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/6.854, allocations: 42.88 kB / 3.963 GB, free: 93.87 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 2.504e-06/6.854, allocations: 0 / 3.963 GB, free: 93.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.005022/6.859, allocations: 1.578 MB / 3.965 GB, free: 93.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/6.859, allocations: 190.2 kB / 3.965 GB, free: 93.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/6.861, allocations: 0.9214 MB / 3.966 GB, free: 93.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.529e-05/6.861, allocations: 25.7 kB / 3.966 GB, free: 93.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/6.861, allocations: 0.541 MB / 3.966 GB, free: 93.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/6.861, allocations: 178.1 kB / 3.967 GB, free: 93.04 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/6.861, allocations: 1.969 kB / 3.967 GB, free: 93.04 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.98e-05/6.862, allocations: 352 kB / 3.967 GB, free: 92.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/6.862, allocations: 386.1 kB / 3.967 GB, free: 92.72 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007448/6.863, allocations: 0.7917 MB / 3.968 GB, free: 92.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/6.866, allocations: 0.8139 MB / 3.969 GB, free: 92.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-06/6.866, allocations: 3.938 kB / 3.969 GB, free: 92.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006672/6.873, allocations: 2.416 MB / 3.971 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/6.873, allocations: 5.781 kB / 3.971 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/6.873, allocations: 11.44 kB / 3.971 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005407/6.873, allocations: 224.1 kB / 3.971 GB, free: 92.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/6.875, allocations: 313.8 kB / 3.972 GB, free: 92.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/6.877, allocations: 1.933 MB / 3.974 GB, free: 90.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/6.878, allocations: 155.1 kB / 3.974 GB, free: 90.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/6.878, allocations: 69.73 kB / 3.974 GB, free: 90.88 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.0001988/6.878, allocations: 159.9 kB / 3.974 GB, free: 90.76 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/6.88, allocations: 0.5784 MB / 3.975 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/6.883, allocations: 2.575 MB / 3.977 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/6.883, allocations: 16.75 kB / 3.977 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/6.883, allocations: 3.906 kB / 3.977 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/6.883, allocations: 3.844 kB / 3.977 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/6.888, allocations: 4.031 MB / 3.981 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/6.888, allocations: 0 / 3.981 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008726/6.889, allocations: 148.7 kB / 3.981 GB, free: 89.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/6.89, allocations: 1.545 MB / 3.983 GB, free: 89.51 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/6.89, allocations: 7.391 kB / 3.983 GB, free: 89.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/6.893, allocations: 2.605 MB / 3.985 GB, free: 88.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/6.893, allocations: 3.969 kB / 3.985 GB, free: 88.37 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003382/6.896, allocations: 2.184 MB / 3.987 GB, free: 88.02 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00363/6.9, allocations: 2.622 MB / 3.99 GB, free: 87.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004969/6.9, allocations: 338.7 kB / 3.99 GB, free: 87.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003224/6.9, allocations: 3.75 kB / 3.99 GB, free: 87.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000747/6.901, allocations: 27.12 kB / 3.99 GB, free: 87.11 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.626e-05/6.901, allocations: 33.53 kB / 3.99 GB, free: 87.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/6.901, allocations: 25.47 kB / 3.99 GB, free: 87.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001218/6.903, allocations: 0.8929 MB / 3.991 GB, free: 87 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006267/6.909, allocations: 1.478 MB / 3.993 GB, free: 86.91 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.008285/6.917, allocations: 1.964 MB / 3.995 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002803/6.92, allocations: 1.28 MB / 3.996 GB, free: 86.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/6.92, allocations: 0 / 3.996 GB, free: 86.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001668/6.922, allocations: 0.7785 MB / 3.997 GB, free: 86.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/6.924, allocations: 423.6 kB / 3.997 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/6.927, allocations: 1.774 MB / 3.999 GB, free: 86.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/6.928, allocations: 1.337 MB / 4 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of SimCode: time 7.02e-07/6.928, allocations: 0 / 4 GB, free: 85.36 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)