Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 182.5 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008347/0.0008347, allocations: 101.5 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3343/0.3343, allocations: 43.48 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.573e-05, allocations: 0 / 425.3 MB, free: 8.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 58.84 MB / 484.2 MB, free: 13.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.085/1.196, allocations: 475.1 MB / 0.9368 GB, free: 173 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/1.196, allocations: 85.11 kB / 0.9368 GB, free: 172.9 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.5856/1.781, allocations: 197.2 MB / 1.129 GB, free: 99.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.242e-06/1.781, allocations: 0 / 1.129 GB, free: 99.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.604e-05/1.781, allocations: 17.7 kB / 1.129 GB, free: 99.38 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.001892/1.783, allocations: 1.026 MB / 1.13 GB, free: 98.89 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/1.783, allocations: 9.188 kB / 1.13 GB, free: 98.89 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/1.785, allocations: 172.1 kB / 1.131 GB, free: 98.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008648/1.785, allocations: 0.5558 MB / 1.131 GB, free: 98.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/1.786, allocations: 35.83 kB / 1.131 GB, free: 98.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.404e-05/1.786, allocations: 40.44 kB / 1.131 GB, free: 98.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007781/1.786, allocations: 0.6057 MB / 1.132 GB, free: 98.49 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/1.786, allocations: 0 / 1.132 GB, free: 98.49 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/1.786, allocations: 24.34 kB / 1.132 GB, free: 98.49 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/1.786, allocations: 9.719 kB / 1.132 GB, free: 98.49 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005744/1.787, allocations: 482 kB / 1.132 GB, free: 98.48 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.002407/1.789, allocations: 2.672 MB / 1.135 GB, free: 96.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003905/1.79, allocations: 283.5 kB / 1.135 GB, free: 96.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/1.79, allocations: 180.7 kB / 1.135 GB, free: 96.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002466/1.79, allocations: 232.2 kB / 1.136 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/1.791, allocations: 340 kB / 1.136 GB, free: 96.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 1.603e-06/1.791, allocations: 0 / 1.136 GB, free: 96.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.0007204/1.791, allocations: 0.4886 MB / 1.136 GB, free: 96.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/1.792, allocations: 292.1 kB / 1.137 GB, free: 96.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004905/1.792, allocations: 0.5449 MB / 1.137 GB, free: 96.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/1.792, allocations: 36.02 kB / 1.137 GB, free: 96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/1.792, allocations: 337.4 kB / 1.138 GB, free: 95.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.91e-05/1.792, allocations: 114.6 kB / 1.138 GB, free: 95.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/1.792, allocations: 10.22 kB / 1.138 GB, free: 95.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.91e-05/1.792, allocations: 378.4 kB / 1.138 GB, free: 95.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/1.793, allocations: 164.7 kB / 1.138 GB, free: 95.49 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/1.793, allocations: 380.8 kB / 1.139 GB, free: 95.24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/1.793, allocations: 246.6 kB / 1.139 GB, free: 95.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.793, allocations: 0 / 1.139 GB, free: 95.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008003/1.794, allocations: 0.6548 MB / 1.139 GB, free: 95.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003355/1.794, allocations: 2.037 MB / 1.141 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.794, allocations: 10.19 kB / 1.141 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/1.794, allocations: 6.344 kB / 1.141 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005524/1.8, allocations: 0.6013 MB / 1.142 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004092/1.8, allocations: 0.6667 MB / 1.143 GB, free: 92.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/1.801, allocations: 72.58 kB / 1.143 GB, free: 92.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.95e-05/1.801, allocations: 52.38 kB / 1.143 GB, free: 92.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/1.801, allocations: 3.281 kB / 1.143 GB, free: 92.39 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000729/1.802, allocations: 0.5458 MB / 1.143 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/1.802, allocations: 4.875 kB / 1.143 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/1.802, allocations: 9.531 kB / 1.143 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/1.802, allocations: 123.5 kB / 1.143 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/1.802, allocations: 20.5 kB / 1.143 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/1.803, allocations: 71.72 kB / 1.144 GB, free: 92.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/1.803, allocations: 48.98 kB / 1.144 GB, free: 92.33 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.0001594/1.803, allocations: 177.4 kB / 1.144 GB, free: 92.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/1.803, allocations: 66.56 kB / 1.144 GB, free: 92.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/1.804, allocations: 0.8125 MB / 1.145 GB, free: 92.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/1.804, allocations: 2.562 kB / 1.145 GB, free: 92.04 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.804, allocations: 0 / 1.145 GB, free: 92.04 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.804, allocations: 0 / 1.145 GB, free: 92.04 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/1.806, allocations: 1.643 MB / 1.146 GB, free: 91.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/1.806, allocations: 3.344 kB / 1.146 GB, free: 91.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/1.808, allocations: 216.8 kB / 1.146 GB, free: 91.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/1.808, allocations: 3.344 kB / 1.146 GB, free: 91.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/1.808, allocations: 22.12 kB / 1.146 GB, free: 91.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002706/1.808, allocations: 0.6441 MB / 1.147 GB, free: 90.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.808, allocations: 3.25 kB / 1.147 GB, free: 90.67 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007322/1.809, allocations: 0.7653 MB / 1.148 GB, free: 90.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/1.809, allocations: 148.8 kB / 1.148 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/1.809, allocations: 15.59 kB / 1.148 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/1.81, allocations: 28.83 kB / 1.148 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.965e-05/1.81, allocations: 42.09 kB / 1.148 GB, free: 90.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/1.81, allocations: 36.97 kB / 1.148 GB, free: 90.16 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003935/1.81, allocations: 449.1 kB / 1.148 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.6e-07/1.81, allocations: 2.688 kB / 1.148 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001754/1.812, allocations: 0.6187 MB / 1.149 GB, free: 90 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (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.001727/1.814, allocations: 1.211 MB / 1.15 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.824, allocations: 1.643 MB / 1.152 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.824, allocations: 2.656 kB / 1.152 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002809/1.827, allocations: 486.5 kB / 1.152 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/1.828, allocations: 294.5 kB / 1.153 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/1.83, allocations: 0.7275 MB / 1.153 GB, free: 89.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/1.83, allocations: 0.9009 MB / 1.154 GB, free: 88.59 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001323/1.831, allocations: 321.8 kB / 1.155 GB, free: 88.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/1.832, allocations: 84.55 kB / 1.155 GB, free: 88.56 MB / 0.5105 GB Notification: Performance of SimCode: time 6.31e-07/1.832, allocations: 3.219 kB / 1.155 GB, free: 88.56 MB / 0.5105 GB Notification: Performance of Templates: time 0.03766/1.869, allocations: 29.66 MB / 1.184 GB, free: 87.14 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches