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.001406/0.001405, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.5 MB / 230.7 MB, free: 7.527 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.0009516/0.0009516, allocations: 88.75 kB / 281.6 MB, free: 5.266 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.2628/0.2628, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.21e-05, allocations: 4.219 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1505, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.588/1.739, allocations: 476.5 MB / 0.96 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/1.739, allocations: 84.89 kB / 0.9601 GB, free: 125.2 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 - DAE generated: time 0.7012/2.44, allocations: 184.5 MB / 1.14 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.162e-06/2.44, allocations: 0 / 1.14 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.806e-05/2.44, allocations: 12.56 kB / 1.14 GB, free: 119.6 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.001878/2.442, allocations: 0.9889 MB / 1.141 GB, free: 119 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/2.442, allocations: 13.89 kB / 1.141 GB, free: 119 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/2.444, allocations: 173.8 kB / 1.141 GB, free: 119 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/2.445, allocations: 0.5535 MB / 1.142 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/2.445, allocations: 15.56 kB / 1.142 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.814e-05/2.445, allocations: 26.53 kB / 1.142 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007824/2.446, allocations: 452.8 kB / 1.142 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008438/2.446, allocations: 0.5458 MB / 1.143 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/2.446, allocations: 0 / 1.143 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/2.447, allocations: 6.219 kB / 1.143 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/2.447, allocations: 9.969 kB / 1.143 GB, free: 118.6 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.003723/2.45, allocations: 3.001 MB / 1.146 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007637/2.451, allocations: 281.8 kB / 1.146 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/2.451, allocations: 118.2 kB / 1.146 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002642/2.452, allocations: 269.9 kB / 1.147 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/2.452, allocations: 267.1 kB / 1.147 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/2.452, allocations: 0 / 1.147 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.008587/2.46, allocations: 1.428 MB / 1.148 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/2.461, allocations: 286.2 kB / 1.148 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005486/2.461, allocations: 0.4997 MB / 1.149 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/2.461, allocations: 25.7 kB / 1.149 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/2.461, allocations: 374.7 kB / 1.149 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.586e-05/2.461, allocations: 83.47 kB / 1.149 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/2.462, allocations: 0 / 1.149 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.842e-05/2.462, allocations: 362.2 kB / 1.15 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/2.462, allocations: 158.7 kB / 1.15 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/2.462, allocations: 367.2 kB / 1.15 GB, free: 114 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008064/2.47, allocations: 1.316 MB / 1.152 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/2.47, allocations: 3.25 kB / 1.152 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.008797/2.479, allocations: 1.704 MB / 1.153 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004216/2.48, allocations: 2.035 MB / 1.155 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/2.48, allocations: 7.844 kB / 1.155 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/2.48, allocations: 7.25 kB / 1.155 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005675/2.485, allocations: 0.6057 MB / 1.156 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/2.488, allocations: 1.015 MB / 1.157 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007876/2.489, allocations: 61.42 kB / 1.157 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.912e-05/2.489, allocations: 56.09 kB / 1.157 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/2.489, allocations: 5.031 kB / 1.157 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002291/2.492, allocations: 0.7705 MB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/2.492, allocations: 7.094 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/2.492, allocations: 11.84 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/2.492, allocations: 130.3 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/2.492, allocations: 15.11 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005466/2.493, allocations: 40.86 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-05/2.493, allocations: 52.08 kB / 1.158 GB, free: 110.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.0001983/2.493, allocations: 157.7 kB / 1.158 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/2.493, allocations: 61.84 kB / 1.158 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003314/2.496, allocations: 0.7742 MB / 1.159 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/2.496, allocations: 3.969 kB / 1.159 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/2.496, allocations: 3.891 kB / 1.159 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/2.496, allocations: 0 / 1.159 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006204/2.497, allocations: 466.9 kB / 1.159 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/2.497, allocations: 0 / 1.159 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/2.499, allocations: 176.1 kB / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/2.499, allocations: 0 / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/2.499, allocations: 3.844 kB / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009284/2.5, allocations: 0.7308 MB / 1.16 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/2.5, allocations: 3.5 kB / 1.16 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/2.503, allocations: 0.7166 MB / 1.161 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/2.503, allocations: 151 kB / 1.161 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/2.503, allocations: 7.312 kB / 1.161 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/2.503, allocations: 19.25 kB / 1.161 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/2.503, allocations: 17.06 kB / 1.161 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/2.503, allocations: 21.28 kB / 1.161 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004275/2.504, allocations: 398.2 kB / 1.162 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/2.504, allocations: 0 / 1.162 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001698/2.506, allocations: 0.5526 MB / 1.162 GB, free: 108.5 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.001964/2.508, allocations: 1.219 MB / 1.163 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01025/2.518, allocations: 1.546 MB / 1.165 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/2.518, allocations: 2.812 kB / 1.165 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00268/2.521, allocations: 405.9 kB / 1.165 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/2.522, allocations: 212.3 kB / 1.165 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/2.523, allocations: 0.6075 MB / 1.166 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/2.523, allocations: 0.8968 MB / 1.167 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001604/2.525, allocations: 0.8412 MB / 1.168 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002079/2.525, allocations: 75.06 kB / 1.168 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of SimCode: time 7.71e-07/2.525, allocations: 0 / 1.168 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.02643/2.552, allocations: 18.13 MB / 1.185 GB, free: 94.23 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)