Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001465/0.001465, allocations: 180.2 kB / 13.65 MB, free: 1.66 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.91/1.91, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001079/0.001079, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2748/0.2748, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.098e-05/4.121e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1576, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.724/1.882, allocations: 475.1 MB / 0.9368 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/1.882, allocations: 80.59 kB / 0.9368 GB, free: 162.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 1.021/2.903, allocations: 197.1 MB / 1.129 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.108e-06/2.903, allocations: 1.312 kB / 1.129 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.266e-05/2.903, allocations: 22.08 kB / 1.129 GB, free: 118.3 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.002861/2.906, allocations: 1.03 MB / 1.13 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/2.906, allocations: 9.469 kB / 1.13 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/2.908, allocations: 172.4 kB / 1.131 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/2.91, allocations: 0.5524 MB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.45e-05/2.91, allocations: 35.12 kB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/2.91, allocations: 41.53 kB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/2.911, allocations: 0.6007 MB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/2.911, allocations: 1.125 kB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.191e-05/2.911, allocations: 22.38 kB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/2.911, allocations: 14.66 kB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/2.912, allocations: 481.9 kB / 1.132 GB, free: 117.5 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.004456/2.917, allocations: 2.667 MB / 1.135 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/2.918, allocations: 288.8 kB / 1.135 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/2.918, allocations: 176.7 kB / 1.135 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003903/2.918, allocations: 243.6 kB / 1.136 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000581/2.919, allocations: 335.4 kB / 1.136 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 2.916e-06/2.919, allocations: 1.938 kB / 1.136 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001247/2.92, allocations: 497.7 kB / 1.136 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/2.92, allocations: 294.3 kB / 1.137 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008652/2.921, allocations: 0.5414 MB / 1.137 GB, free: 115 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/2.921, allocations: 31.42 kB / 1.137 GB, free: 115 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/2.922, allocations: 365.4 kB / 1.138 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/2.922, allocations: 116.8 kB / 1.138 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.718e-05/2.922, allocations: 10.09 kB / 1.138 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.202e-05/2.922, allocations: 332.3 kB / 1.138 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/2.922, allocations: 160.9 kB / 1.138 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/2.923, allocations: 380.5 kB / 1.138 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004948/2.923, allocations: 254.2 kB / 1.139 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/2.923, allocations: 3.953 kB / 1.139 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001435/2.925, allocations: 0.6135 MB / 1.139 GB, free: 114 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004416/2.925, allocations: 2.041 MB / 1.141 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/2.925, allocations: 3.312 kB / 1.141 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/2.925, allocations: 7.219 kB / 1.141 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01178/2.937, allocations: 0.5968 MB / 1.142 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006323/2.938, allocations: 0.6598 MB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/2.939, allocations: 79.41 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/2.939, allocations: 55.95 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/2.939, allocations: 3.75 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001275/2.94, allocations: 0.5433 MB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/2.94, allocations: 10.53 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/2.94, allocations: 7.375 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007557/2.941, allocations: 126.9 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/2.941, allocations: 7.906 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006165/2.942, allocations: 60.64 kB / 1.143 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.992e-05/2.942, allocations: 53.28 kB / 1.143 GB, free: 111.2 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.0002656/2.942, allocations: 167.7 kB / 1.144 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/2.942, allocations: 71.36 kB / 1.144 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/2.945, allocations: 0.8179 MB / 1.144 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/2.945, allocations: 7.797 kB / 1.144 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/2.945, allocations: 3.891 kB / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/2.945, allocations: 2.906 kB / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/2.948, allocations: 1.639 MB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/2.948, allocations: 2.344 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/2.951, allocations: 211.3 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/2.951, allocations: 7.469 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.368e-05/2.951, allocations: 17.5 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004043/2.952, allocations: 0.6486 MB / 1.147 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/2.952, allocations: 7.812 kB / 1.147 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/2.953, allocations: 0.7572 MB / 1.148 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/2.953, allocations: 151.1 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/2.953, allocations: 13.94 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000691/2.954, allocations: 29.09 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/2.954, allocations: 35.44 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.213e-05/2.954, allocations: 44.33 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000678/2.955, allocations: 444.5 kB / 1.148 GB, free: 109 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/2.955, allocations: 0 / 1.148 GB, free: 109 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002412/2.957, allocations: 0.6262 MB / 1.149 GB, free: 108.9 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.002604/2.96, allocations: 1.209 MB / 1.15 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02097/2.981, allocations: 1.627 MB / 1.152 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/2.981, allocations: 0 / 1.152 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005213/2.986, allocations: 490.5 kB / 1.152 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/2.989, allocations: 293 kB / 1.153 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/2.99, allocations: 0.7508 MB / 1.153 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/2.991, allocations: 0.8995 MB / 1.154 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006288/2.991, allocations: 112.8 kB / 1.154 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.021e-06/2.992, allocations: 0 / 1.154 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.0371/3.029, allocations: 19.99 MB / 1.174 GB, free: 106.4 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches