Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003475/0.003475, allocations: 181.4 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.405/1.405, allocations: 194.2 MB / 202.1 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001809/0.001809, allocations: 121.5 kB / 247.1 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1981/0.1981, allocations: 39.94 MB / 331.9 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.582e-06/6.613e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 54.87 MB / 447.7 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.13/1.245, allocations: 469.2 MB / 0.8954 GB, free: 137.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/1.245, allocations: 82.44 kB / 0.8954 GB, free: 137.2 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.5961/1.841, allocations: 190.3 MB / 1.081 GB, free: 106.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.401e-05/1.842, allocations: 22.02 kB / 1.081 GB, free: 106.3 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003324/1.845, allocations: 1.03 MB / 1.082 GB, free: 105.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/1.845, allocations: 7.906 kB / 1.082 GB, free: 105.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/1.847, allocations: 182.4 kB / 1.082 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/1.848, allocations: 0.578 MB / 1.083 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/1.848, allocations: 14.97 kB / 1.083 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/1.848, allocations: 22.03 kB / 1.083 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007598/1.849, allocations: 445.2 kB / 1.084 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008069/1.85, allocations: 0.538 MB / 1.084 GB, free: 105.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/1.85, allocations: 0 / 1.084 GB, free: 105.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/1.85, allocations: 3.938 kB / 1.084 GB, free: 105.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/1.85, allocations: 15.69 kB / 1.084 GB, free: 105.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/1.854, allocations: 2.733 MB / 1.087 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/1.854, allocations: 243.8 kB / 1.087 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/1.854, allocations: 119.9 kB / 1.087 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002456/1.854, allocations: 197.2 kB / 1.087 GB, free: 103.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/1.855, allocations: 194.8 kB / 1.087 GB, free: 103.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/1.855, allocations: 0 / 1.087 GB, free: 103.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.01032/1.865, allocations: 1.582 MB / 1.089 GB, free: 103.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/1.865, allocations: 162.9 kB / 1.089 GB, free: 102.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007643/1.866, allocations: 0.5037 MB / 1.09 GB, free: 102.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/1.866, allocations: 26.55 kB / 1.09 GB, free: 102.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/1.866, allocations: 310.8 kB / 1.09 GB, free: 102.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/1.866, allocations: 75.55 kB / 1.09 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/1.866, allocations: 0 / 1.09 GB, free: 102.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/1.867, allocations: 372.7 kB / 1.09 GB, free: 102 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/1.867, allocations: 145.4 kB / 1.091 GB, free: 101.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/1.867, allocations: 376.6 kB / 1.091 GB, free: 101.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009908/1.877, allocations: 1.524 MB / 1.092 GB, free: 101.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.508e-05/1.877, allocations: 4.719 kB / 1.092 GB, free: 101.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0114/1.888, allocations: 1.897 MB / 1.094 GB, free: 101.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005529/1.889, allocations: 2.699 MB / 1.097 GB, free: 98.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/1.889, allocations: 6.688 kB / 1.097 GB, free: 98.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.761e-05/1.889, allocations: 17.81 kB / 1.097 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00689/1.896, allocations: 0.6333 MB / 1.098 GB, free: 98.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/1.9, allocations: 1.037 MB / 1.099 GB, free: 97.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008646/1.901, allocations: 64.31 kB / 1.099 GB, free: 97.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/1.901, allocations: 54.39 kB / 1.099 GB, free: 97.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/1.901, allocations: 6.281 kB / 1.099 GB, free: 97.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003151/1.904, allocations: 0.9175 MB / 1.1 GB, free: 97.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/1.904, allocations: 10.81 kB / 1.1 GB, free: 97.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/1.904, allocations: 14.91 kB / 1.1 GB, free: 97.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/1.905, allocations: 134.9 kB / 1.1 GB, free: 97.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/1.905, allocations: 18.45 kB / 1.1 GB, free: 97.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/1.905, allocations: 45.91 kB / 1.1 GB, free: 97.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.493e-05/1.905, allocations: 57.5 kB / 1.1 GB, free: 97.41 MB / 474.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: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * 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.0002631/1.906, allocations: 170.8 kB / 1.1 GB, free: 97.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/1.906, allocations: 57.12 kB / 1.1 GB, free: 97.22 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003673/1.909, allocations: 0.7812 MB / 1.101 GB, free: 97.01 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.909, allocations: 2.75 kB / 1.101 GB, free: 97.01 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.909, allocations: 0 / 1.101 GB, free: 97.01 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/1.909, allocations: 1.375 kB / 1.101 GB, free: 97.01 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007719/1.91, allocations: 441.7 kB / 1.101 GB, free: 96.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.91, allocations: 1.375 kB / 1.101 GB, free: 96.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.912, allocations: 180.3 kB / 1.101 GB, free: 96.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/1.912, allocations: 1.375 kB / 1.101 GB, free: 96.74 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/1.912, allocations: 10.05 kB / 1.101 GB, free: 96.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/1.913, allocations: 0.7274 MB / 1.102 GB, free: 96.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.913, allocations: 7.922 kB / 1.102 GB, free: 96.11 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003208/1.917, allocations: 0.6857 MB / 1.103 GB, free: 95.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/1.917, allocations: 148.7 kB / 1.103 GB, free: 95.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/1.917, allocations: 7.312 kB / 1.103 GB, free: 95.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/1.917, allocations: 17.5 kB / 1.103 GB, free: 95.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.883e-05/1.917, allocations: 14.17 kB / 1.103 GB, free: 95.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/1.917, allocations: 19.38 kB / 1.103 GB, free: 95.74 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005235/1.918, allocations: 403 kB / 1.103 GB, free: 95.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003001/1.921, allocations: 0.5745 MB / 1.104 GB, free: 95.38 MB / 474.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,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.003802/1.925, allocations: 1.356 MB / 1.105 GB, free: 95.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.013/1.938, allocations: 1.485 MB / 1.107 GB, free: 94.81 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/1.938, allocations: 0 / 1.107 GB, free: 94.81 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003371/1.941, allocations: 395.3 kB / 1.107 GB, free: 94.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/1.943, allocations: 197.3 kB / 1.107 GB, free: 94.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007639/1.95, allocations: 2.377 MB / 1.11 GB, free: 93.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009296/1.951, allocations: 1.011 MB / 1.111 GB, free: 92.72 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/1.951, allocations: 0 / 1.111 GB, free: 92.72 MB / 474.7 MB Notification: Performance of Templates: time 0.03541/1.987, allocations: 20.33 MB / 1.13 GB, free: 75.22 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)