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.00102/0.00102, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.285/1.285, allocations: 223.2 MB / 241 MB, free: 11.87 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.001008/0.001008, allocations: 86.23 kB / 292.2 MB, free: 10.91 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.3782/0.3782, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 15.98 kB / 459.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4347, allocations: 61.9 MB / 0.5096 GB, free: 38.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.164/1.599, allocations: 477.2 MB / 0.9756 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/1.6, allocations: 93 kB / 0.9757 GB, free: 124.2 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.694/2.294, allocations: 190.7 MB / 1.162 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.914e-06/2.294, allocations: 0 / 1.162 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.664e-05/2.294, allocations: 22.78 kB / 1.162 GB, free: 119.7 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.002415/2.296, allocations: 1.073 MB / 1.163 GB, free: 119 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/2.296, allocations: 11.47 kB / 1.163 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/2.297, allocations: 169.4 kB / 1.163 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009623/2.298, allocations: 0.5565 MB / 1.164 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/2.299, allocations: 35.16 kB / 1.164 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.398e-05/2.299, allocations: 41.59 kB / 1.164 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009178/2.3, allocations: 0.6229 MB / 1.164 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/2.3, allocations: 0 / 1.164 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.677e-05/2.3, allocations: 21.59 kB / 1.164 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/2.3, allocations: 18.94 kB / 1.164 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006787/2.3, allocations: 490.7 kB / 1.165 GB, free: 118.1 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.002908/2.303, allocations: 2.66 MB / 1.167 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/2.304, allocations: 292.7 kB / 1.168 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003208/2.304, allocations: 345.7 kB / 1.168 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004309/2.305, allocations: 350.8 kB / 1.168 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=35): time 1.373e-06/2.305, allocations: 0 / 1.168 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35): time 0.001174/2.306, allocations: 0.7273 MB / 1.169 GB, free: 115 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/2.306, allocations: 297.7 kB / 1.169 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/2.306, allocations: 0.5576 MB / 1.17 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/2.307, allocations: 33.55 kB / 1.17 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/2.307, allocations: 327.8 kB / 1.17 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.946e-05/2.307, allocations: 121.4 kB / 1.17 GB, free: 114 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.06e-05/2.307, allocations: 7.656 kB / 1.17 GB, free: 114 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001242/2.307, allocations: 371.6 kB / 1.171 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/2.307, allocations: 163.3 kB / 1.171 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/2.308, allocations: 392.9 kB / 1.171 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/2.308, allocations: 245 kB / 1.172 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/2.308, allocations: 0 / 1.172 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009214/2.309, allocations: 0.6753 MB / 1.172 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005395/2.309, allocations: 2.036 MB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/2.309, allocations: 7.781 kB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/2.31, allocations: 7.781 kB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006435/2.316, allocations: 0.604 MB / 1.175 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004372/2.316, allocations: 0.6629 MB / 1.175 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006327/2.317, allocations: 75.75 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.46e-05/2.317, allocations: 51.58 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/2.317, allocations: 15.39 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008238/2.318, allocations: 0.551 MB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/2.318, allocations: 3.594 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.767e-06/2.318, allocations: 7.281 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/2.318, allocations: 129.2 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/2.318, allocations: 14.66 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003988/2.319, allocations: 59.61 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/2.319, allocations: 50.08 kB / 1.176 GB, free: 109.8 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.0003963/2.319, allocations: 313.6 kB / 1.177 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.363e-05/2.319, allocations: 66.23 kB / 1.177 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001915/2.321, allocations: 1.205 MB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/2.321, allocations: 3.875 kB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/2.321, allocations: 0 / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/2.321, allocations: 2.812 kB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/2.324, allocations: 2.295 MB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/2.324, allocations: 8.219 kB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/2.325, allocations: 217.3 kB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/2.325, allocations: 7.875 kB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/2.326, allocations: 24.41 kB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003001/2.326, allocations: 0.6444 MB / 1.181 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/2.326, allocations: 7.906 kB / 1.181 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009116/2.327, allocations: 0.8493 MB / 1.182 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/2.327, allocations: 156.5 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/2.327, allocations: 11.88 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/2.327, allocations: 40.92 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.693e-05/2.328, allocations: 39.34 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/2.328, allocations: 34.19 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004403/2.328, allocations: 451.2 kB / 1.183 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/2.328, allocations: 0 / 1.183 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002022/2.33, allocations: 0.5709 MB / 1.183 GB, free: 105.4 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.001965/2.332, allocations: 1.101 MB / 1.184 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01219/2.344, allocations: 1.639 MB / 1.186 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/2.344, allocations: 0 / 1.186 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003037/2.347, allocations: 474.9 kB / 1.186 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/2.349, allocations: 307.5 kB / 1.187 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/2.351, allocations: 1.284 MB / 1.188 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/2.352, allocations: 0.902 MB / 1.189 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002025/2.354, allocations: 0.9911 MB / 1.19 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/2.354, allocations: 111.6 kB / 1.19 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.913e-06/2.354, allocations: 0 / 1.19 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.03975/2.394, allocations: 25.24 MB / 1.214 GB, free: 88.09 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)