Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.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.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 195.9 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 226.5 MB / 244.1 MB, free: 8.129 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 101.2 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3882/0.3882, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003299, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4833/0.4837, allocations: 62.95 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.619, allocations: 494.5 MB / 0.9994 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/1.619, allocations: 103.9 kB / 0.9995 GB, free: 123 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.74/2.359, allocations: 213.2 MB / 1.208 GB, free: 125 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.086e-06/2.36, allocations: 0 / 1.208 GB, free: 125 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.146e-05/2.36, allocations: 13.62 kB / 1.208 GB, free: 125 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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.002549/2.362, allocations: 0.9402 MB / 1.209 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/2.362, allocations: 13.16 kB / 1.209 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/2.363, allocations: 146.4 kB / 1.209 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009565/2.364, allocations: 0.5007 MB / 1.209 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/2.364, allocations: 38.61 kB / 1.209 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.2e-05/2.365, allocations: 37.44 kB / 1.209 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/2.366, allocations: 0.6193 MB / 1.21 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/2.366, allocations: 3.531 kB / 1.21 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.616e-05/2.366, allocations: 19.42 kB / 1.21 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/2.366, allocations: 13.12 kB / 1.21 GB, free: 123.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/2.367, allocations: 497.8 kB / 1.21 GB, free: 123.1 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.002678/2.37, allocations: 2.648 MB / 1.213 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000633/2.37, allocations: 330 kB / 1.213 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/2.371, allocations: 172.8 kB / 1.214 GB, free: 120.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003225/2.371, allocations: 435.3 kB / 1.214 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/2.371, allocations: 36.72 kB / 1.214 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/2.371, allocations: 0 / 1.214 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.001577/2.372, allocations: 0.7305 MB / 1.215 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/2.373, allocations: 140.3 kB / 1.215 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005173/2.373, allocations: 0.4892 MB / 1.215 GB, free: 119 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/2.373, allocations: 33.64 kB / 1.215 GB, free: 119 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/2.373, allocations: 278.7 kB / 1.216 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.305e-05/2.373, allocations: 117.3 kB / 1.216 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/2.373, allocations: 11.94 kB / 1.216 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.169e-05/2.373, allocations: 358.1 kB / 1.216 GB, free: 118.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/2.374, allocations: 188.3 kB / 1.216 GB, free: 118.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/2.374, allocations: 325.5 kB / 1.217 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/2.375, allocations: 488.8 kB / 1.217 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/2.375, allocations: 0 / 1.217 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001055/2.376, allocations: 0.6309 MB / 1.218 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/2.376, allocations: 11.72 kB / 1.218 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/2.376, allocations: 3.875 kB / 1.218 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/2.377, allocations: 237.2 kB / 1.218 GB, free: 117.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/2.378, allocations: 152.6 kB / 1.218 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00736/2.385, allocations: 28.75 MB / 1.246 GB, free: 86.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006631/2.386, allocations: 72.86 kB / 1.246 GB, free: 86.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/2.386, allocations: 55.59 kB / 1.246 GB, free: 86.78 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 10 {1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003785/2.386, allocations: 188.1 kB / 1.246 GB, free: 86.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/2.386, allocations: 54.5 kB / 1.246 GB, free: 86.59 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/2.388, allocations: 1.052 MB / 1.248 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/2.388, allocations: 0 / 1.248 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/2.388, allocations: 1.438 kB / 1.248 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/2.388, allocations: 0 / 1.248 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/2.39, allocations: 0.9617 MB / 1.248 GB, free: 85.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/2.39, allocations: 0 / 1.248 GB, free: 85.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/2.39, allocations: 52.84 kB / 1.248 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/2.391, allocations: 229 kB / 1.249 GB, free: 85.14 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/2.391, allocations: 15.69 kB / 1.249 GB, free: 85.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003543/2.392, allocations: 0.5924 MB / 1.249 GB, free: 84.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/2.392, allocations: 0 / 1.249 GB, free: 84.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007302/2.392, allocations: 485 kB / 1.25 GB, free: 84.23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/2.393, allocations: 163.5 kB / 1.25 GB, free: 84.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/2.393, allocations: 11.94 kB / 1.25 GB, free: 84.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/2.393, allocations: 39.3 kB / 1.25 GB, free: 84.04 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/2.393, allocations: 23.83 kB / 1.25 GB, free: 84.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/2.393, allocations: 11.77 kB / 1.25 GB, free: 84.03 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004567/2.394, allocations: 391 kB / 1.25 GB, free: 83.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.91e-07/2.394, allocations: 0 / 1.25 GB, free: 83.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002065/2.396, allocations: 380.5 kB / 1.251 GB, free: 83.68 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002266/2.398, allocations: 1.083 MB / 1.252 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0012/2.399, allocations: 468.8 kB / 1.252 GB, free: 82.77 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/2.399, allocations: 0.875 kB / 1.252 GB, free: 82.77 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003103/2.4, allocations: 146 kB / 1.252 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/2.401, allocations: 293 kB / 1.253 GB, free: 82.34 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/2.403, allocations: 1.132 MB / 1.254 GB, free: 81.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/2.403, allocations: 0.8515 MB / 1.255 GB, free: 80.29 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/2.403, allocations: 115.4 kB / 1.255 GB, free: 80.18 MB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/2.403, allocations: 0 / 1.255 GB, free: 80.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.02922/2.433, allocations: 28.41 MB / 1.282 GB, free: 51.79 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/NewFittings/Orifices/ThickEdgedOrifice/ThickEdgedOrifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,ramp.y,boundary.ports[1].m_flow,boundary.ports[1].p,boundary.ports[1].h_outflow,sensor.port_b.m_flow,sensor.port_b.p,sensor.port_b.h_outflow,fitting1.port_b.m_flow,fitting1.port_b.p,fitting1.port_b.h_outflow,fitting2.port_b.m_flow,fitting2.port_b.p,fitting2.port_b.h_outflow Variables in the result:boundary.ports[1].h_outflow,boundary.ports[1].m_flow,boundary.ports[1].p,fitting1.port_b.h_outflow,fitting1.port_b.m_flow,fitting1.port_b.p,fitting2.port_b.h_outflow,fitting2.port_b.m_flow,fitting2.port_b.p,ramp.y,sensor.port_b.h_outflow,sensor.port_b.m_flow,sensor.port_b.p,time