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.001068/0.001068, allocations: 170.3 kB / 16.76 MB, free: 4.926 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.606/1.606, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0008104/0.0008104, allocations: 97.09 kB / 271.3 MB, free: 8.227 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.3688/0.3688, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 12 kB / 432.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1253, allocations: 58.84 MB / 491.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.29/1.416, allocations: 475.3 MB / 0.9441 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/1.416, allocations: 83.95 kB / 0.9442 GB, free: 150.6 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.7142/2.13, allocations: 196.5 MB / 1.136 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.964e-06/2.13, allocations: 0 / 1.136 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.541e-05/2.13, allocations: 17.59 kB / 1.136 GB, free: 104.7 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.00263/2.133, allocations: 1.12 MB / 1.137 GB, free: 104 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/2.133, allocations: 9.562 kB / 1.137 GB, free: 104 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/2.134, allocations: 177.2 kB / 1.137 GB, free: 104 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/2.135, allocations: 0.5744 MB / 1.138 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.73e-05/2.135, allocations: 39.47 kB / 1.138 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.077e-05/2.136, allocations: 38.66 kB / 1.138 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/2.137, allocations: 0.6151 MB / 1.139 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/2.137, allocations: 5.219 kB / 1.139 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.245e-05/2.137, allocations: 19.44 kB / 1.139 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/2.137, allocations: 11.03 kB / 1.139 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008017/2.138, allocations: 496 kB / 1.139 GB, free: 103.6 MB / 0.5105 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.003435/2.141, allocations: 2.68 MB / 1.142 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/2.142, allocations: 286 kB / 1.142 GB, free: 102 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/2.142, allocations: 181.3 kB / 1.142 GB, free: 102 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001493/2.143, allocations: 1.218 MB / 1.143 GB, free: 101 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005913/2.144, allocations: 346.5 kB / 1.144 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 3.016e-06/2.144, allocations: 5.125 kB / 1.144 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001648/2.146, allocations: 0.6441 MB / 1.144 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/2.146, allocations: 296.6 kB / 1.145 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/2.147, allocations: 0.6196 MB / 1.145 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/2.147, allocations: 34.36 kB / 1.145 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/2.147, allocations: 331.1 kB / 1.146 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/2.148, allocations: 114 kB / 1.146 GB, free: 100 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/2.148, allocations: 8.812 kB / 1.146 GB, free: 100 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001599/2.148, allocations: 372.1 kB / 1.146 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/2.148, allocations: 166 kB / 1.146 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/2.149, allocations: 393.1 kB / 1.147 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/2.15, allocations: 0.5702 MB / 1.147 GB, free: 99.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/2.15, allocations: 1.031 kB / 1.147 GB, free: 99.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001364/2.151, allocations: 0.6673 MB / 1.148 GB, free: 99.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002559/2.151, allocations: 272.1 kB / 1.148 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/2.151, allocations: 5.5 kB / 1.148 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.795e-05/2.151, allocations: 6.75 kB / 1.148 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006298/2.158, allocations: 0.6057 MB / 1.149 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007896/2.158, allocations: 0.6614 MB / 1.149 GB, free: 98.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/2.16, allocations: 83.27 kB / 1.149 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/2.16, allocations: 59.12 kB / 1.149 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/2.16, allocations: 2.688 kB / 1.149 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001342/2.161, allocations: 0.5486 MB / 1.15 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.895e-05/2.161, allocations: 8.312 kB / 1.15 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/2.161, allocations: 7.625 kB / 1.15 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/2.162, allocations: 125 kB / 1.15 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.422e-05/2.162, allocations: 15.42 kB / 1.15 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008849/2.163, allocations: 64.69 kB / 1.15 GB, free: 98.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/2.163, allocations: 55.33 kB / 1.15 GB, free: 98.12 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 () * 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.0007286/2.163, allocations: 311.2 kB / 1.151 GB, free: 97.89 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/2.164, allocations: 69.66 kB / 1.151 GB, free: 97.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/2.166, allocations: 0.8171 MB / 1.151 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/2.166, allocations: 8.031 kB / 1.151 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.166, allocations: 0 / 1.151 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/2.166, allocations: 0 / 1.151 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/2.169, allocations: 2.972 MB / 1.154 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/2.169, allocations: 3.938 kB / 1.154 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/2.17, allocations: 211.9 kB / 1.154 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/2.17, allocations: 7.219 kB / 1.154 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/2.17, allocations: 16.53 kB / 1.155 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003222/2.171, allocations: 0.6384 MB / 1.155 GB, free: 95.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/2.171, allocations: 4.531 kB / 1.155 GB, free: 95.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008325/2.172, allocations: 0.7004 MB / 1.156 GB, free: 94.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/2.172, allocations: 153.4 kB / 1.156 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/2.172, allocations: 17.62 kB / 1.156 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/2.172, allocations: 32.23 kB / 1.156 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/2.172, allocations: 40.17 kB / 1.156 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/2.173, allocations: 37.55 kB / 1.156 GB, free: 94.82 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004607/2.173, allocations: 451.9 kB / 1.157 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.31e-07/2.173, allocations: 0 / 1.157 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002239/2.175, allocations: 0.6207 MB / 1.157 GB, free: 94.62 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) * 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.002177/2.177, allocations: 1.206 MB / 1.158 GB, free: 94.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01005/2.187, allocations: 1.642 MB / 1.16 GB, free: 94.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/2.188, allocations: 3.812 kB / 1.16 GB, free: 94.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002684/2.19, allocations: 499.2 kB / 1.16 GB, free: 94.15 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/2.192, allocations: 304.4 kB / 1.161 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/2.194, allocations: 1.264 MB / 1.162 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/2.194, allocations: 0.8814 MB / 1.163 GB, free: 92.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001308/2.196, allocations: 284.2 kB / 1.163 GB, free: 92.77 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/2.196, allocations: 96.39 kB / 1.163 GB, free: 92.77 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/2.196, allocations: 0 / 1.163 GB, free: 92.77 MB / 0.5105 GB Notification: Performance of Templates: time 0.03431/2.23, allocations: 26.6 MB / 1.189 GB, free: 90.5 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/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_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches