Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") [: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.1+maint.om/package.mo): time 0.002507/0.002507, allocations: 176 kB / 7.449 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.238/1.238, allocations: 170.6 MB / 178.4 MB, free: 15.36 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001715/0.001715, allocations: 119.8 kB / 217.7 MB, free: 8.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2363/0.2363, allocations: 37.98 MB / 294.8 MB, free: 9.594 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.758e-06/9.778e-06, allocations: 1.406 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09787, allocations: 48.7 MB / 398.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.191/1.289, allocations: 462.3 MB / 0.8404 GB, free: 90.27 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003828/1.289, allocations: 83.97 kB / 0.8405 GB, free: 90.22 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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.1+maint.om/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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 0.7177/2.007, allocations: 190.8 MB / 1.027 GB, free: 73.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.037e-05/2.007, allocations: 17.11 kB / 1.027 GB, free: 73.24 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.003439/2.011, allocations: 1.028 MB / 1.028 GB, free: 72.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/2.011, allocations: 8.031 kB / 1.028 GB, free: 72.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/2.013, allocations: 179 kB / 1.028 GB, free: 71.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/2.014, allocations: 0.5787 MB / 1.029 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/2.014, allocations: 19.92 kB / 1.029 GB, free: 71.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/2.014, allocations: 24 kB / 1.029 GB, free: 71.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008516/2.015, allocations: 437.9 kB / 1.029 GB, free: 70.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/2.016, allocations: 0.5314 MB / 1.03 GB, free: 70.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/2.016, allocations: 0 / 1.03 GB, free: 70.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.297e-05/2.016, allocations: 4 kB / 1.03 GB, free: 70.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/2.016, allocations: 12 kB / 1.03 GB, free: 70.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/2.02, allocations: 2.713 MB / 1.032 GB, free: 67.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/2.021, allocations: 242.8 kB / 1.032 GB, free: 67.22 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/2.021, allocations: 113.8 kB / 1.033 GB, free: 67.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000322/2.021, allocations: 194.1 kB / 1.033 GB, free: 66.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/2.022, allocations: 181 kB / 1.033 GB, free: 66.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.364e-06/2.022, allocations: 4 kB / 1.033 GB, free: 66.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.01108/2.033, allocations: 1.579 MB / 1.034 GB, free: 65.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/2.033, allocations: 162.2 kB / 1.035 GB, free: 64.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/2.034, allocations: 0.4983 MB / 1.035 GB, free: 64.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/2.034, allocations: 25.7 kB / 1.035 GB, free: 64.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/2.034, allocations: 310.6 kB / 1.035 GB, free: 64.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/2.035, allocations: 78.94 kB / 1.035 GB, free: 63.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/2.035, allocations: 4 kB / 1.035 GB, free: 63.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/2.035, allocations: 370.7 kB / 1.036 GB, free: 63.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/2.035, allocations: 141.1 kB / 1.036 GB, free: 63.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/2.035, allocations: 366.9 kB / 1.036 GB, free: 63.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00989/2.045, allocations: 1.526 MB / 1.038 GB, free: 61.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/2.045, allocations: 4 kB / 1.038 GB, free: 61.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.01102/2.056, allocations: 1.889 MB / 1.04 GB, free: 59.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001561/2.058, allocations: 2.686 MB / 1.042 GB, free: 56.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.292e-05/2.058, allocations: 8 kB / 1.042 GB, free: 56.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.039e-05/2.058, allocations: 11.98 kB / 1.042 GB, free: 56.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006844/2.065, allocations: 0.6335 MB / 1.043 GB, free: 56.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003783/2.069, allocations: 1.037 MB / 1.044 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009466/2.07, allocations: 63.52 kB / 1.044 GB, free: 54.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/2.07, allocations: 51.98 kB / 1.044 GB, free: 54.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/2.07, allocations: 7.438 kB / 1.044 GB, free: 54.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003132/2.073, allocations: 0.9135 MB / 1.045 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/2.073, allocations: 4 kB / 1.045 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/2.073, allocations: 16.09 kB / 1.045 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/2.074, allocations: 131.8 kB / 1.045 GB, free: 53.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/2.074, allocations: 19.92 kB / 1.045 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006524/2.074, allocations: 55.45 kB / 1.045 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.889e-05/2.075, allocations: 51.98 kB / 1.045 GB, free: 53.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0002978/2.075, allocations: 159.5 kB / 1.045 GB, free: 53.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/2.075, allocations: 59.25 kB / 1.045 GB, free: 53.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/2.079, allocations: 0.7659 MB / 1.046 GB, free: 52.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/2.079, allocations: 0 / 1.046 GB, free: 52.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/2.079, allocations: 4 kB / 1.046 GB, free: 52.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/2.079, allocations: 3.906 kB / 1.046 GB, free: 52.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009276/2.08, allocations: 432.5 kB / 1.047 GB, free: 52.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/2.08, allocations: 3.938 kB / 1.047 GB, free: 52.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/2.082, allocations: 175.8 kB / 1.047 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/2.082, allocations: 3.984 kB / 1.047 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/2.082, allocations: 4 kB / 1.047 GB, free: 52.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/2.083, allocations: 0.7381 MB / 1.047 GB, free: 51.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/2.083, allocations: 3.938 kB / 1.047 GB, free: 51.27 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003233/2.086, allocations: 0.6682 MB / 1.048 GB, free: 50.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/2.087, allocations: 148.3 kB / 1.048 GB, free: 50.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/2.087, allocations: 4 kB / 1.048 GB, free: 50.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/2.087, allocations: 11.98 kB / 1.048 GB, free: 50.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-05/2.087, allocations: 19.91 kB / 1.048 GB, free: 50.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/2.087, allocations: 16 kB / 1.048 GB, free: 50.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005542/2.088, allocations: 403.1 kB / 1.049 GB, free: 49.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002987/2.091, allocations: 0.5707 MB / 1.049 GB, free: 49.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * 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: Performance of Backend phase and start with SimCode phase: time 0.004145/2.095, allocations: 1.355 MB / 1.051 GB, free: 48.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01265/2.108, allocations: 1.46 MB / 1.052 GB, free: 46.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/2.108, allocations: 0 / 1.052 GB, free: 46.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003257/2.111, allocations: 371.5 kB / 1.052 GB, free: 46.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/2.113, allocations: 202.5 kB / 1.053 GB, free: 46.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007702/2.12, allocations: 2.376 MB / 1.055 GB, free: 43.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008789/2.121, allocations: 1.004 MB / 1.056 GB, free: 42.76 MB / 426.7 MB Notification: Performance of SimCode: time 1.744e-06/2.121, allocations: 0 / 1.056 GB, free: 42.76 MB / 426.7 MB Notification: Performance of Templates: time 0.03506/2.156, allocations: 20.18 MB / 1.076 GB, free: 22.65 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)