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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 183.6 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 242.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008396/0.0008396, allocations: 102 kB / 293.3 MB, free: 10.75 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.3652/0.3652, allocations: 44.15 MB / 388.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004214, allocations: 15.98 kB / 461.1 MB, free: 1.293 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4286, allocations: 61.88 MB / 0.5107 GB, free: 38.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.437, allocations: 477.3 MB / 0.9769 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/1.437, allocations: 91.94 kB / 0.977 GB, free: 123.8 MB / 0.5261 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 - DAE generated: time 0.6364/2.073, allocations: 189.4 MB / 1.162 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.415e-06/2.073, allocations: 0 / 1.162 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.164e-05/2.074, allocations: 15.78 kB / 1.162 GB, free: 120.3 MB / 0.5261 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.003249/2.077, allocations: 1.075 MB / 1.163 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/2.077, allocations: 9.594 kB / 1.163 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/2.078, allocations: 171.8 kB / 1.163 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/2.08, allocations: 0.5834 MB / 1.164 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/2.08, allocations: 31.44 kB / 1.164 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/2.08, allocations: 40.47 kB / 1.164 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/2.081, allocations: 0.6183 MB / 1.164 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/2.081, allocations: 10.62 kB / 1.164 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.76e-05/2.081, allocations: 19.38 kB / 1.164 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/2.081, allocations: 10.81 kB / 1.164 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007484/2.082, allocations: 499.5 kB / 1.165 GB, free: 118.6 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003325/2.085, allocations: 2.656 MB / 1.168 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/2.086, allocations: 282.8 kB / 1.168 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/2.086, allocations: 186.8 kB / 1.168 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/2.086, allocations: 351 kB / 1.168 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004273/2.087, allocations: 351.4 kB / 1.169 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=35): time 3.957e-06/2.087, allocations: 3.531 kB / 1.169 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35): time 0.001089/2.088, allocations: 0.6452 MB / 1.169 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/2.088, allocations: 300.5 kB / 1.17 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006626/2.089, allocations: 0.6161 MB / 1.17 GB, free: 115 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/2.089, allocations: 33.52 kB / 1.17 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/2.089, allocations: 332 kB / 1.171 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001/2.089, allocations: 122.5 kB / 1.171 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/2.089, allocations: 7.938 kB / 1.171 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001042/2.089, allocations: 372.1 kB / 1.171 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/2.089, allocations: 172.3 kB / 1.171 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/2.09, allocations: 389.3 kB / 1.172 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006289/2.09, allocations: 0.571 MB / 1.172 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/2.09, allocations: 0 / 1.172 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009866/2.091, allocations: 0.6764 MB / 1.173 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001568/2.092, allocations: 274.3 kB / 1.173 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/2.092, allocations: 7.125 kB / 1.173 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/2.092, allocations: 11.25 kB / 1.173 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005437/2.097, allocations: 0.6042 MB / 1.174 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004516/2.098, allocations: 0.6647 MB / 1.174 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006707/2.098, allocations: 68.61 kB / 1.174 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/2.098, allocations: 53.25 kB / 1.174 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/2.098, allocations: 9.219 kB / 1.174 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008813/2.099, allocations: 0.5693 MB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/2.099, allocations: 3.938 kB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/2.099, allocations: 7.844 kB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003592/2.1, allocations: 124.6 kB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/2.1, allocations: 11.42 kB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00052/2.1, allocations: 68.2 kB / 1.175 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-05/2.1, allocations: 50.08 kB / 1.175 GB, free: 111.9 MB / 0.5261 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 () * Number of clocked 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.000445/2.101, allocations: 311.7 kB / 1.176 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/2.101, allocations: 69.53 kB / 1.176 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/2.103, allocations: 1.186 MB / 1.177 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/2.103, allocations: 3.625 kB / 1.177 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/2.103, allocations: 3.375 kB / 1.177 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/2.103, allocations: 2.625 kB / 1.177 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/2.105, allocations: 2.305 MB / 1.179 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/2.105, allocations: 3.719 kB / 1.179 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/2.107, allocations: 217.2 kB / 1.179 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/2.107, allocations: 3.594 kB / 1.179 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/2.107, allocations: 30.22 kB / 1.179 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000342/2.107, allocations: 0.6406 MB / 1.18 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/2.107, allocations: 14.83 kB / 1.18 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009577/2.108, allocations: 0.7197 MB / 1.181 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/2.109, allocations: 158.8 kB / 1.181 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/2.109, allocations: 15.69 kB / 1.181 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/2.109, allocations: 32.19 kB / 1.181 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/2.109, allocations: 40.98 kB / 1.181 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-05/2.109, allocations: 36.7 kB / 1.181 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005658/2.11, allocations: 453.2 kB / 1.181 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1e-07/2.11, allocations: 0 / 1.181 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002747/2.113, allocations: 0.5695 MB / 1.182 GB, free: 107.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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.003772/2.117, allocations: 1.091 MB / 1.183 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01045/2.127, allocations: 1.638 MB / 1.185 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/2.127, allocations: 3.844 kB / 1.185 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002643/2.13, allocations: 482.9 kB / 1.185 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/2.132, allocations: 313.8 kB / 1.185 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/2.134, allocations: 1.287 MB / 1.187 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/2.134, allocations: 0.8864 MB / 1.187 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001959/2.136, allocations: 0.9944 MB / 1.188 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/2.136, allocations: 109.2 kB / 1.188 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of SimCode: time 7.21e-07/2.136, allocations: 3.938 kB / 1.188 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.03539/2.172, allocations: 25.78 MB / 1.214 GB, free: 89.79 MB / 0.5261 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)