Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 199.3 kB / 16.78 MB, free: 5.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.5 MB / 244.1 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008965/0.0008968, allocations: 110.9 kB / 296.2 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3766/0.3766, allocations: 44.81 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002783, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.408, allocations: 62.95 MB / 0.5165 GB, free: 37.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.068/1.476, allocations: 478.3 MB / 0.9835 GB, free: 139.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/1.476, allocations: 83.95 kB / 0.9836 GB, free: 139.6 MB / 0.5417 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.621/2.097, allocations: 189.5 MB / 1.169 GB, free: 131.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.866e-06/2.097, allocations: 3.234 kB / 1.169 GB, free: 131.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.427e-05/2.097, allocations: 14.44 kB / 1.169 GB, free: 131.3 MB / 0.5417 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.002407/2.1, allocations: 1.076 MB / 1.17 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/2.1, allocations: 15 kB / 1.17 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/2.101, allocations: 175 kB / 1.17 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009638/2.102, allocations: 0.5765 MB / 1.171 GB, free: 130.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/2.102, allocations: 32.25 kB / 1.171 GB, free: 130.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.327e-05/2.102, allocations: 43.81 kB / 1.171 GB, free: 130.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009823/2.103, allocations: 0.6194 MB / 1.171 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/2.103, allocations: 4.688 kB / 1.171 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-05/2.103, allocations: 25.44 kB / 1.171 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/2.103, allocations: 11.81 kB / 1.171 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007061/2.104, allocations: 493.7 kB / 1.172 GB, free: 130.2 MB / 0.5417 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.002814/2.107, allocations: 2.654 MB / 1.174 GB, free: 128.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004875/2.107, allocations: 284.6 kB / 1.175 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/2.108, allocations: 185.6 kB / 1.175 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003126/2.108, allocations: 347.9 kB / 1.175 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004276/2.108, allocations: 349.9 kB / 1.175 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=35): time 3.647e-06/2.108, allocations: 0 / 1.175 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35): time 0.001117/2.11, allocations: 0.6554 MB / 1.176 GB, free: 128 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.103e-05/2.11, allocations: 296.1 kB / 1.176 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006607/2.11, allocations: 0.6157 MB / 1.177 GB, free: 127.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/2.11, allocations: 36.95 kB / 1.177 GB, free: 127.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/2.111, allocations: 337.6 kB / 1.177 GB, free: 127.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/2.111, allocations: 115.7 kB / 1.177 GB, free: 127.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/2.111, allocations: 8.844 kB / 1.177 GB, free: 127.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001055/2.111, allocations: 375.9 kB / 1.178 GB, free: 127 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/2.111, allocations: 165 kB / 1.178 GB, free: 127 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/2.112, allocations: 389.8 kB / 1.178 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/2.112, allocations: 0.5721 MB / 1.179 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/2.112, allocations: 3.312 kB / 1.179 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009405/2.113, allocations: 0.6667 MB / 1.18 GB, free: 126 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/2.113, allocations: 279.3 kB / 1.18 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/2.113, allocations: 7.547 kB / 1.18 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/2.113, allocations: 7.344 kB / 1.18 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005655/2.119, allocations: 0.613 MB / 1.18 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004477/2.119, allocations: 0.66 MB / 1.181 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/2.12, allocations: 80.05 kB / 1.181 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.946e-05/2.12, allocations: 54.58 kB / 1.181 GB, free: 125 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/2.12, allocations: 7.875 kB / 1.181 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008527/2.121, allocations: 0.5583 MB / 1.182 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/2.121, allocations: 7.781 kB / 1.182 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.295e-06/2.121, allocations: 8.469 kB / 1.182 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/2.121, allocations: 124.2 kB / 1.182 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/2.121, allocations: 14.34 kB / 1.182 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/2.122, allocations: 63.03 kB / 1.182 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.526e-05/2.122, allocations: 48.88 kB / 1.182 GB, free: 124.7 MB / 0.5417 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.0003738/2.122, allocations: 312 kB / 1.182 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.089e-05/2.123, allocations: 69.66 kB / 1.182 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/2.124, allocations: 1.189 MB / 1.183 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/2.124, allocations: 7.531 kB / 1.184 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/2.124, allocations: 0 / 1.184 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/2.124, allocations: 6.156 kB / 1.184 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/2.127, allocations: 2.308 MB / 1.186 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/2.127, allocations: 3.938 kB / 1.186 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/2.129, allocations: 218.8 kB / 1.186 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.221e-05/2.129, allocations: 9.281 kB / 1.186 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/2.129, allocations: 25.25 kB / 1.186 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003687/2.129, allocations: 0.6429 MB / 1.187 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/2.129, allocations: 7.906 kB / 1.187 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/2.13, allocations: 0.7178 MB / 1.187 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/2.13, allocations: 156.9 kB / 1.187 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/2.131, allocations: 13.25 kB / 1.188 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/2.131, allocations: 31.56 kB / 1.188 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/2.131, allocations: 42.94 kB / 1.188 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/2.131, allocations: 38.75 kB / 1.188 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000505/2.132, allocations: 451.8 kB / 1.188 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/2.132, allocations: 0 / 1.188 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002045/2.134, allocations: 0.5793 MB / 1.189 GB, free: 120.5 MB / 0.5417 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.002303/2.136, allocations: 1.107 MB / 1.19 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01025/2.146, allocations: 1.638 MB / 1.191 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/2.146, allocations: 3.625 kB / 1.191 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002747/2.149, allocations: 485.8 kB / 1.192 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/2.151, allocations: 307.3 kB / 1.192 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/2.153, allocations: 1.321 MB / 1.193 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/2.153, allocations: 0.8824 MB / 1.194 GB, free: 118.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/2.154, allocations: 141.2 kB / 1.194 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of SimCode: time 8.32e-07/2.154, allocations: 0 / 1.194 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.02388/2.177, allocations: 19.37 MB / 1.213 GB, free: 115.1 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches