Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009043/0.0009043, allocations: 86.12 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1991/0.1991, allocations: 45.14 MB / 383.7 MB, free: 244 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.835e-05, allocations: 4 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8648/0.9764, allocations: 290.6 MB / 0.7881 GB, free: 160.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.9767, allocations: 86.52 kB / 0.7882 GB, free: 160.1 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.2116/1.188, allocations: 118.7 MB / 0.9041 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.463e-06/1.188, allocations: 0 / 0.9041 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.654e-05/1.188, allocations: 23.98 kB / 0.9041 GB, free: 51.45 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001266/1.19, allocations: 0.851 MB / 0.9049 GB, free: 50.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/1.19, allocations: 8.031 kB / 0.905 GB, free: 50.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002946/1.19, allocations: 87.14 kB / 0.905 GB, free: 50.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007609/1.191, allocations: 0.5234 MB / 0.9056 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/1.191, allocations: 12 kB / 0.9056 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/1.191, allocations: 28 kB / 0.9056 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005784/1.191, allocations: 482.4 kB / 0.906 GB, free: 49.38 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/1.192, allocations: 0.5929 MB / 0.9066 GB, free: 48.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/1.192, allocations: 0 / 0.9066 GB, free: 48.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/1.192, allocations: 4 kB / 0.9066 GB, free: 48.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/1.192, allocations: 12 kB / 0.9066 GB, free: 48.71 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/1.195, allocations: 2.976 MB / 0.9095 GB, free: 45.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/1.195, allocations: 198.8 kB / 0.9097 GB, free: 45.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/1.195, allocations: 129.1 kB / 0.9099 GB, free: 45.23 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001783/1.195, allocations: 340.4 kB / 0.9102 GB, free: 44.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/1.196, allocations: 275.9 kB / 0.9104 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.383e-06/1.196, allocations: 0 / 0.9104 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.002615/1.198, allocations: 0.6597 MB / 0.9111 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/1.198, allocations: 290.7 kB / 0.9114 GB, free: 43.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/1.199, allocations: 381.2 kB / 0.9117 GB, free: 43.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/1.199, allocations: 29.64 kB / 0.9118 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/1.199, allocations: 342.9 kB / 0.9121 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/1.199, allocations: 94.69 kB / 0.9122 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.162e-05/1.199, allocations: 0 / 0.9122 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.058e-05/1.199, allocations: 358.8 kB / 0.9125 GB, free: 42.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/1.199, allocations: 133.1 kB / 0.9126 GB, free: 42.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/1.199, allocations: 351.9 kB / 0.913 GB, free: 41.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/1.202, allocations: 0.4915 MB / 0.9135 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.202, allocations: 4 kB / 0.9135 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003029/1.205, allocations: 0.8285 MB / 0.9143 GB, free: 40.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003857/1.205, allocations: 2.132 MB / 0.9164 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/1.205, allocations: 8.016 kB / 0.9164 GB, free: 38.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.205, allocations: 16 kB / 0.9164 GB, free: 38.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009735/1.206, allocations: 175.7 kB / 0.9165 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006283/1.207, allocations: 0.6718 MB / 0.9172 GB, free: 37.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004456/1.207, allocations: 55.42 kB / 0.9173 GB, free: 37.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.167e-05/1.207, allocations: 31.98 kB / 0.9173 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.295e-06/1.207, allocations: 4 kB / 0.9173 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001827/1.209, allocations: 0.6401 MB / 0.9179 GB, free: 36.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/1.209, allocations: 4 kB / 0.9179 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/1.209, allocations: 8 kB / 0.9179 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003091/1.209, allocations: 115.8 kB / 0.918 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/1.209, allocations: 11.98 kB / 0.9181 GB, free: 36.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/1.21, allocations: 43.98 kB / 0.9181 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/1.21, allocations: 31.98 kB / 0.9181 GB, free: 36.26 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 54 * 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.0001579/1.21, allocations: 156.5 kB / 0.9183 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.131e-05/1.21, allocations: 55.34 kB / 0.9183 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/1.212, allocations: 0.8075 MB / 0.9191 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/1.212, allocations: 8 kB / 0.9191 GB, free: 35.22 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/1.212, allocations: 0 / 0.9191 GB, free: 35.22 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/1.212, allocations: 7.922 kB / 0.9191 GB, free: 35.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/1.212, allocations: 462 kB / 0.9196 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.212, allocations: 0 / 0.9196 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/1.213, allocations: 119.8 kB / 0.9197 GB, free: 34.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/1.213, allocations: 0 / 0.9197 GB, free: 34.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/1.213, allocations: 11.98 kB / 0.9197 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002982/1.213, allocations: 0.621 MB / 0.9203 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.213, allocations: 4 kB / 0.9203 GB, free: 33.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/1.214, allocations: 0.5909 MB / 0.9209 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/1.215, allocations: 200.1 kB / 0.9211 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.451e-05/1.215, allocations: 8 kB / 0.9211 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/1.215, allocations: 23.92 kB / 0.9211 GB, free: 33.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.283e-05/1.215, allocations: 28.28 kB / 0.9211 GB, free: 33.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/1.215, allocations: 19.98 kB / 0.9212 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002579/1.215, allocations: 303 kB / 0.9214 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.215, allocations: 0 / 0.9214 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001092/1.216, allocations: 451.1 kB / 0.9219 GB, free: 32.31 MB / 0.5261 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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.0007862/1.217, allocations: 470.4 kB / 0.9223 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001609/1.219, allocations: 0.8494 MB / 0.9231 GB, free: 30.96 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/1.219, allocations: 0 / 0.9231 GB, free: 30.96 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006869/1.22, allocations: 349.3 kB / 0.9235 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008597/1.22, allocations: 195.5 kB / 0.9237 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/1.222, allocations: 0.6933 MB / 0.9243 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/1.222, allocations: 0.9042 MB / 0.9252 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006341/1.223, allocations: 212 kB / 0.9254 GB, free: 28.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/1.223, allocations: 59.41 kB / 0.9255 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of SimCode: time 2.2e-07/1.223, allocations: 0 / 0.9255 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of Templates: time 0.01728/1.24, allocations: 13.17 MB / 0.9383 GB, free: 15.42 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches