Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 182.3 kB / 8.52 MB, free: 1.832 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.28/1.28, allocations: 221.4 MB / 230.3 MB, free: 7.707 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.0009527/0.0009528, allocations: 86.17 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1929/0.1929, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.444e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1281, allocations: 61.92 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.135, allocations: 476.4 MB / 0.9594 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/1.135, allocations: 79.95 kB / 0.9594 GB, free: 144.8 MB / 0.5105 GB [/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: Performance of FrontEnd: time 0.5607/1.696, allocations: 184.9 MB / 1.14 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.766e-05/1.696, allocations: 19.5 kB / 1.14 GB, free: 114.9 MB / 0.5105 GB 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.002056/1.698, allocations: 1.001 MB / 1.141 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/1.698, allocations: 12.91 kB / 1.141 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/1.699, allocations: 177.3 kB / 1.141 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009735/1.7, allocations: 0.5538 MB / 1.142 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/1.7, allocations: 15.59 kB / 1.142 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.254e-05/1.7, allocations: 27.12 kB / 1.142 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006607/1.701, allocations: 457.6 kB / 1.142 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007152/1.702, allocations: 0.5504 MB / 1.143 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/1.702, allocations: 3.625 kB / 1.143 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/1.702, allocations: 3.906 kB / 1.143 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/1.702, allocations: 7.75 kB / 1.143 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/1.705, allocations: 3.048 MB / 1.146 GB, free: 112 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/1.705, allocations: 262 kB / 1.146 GB, free: 112 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/1.706, allocations: 120.7 kB / 1.146 GB, free: 112 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001991/1.706, allocations: 263 kB / 1.146 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/1.706, allocations: 257.4 kB / 1.147 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.146e-06/1.706, allocations: 0 / 1.147 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.00977/1.716, allocations: 1.499 MB / 1.148 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/1.716, allocations: 286 kB / 1.148 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005839/1.717, allocations: 0.4989 MB / 1.149 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/1.717, allocations: 32.89 kB / 1.149 GB, free: 111 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/1.717, allocations: 290.8 kB / 1.149 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/1.717, allocations: 90.95 kB / 1.149 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/1.717, allocations: 0 / 1.149 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.471e-05/1.717, allocations: 361.8 kB / 1.15 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/1.717, allocations: 157.5 kB / 1.15 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/1.717, allocations: 366.9 kB / 1.15 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009451/1.727, allocations: 1.415 MB / 1.151 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/1.727, allocations: 3.906 kB / 1.151 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01026/1.737, allocations: 1.762 MB / 1.153 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003293/1.738, allocations: 2.015 MB / 1.155 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/1.738, allocations: 5.688 kB / 1.155 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/1.738, allocations: 8.531 kB / 1.155 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006887/1.745, allocations: 0.6155 MB / 1.156 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/1.748, allocations: 1.045 MB / 1.157 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008701/1.749, allocations: 62.19 kB / 1.157 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.86e-05/1.749, allocations: 51.48 kB / 1.157 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/1.749, allocations: 3.594 kB / 1.157 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002532/1.752, allocations: 0.7734 MB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.752, allocations: 5.75 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/1.752, allocations: 9.156 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/1.752, allocations: 125.9 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/1.752, allocations: 10.84 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005618/1.753, allocations: 52.86 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.669e-05/1.753, allocations: 56.02 kB / 1.158 GB, free: 107.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (55): * Single equations (assignments): 53 * 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.0002123/1.753, allocations: 159 kB / 1.158 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/1.753, allocations: 65.16 kB / 1.158 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/1.757, allocations: 0.8057 MB / 1.159 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/1.757, allocations: 3.938 kB / 1.159 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/1.757, allocations: 0 / 1.159 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/1.757, allocations: 0 / 1.159 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006449/1.758, allocations: 459.1 kB / 1.159 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/1.758, allocations: 0 / 1.159 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.76, allocations: 185.4 kB / 1.16 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/1.76, allocations: 6.531 kB / 1.16 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/1.76, allocations: 10.28 kB / 1.16 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/1.761, allocations: 0.7382 MB / 1.16 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.761, allocations: 3.906 kB / 1.16 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003489/1.764, allocations: 0.7162 MB / 1.161 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/1.765, allocations: 150.8 kB / 1.161 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/1.765, allocations: 7.656 kB / 1.161 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/1.765, allocations: 18 kB / 1.161 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/1.765, allocations: 14.59 kB / 1.161 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-05/1.765, allocations: 15.39 kB / 1.161 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004266/1.766, allocations: 397.7 kB / 1.162 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001661/1.767, allocations: 0.5576 MB / 1.162 GB, free: 106.1 MB / 0.5105 GB 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 (24): * Single equations (assignments): 22 * 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.00181/1.769, allocations: 1.24 MB / 1.163 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.782, allocations: 1.483 MB / 1.165 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.782, allocations: 0 / 1.165 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003193/1.785, allocations: 398.6 kB / 1.165 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/1.786, allocations: 195.4 kB / 1.165 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/1.787, allocations: 0.6492 MB / 1.166 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007651/1.788, allocations: 1.036 MB / 1.167 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/1.788, allocations: 3.594 kB / 1.167 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.03603/1.824, allocations: 21.01 MB / 1.187 GB, free: 101 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)