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.001333/0.001333, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.719/1.719, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001062/0.001063, allocations: 98.84 kB / 270.2 MB, free: 13.36 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.254/0.254, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003818/0.0003819, allocations: 11.98 kB / 431.4 MB, free: 19.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1652, allocations: 58.85 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.458/1.623, allocations: 475.2 MB / 0.9428 GB, free: 183 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/1.623, allocations: 85.88 kB / 0.9429 GB, free: 183 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.7684/2.392, allocations: 197.7 MB / 1.136 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.903e-06/2.392, allocations: 2.156 kB / 1.136 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001047/2.392, allocations: 18 kB / 1.136 GB, free: 114.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.003894/2.396, allocations: 1.124 MB / 1.137 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/2.396, allocations: 9.281 kB / 1.137 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/2.397, allocations: 172.1 kB / 1.137 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/2.399, allocations: 0.5637 MB / 1.138 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/2.399, allocations: 29.66 kB / 1.138 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/2.399, allocations: 42.47 kB / 1.138 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/2.401, allocations: 0.6133 MB / 1.138 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/2.401, allocations: 6.422 kB / 1.138 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.815e-05/2.401, allocations: 17.75 kB / 1.138 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/2.401, allocations: 13.08 kB / 1.138 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009909/2.402, allocations: 495.7 kB / 1.139 GB, free: 113.4 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.00337/2.405, allocations: 2.666 MB / 1.142 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/2.406, allocations: 280.8 kB / 1.142 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/2.406, allocations: 238 kB / 1.142 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004914/2.406, allocations: 348.1 kB / 1.142 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 2.996e-06/2.407, allocations: 0 / 1.142 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001443/2.408, allocations: 0.7203 MB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/2.408, allocations: 293.4 kB / 1.143 GB, free: 111 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000828/2.409, allocations: 0.5496 MB / 1.144 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/2.409, allocations: 35.89 kB / 1.144 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002797/2.409, allocations: 338.4 kB / 1.144 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/2.409, allocations: 113 kB / 1.144 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/2.409, allocations: 9.281 kB / 1.144 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00015/2.41, allocations: 373.8 kB / 1.145 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/2.41, allocations: 165.2 kB / 1.145 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/2.411, allocations: 390.9 kB / 1.145 GB, free: 110 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/2.411, allocations: 251.9 kB / 1.146 GB, free: 110 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/2.411, allocations: 2.906 kB / 1.146 GB, free: 110 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001187/2.412, allocations: 0.6644 MB / 1.146 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000676/2.413, allocations: 2.038 MB / 1.148 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/2.413, allocations: 6.375 kB / 1.148 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.075e-05/2.413, allocations: 14.28 kB / 1.148 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006705/2.42, allocations: 0.6017 MB / 1.149 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000544/2.42, allocations: 0.6597 MB / 1.149 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008912/2.421, allocations: 72.72 kB / 1.149 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/2.421, allocations: 53.88 kB / 1.15 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/2.421, allocations: 3.875 kB / 1.15 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009329/2.422, allocations: 0.5523 MB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/2.422, allocations: 3.844 kB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/2.422, allocations: 9.719 kB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/2.423, allocations: 136.3 kB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/2.423, allocations: 7.625 kB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/2.423, allocations: 62.22 kB / 1.15 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.006e-05/2.423, allocations: 50.67 kB / 1.15 GB, free: 107.1 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.0004141/2.424, allocations: 305.6 kB / 1.151 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-05/2.424, allocations: 75.02 kB / 1.151 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/2.425, allocations: 0.8316 MB / 1.152 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/2.425, allocations: 4.25 kB / 1.152 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/2.425, allocations: 0 / 1.152 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/2.425, allocations: 0 / 1.152 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/2.427, allocations: 1.638 MB / 1.153 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/2.427, allocations: 1.594 kB / 1.153 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/2.429, allocations: 216 kB / 1.153 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/2.429, allocations: 1.844 kB / 1.153 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/2.429, allocations: 25.45 kB / 1.153 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003538/2.43, allocations: 0.6396 MB / 1.154 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/2.43, allocations: 6 kB / 1.154 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00099/2.431, allocations: 0.7716 MB / 1.155 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/2.431, allocations: 150.1 kB / 1.155 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/2.431, allocations: 21.5 kB / 1.155 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/2.432, allocations: 22.42 kB / 1.155 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/2.432, allocations: 38.05 kB / 1.155 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/2.432, allocations: 40.8 kB / 1.155 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005091/2.432, allocations: 455.5 kB / 1.155 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/2.432, allocations: 0 / 1.155 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002677/2.435, allocations: 0.6175 MB / 1.156 GB, free: 104.7 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.002328/2.437, allocations: 1.21 MB / 1.157 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01172/2.449, allocations: 1.647 MB / 1.159 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/2.449, allocations: 2.312 kB / 1.159 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002917/2.452, allocations: 493.9 kB / 1.159 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/2.454, allocations: 293.5 kB / 1.16 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/2.455, allocations: 1.262 MB / 1.161 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/2.456, allocations: 0.8992 MB / 1.162 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001343/2.457, allocations: 285.6 kB / 1.162 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/2.457, allocations: 98.33 kB / 1.162 GB, free: 103 MB / 0.5105 GB Notification: Performance of SimCode: time 1.152e-06/2.457, allocations: 0 / 1.162 GB, free: 103 MB / 0.5105 GB Notification: Performance of Templates: time 0.03626/2.494, allocations: 26.03 MB / 1.187 GB, free: 101.8 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