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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 189.1 kB / 8.137 MB, free: 2.188 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.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0009859/0.0009858, allocations: 92.64 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09778/0.09881, allocations: 55.81 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.2861, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.013/4.299, allocations: 2.755 GB / 3.133 GB, free: 56.73 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/4.3, allocations: 81.42 kB / 3.133 GB, free: 56.65 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: 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.351/5.651, allocations: 0.496 GB / 3.629 GB, free: 43.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/5.651, allocations: 11.09 kB / 3.629 GB, free: 43.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005337/5.656, allocations: 0.7384 MB / 3.63 GB, free: 42.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/5.658, allocations: 0.9349 MB / 3.631 GB, free: 42.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/5.658, allocations: 36.72 kB / 3.631 GB, free: 42.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/5.658, allocations: 56.56 kB / 3.631 GB, free: 42.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001637/5.66, allocations: 1.067 MB / 3.632 GB, free: 41.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/5.661, allocations: 1.241 MB / 3.633 GB, free: 41.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/5.661, allocations: 7.344 kB / 3.633 GB, free: 41.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/5.661, allocations: 2.156 kB / 3.633 GB, free: 41.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/5.661, allocations: 28.06 kB / 3.633 GB, free: 41.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8108/6.472, allocations: 324.6 MB / 3.95 GB, free: 72.26 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000791/6.473, allocations: 0.5485 MB / 3.95 GB, free: 72.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003246/6.473, allocations: 282.2 kB / 3.951 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08102/6.554, allocations: 48.05 MB / 3.998 GB, free: 41.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/6.555, allocations: 43.66 kB / 3.998 GB, free: 41.16 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 2.404e-06/6.555, allocations: 0 / 3.998 GB, free: 41.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.005071/6.56, allocations: 1.577 MB / 3.999 GB, free: 41.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/6.56, allocations: 187.4 kB / 3.999 GB, free: 40.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/6.561, allocations: 0.9289 MB / 4 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.478e-05/6.561, allocations: 26.64 kB / 4 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/6.561, allocations: 0.5402 MB / 4.001 GB, free: 40.42 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/6.561, allocations: 181.5 kB / 4.001 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/6.561, allocations: 0.75 kB / 4.001 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.884e-05/6.562, allocations: 346.9 kB / 4.001 GB, free: 40.03 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/6.562, allocations: 384.3 kB / 4.002 GB, free: 40.03 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007542/6.563, allocations: 0.7904 MB / 4.003 GB, free: 39.51 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/6.566, allocations: 0.8202 MB / 4.003 GB, free: 39.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/6.566, allocations: 8.141 kB / 4.003 GB, free: 39.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006579/6.572, allocations: 2.411 MB / 4.006 GB, free: 39.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/6.572, allocations: 13.47 kB / 4.006 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/6.572, allocations: 13.5 kB / 4.006 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005151/6.573, allocations: 224.8 kB / 4.006 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/6.574, allocations: 314.1 kB / 4.006 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/6.576, allocations: 1.945 MB / 4.008 GB, free: 38.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/6.578, allocations: 150.4 kB / 4.008 GB, free: 38.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/6.578, allocations: 67.98 kB / 4.008 GB, free: 38.17 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.000196/6.578, allocations: 150.7 kB / 4.008 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/6.579, allocations: 0.5794 MB / 4.009 GB, free: 38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/6.583, allocations: 2.573 MB / 4.012 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/6.583, allocations: 23.48 kB / 4.012 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/6.583, allocations: 0 / 4.012 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/6.583, allocations: 14.72 kB / 4.012 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/6.587, allocations: 4.026 MB / 4.016 GB, free: 36.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/6.587, allocations: 0 / 4.016 GB, free: 36.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008641/6.588, allocations: 140.7 kB / 4.016 GB, free: 36.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001291/6.589, allocations: 1.547 MB / 4.017 GB, free: 36.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/6.589, allocations: 14.86 kB / 4.017 GB, free: 36.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/6.592, allocations: 2.598 MB / 4.02 GB, free: 35.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/6.592, allocations: 0 / 4.02 GB, free: 35.71 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003246/6.595, allocations: 2.192 MB / 4.022 GB, free: 35.36 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003276/6.598, allocations: 2.619 MB / 4.024 GB, free: 34.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004595/6.599, allocations: 337.5 kB / 4.025 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/6.599, allocations: 3.156 kB / 4.025 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005773/6.599, allocations: 24.52 kB / 4.025 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/6.599, allocations: 36.86 kB / 4.025 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/6.6, allocations: 26.72 kB / 4.025 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001007/6.601, allocations: 0.8909 MB / 4.026 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005795/6.606, allocations: 1.48 MB / 4.027 GB, free: 34.27 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.005886/6.612, allocations: 1.964 MB / 4.029 GB, free: 33.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002693/6.615, allocations: 1.282 MB / 4.03 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/6.615, allocations: 1.562 kB / 4.03 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/6.616, allocations: 0.7901 MB / 4.031 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/6.619, allocations: 415.8 kB / 4.031 GB, free: 33.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/6.622, allocations: 1.777 MB / 4.033 GB, free: 33.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008666/6.623, allocations: 1.333 MB / 4.035 GB, free: 32.47 MB / 0.4948 GB Notification: Performance of SimCode: time 5.41e-07/6.623, allocations: 0 / 4.035 GB, free: 32.47 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)