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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001368/0.001368, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008731/0.0008732, allocations: 89.22 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09369/0.09459, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08149/0.1761, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.092/4.268, allocations: 2.756 GB / 3.141 GB, free: 112.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001617/4.269, allocations: 78.66 kB / 3.141 GB, free: 112.6 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: 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.281/5.549, allocations: 0.4961 GB / 3.637 GB, free: 12.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/5.549, allocations: 8 kB / 3.637 GB, free: 12.03 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00541/5.555, allocations: 0.7354 MB / 3.638 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/5.557, allocations: 0.9357 MB / 3.639 GB, free: 10.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/5.557, allocations: 32 kB / 3.639 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/5.557, allocations: 56 kB / 3.639 GB, free: 10.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001684/5.559, allocations: 1.074 MB / 3.64 GB, free: 9.172 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/5.56, allocations: 1.235 MB / 3.641 GB, free: 7.793 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/5.56, allocations: 7.938 kB / 3.641 GB, free: 7.785 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/5.56, allocations: 4 kB / 3.641 GB, free: 7.781 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/5.56, allocations: 28 kB / 3.641 GB, free: 7.754 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.072/6.632, allocations: 368.5 MB / 4.001 GB, free: 97.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008766/6.633, allocations: 0.5514 MB / 4.002 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/6.634, allocations: 280.1 kB / 4.002 GB, free: 97.54 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08703/6.721, allocations: 55.2 MB / 4.056 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/6.721, allocations: 44.17 kB / 4.056 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 2.395e-06/6.721, allocations: 0 / 4.056 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.00495/6.726, allocations: 1.576 MB / 4.057 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/6.726, allocations: 193.2 kB / 4.058 GB, free: 61.18 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/6.727, allocations: 0.9264 MB / 4.059 GB, free: 61.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.761e-05/6.727, allocations: 25.7 kB / 4.059 GB, free: 61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/6.727, allocations: 0.5396 MB / 4.059 GB, free: 60.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/6.728, allocations: 172.9 kB / 4.059 GB, free: 60.63 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.46e-05/6.728, allocations: 0 / 4.059 GB, free: 60.63 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.105e-05/6.728, allocations: 350.2 kB / 4.06 GB, free: 60.33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005301/6.728, allocations: 381.4 kB / 4.06 GB, free: 60.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/6.729, allocations: 0.7935 MB / 4.061 GB, free: 59.81 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002791/6.732, allocations: 0.8154 MB / 4.062 GB, free: 59.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/6.732, allocations: 7.562 kB / 4.062 GB, free: 59.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006256/6.738, allocations: 2.416 MB / 4.064 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/6.738, allocations: 4.844 kB / 4.064 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/6.738, allocations: 15.59 kB / 4.064 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004795/6.738, allocations: 222 kB / 4.064 GB, free: 59.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/6.74, allocations: 309.8 kB / 4.064 GB, free: 59.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/6.742, allocations: 1.939 MB / 4.066 GB, free: 58.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/6.743, allocations: 155.9 kB / 4.066 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/6.743, allocations: 70.55 kB / 4.067 GB, free: 58.48 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.0001703/6.743, allocations: 147.7 kB / 4.067 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001443/6.744, allocations: 0.5815 MB / 4.067 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/6.748, allocations: 2.579 MB / 4.07 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/6.748, allocations: 17.16 kB / 4.07 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/6.748, allocations: 7.312 kB / 4.07 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/6.748, allocations: 3.906 kB / 4.07 GB, free: 58.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00443/6.752, allocations: 4.02 MB / 4.074 GB, free: 57.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/6.752, allocations: 2.719 kB / 4.074 GB, free: 57.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008391/6.753, allocations: 142.8 kB / 4.074 GB, free: 57.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/6.755, allocations: 1.547 MB / 4.075 GB, free: 57.16 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/6.755, allocations: 14.84 kB / 4.075 GB, free: 57.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/6.757, allocations: 2.596 MB / 4.078 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/6.757, allocations: 4.094 kB / 4.078 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003187/6.76, allocations: 2.19 MB / 4.08 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003212/6.763, allocations: 2.62 MB / 4.083 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004522/6.764, allocations: 340.5 kB / 4.083 GB, free: 54.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/6.764, allocations: 2.906 kB / 4.083 GB, free: 54.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/6.764, allocations: 23.67 kB / 4.083 GB, free: 54.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/6.764, allocations: 35.12 kB / 4.083 GB, free: 54.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/6.764, allocations: 24.98 kB / 4.083 GB, free: 54.78 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0009553/6.765, allocations: 0.895 MB / 4.084 GB, free: 54.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005586/6.771, allocations: 1.499 MB / 4.085 GB, free: 54.66 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.006069/6.777, allocations: 1.986 MB / 4.087 GB, free: 54.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002548/6.78, allocations: 1.279 MB / 4.089 GB, free: 54.35 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/6.78, allocations: 0 / 4.089 GB, free: 54.35 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/6.781, allocations: 0.7822 MB / 4.089 GB, free: 54.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/6.783, allocations: 422.8 kB / 4.09 GB, free: 54.31 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/6.786, allocations: 1.775 MB / 4.091 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007946/6.787, allocations: 1.339 MB / 4.093 GB, free: 53.1 MB / 0.5105 GB Notification: Performance of SimCode: time 6.41e-07/6.787, allocations: 0 / 4.093 GB, free: 53.1 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)