Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestWallFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002225/0.002225, allocations: 180.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001816/0.001815, allocations: 90.69 kB / 267.5 MB, free: 14.04 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.2923/0.2923, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.821e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.218, allocations: 335.5 MB / 0.8004 GB, free: 89.37 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/1.218, allocations: 88.94 kB / 0.8005 GB, free: 89.32 MB / 0.4948 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.767/2.985, allocations: 336.2 MB / 1.129 GB, free: 69.69 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.955e-06/2.985, allocations: 0 / 1.129 GB, free: 69.69 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002471/2.985, allocations: 42.97 kB / 1.129 GB, free: 69.69 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.008491/2.993, allocations: 1.782 MB / 1.131 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/2.993, allocations: 10.81 kB / 1.131 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/2.996, allocations: 181.5 kB / 1.131 GB, free: 68.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005392/3.001, allocations: 1.077 MB / 1.132 GB, free: 68.46 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/3.001, allocations: 73.22 kB / 1.132 GB, free: 68.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004701/3.002, allocations: 97.09 kB / 1.132 GB, free: 68.45 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005239/3.007, allocations: 1.463 MB / 1.133 GB, free: 68.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/3.007, allocations: 5.156 kB / 1.133 GB, free: 68.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003467/3.007, allocations: 45.22 kB / 1.133 GB, free: 68.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/3.008, allocations: 51.27 kB / 1.134 GB, free: 68.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005006/3.013, allocations: 1.308 MB / 1.135 GB, free: 68.13 MB / 0.4948 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.01936/3.032, allocations: 6.637 MB / 1.141 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/3.034, allocations: 0.5271 MB / 1.142 GB, free: 64.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/3.036, allocations: 331.7 kB / 1.142 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03253/3.068, allocations: 17.14 MB / 1.159 GB, free: 47.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009295/3.069, allocations: 480.1 kB / 1.159 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 3.457e-06/3.069, allocations: 1.688 kB / 1.159 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.002114/3.071, allocations: 0.6951 MB / 1.16 GB, free: 47.56 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/3.072, allocations: 0.5491 MB / 1.161 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/3.074, allocations: 1.132 MB / 1.162 GB, free: 46.72 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001971/3.074, allocations: 36.05 kB / 1.162 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005581/3.075, allocations: 0.6799 MB / 1.162 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/3.075, allocations: 184.6 kB / 1.162 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/3.075, allocations: 24.22 kB / 1.163 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001019/3.075, allocations: 353.9 kB / 1.163 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008862/3.076, allocations: 318.8 kB / 1.163 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/3.077, allocations: 0.863 MB / 1.164 GB, free: 45.24 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/3.078, allocations: 482.4 kB / 1.164 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/3.078, allocations: 3.938 kB / 1.164 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003132/3.082, allocations: 1.198 MB / 1.166 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001077/3.083, allocations: 5.531 MB / 1.171 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.404e-05/3.083, allocations: 16.88 kB / 1.171 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.872e-05/3.083, allocations: 28.16 kB / 1.171 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/3.087, allocations: 388.8 kB / 1.171 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007944/3.088, allocations: 1.27 MB / 1.173 GB, free: 38.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/3.09, allocations: 185.2 kB / 1.173 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002411/3.09, allocations: 67.3 kB / 1.173 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/3.09, allocations: 6.094 kB / 1.173 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002808/3.093, allocations: 1.096 MB / 1.174 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/3.093, allocations: 13.91 kB / 1.174 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/3.093, allocations: 21.53 kB / 1.174 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/3.095, allocations: 287.3 kB / 1.174 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003274/3.095, allocations: 0.6254 MB / 1.175 GB, free: 37.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/3.097, allocations: 132.7 kB / 1.175 GB, free: 37.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/3.097, allocations: 65.97 kB / 1.175 GB, free: 37.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004527/3.098, allocations: 211.5 kB / 1.175 GB, free: 37.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00044/3.098, allocations: 137.2 kB / 1.175 GB, free: 37.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003835/3.102, allocations: 1.399 MB / 1.177 GB, free: 36.98 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/3.102, allocations: 9.125 kB / 1.177 GB, free: 36.98 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/3.102, allocations: 2.906 kB / 1.177 GB, free: 36.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/3.102, allocations: 6.531 kB / 1.177 GB, free: 36.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00474/3.107, allocations: 2.178 MB / 1.179 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/3.107, allocations: 2.531 kB / 1.179 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003106/3.11, allocations: 266.5 kB / 1.179 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/3.11, allocations: 2.562 kB / 1.179 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/3.11, allocations: 21.7 kB / 1.179 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005621/3.111, allocations: 1.237 MB / 1.18 GB, free: 35.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/3.111, allocations: 1.781 kB / 1.18 GB, free: 35.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/3.113, allocations: 1.05 MB / 1.181 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000572/3.114, allocations: 269.5 kB / 1.182 GB, free: 34.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003412/3.114, allocations: 21.41 kB / 1.182 GB, free: 34.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/3.115, allocations: 56.02 kB / 1.182 GB, free: 34.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/3.116, allocations: 53.33 kB / 1.182 GB, free: 34.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/3.116, allocations: 31.38 kB / 1.182 GB, free: 34.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001673/3.117, allocations: 0.8868 MB / 1.183 GB, free: 34.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/3.117, allocations: 2.625 kB / 1.183 GB, free: 34.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005235/3.123, allocations: 1.406 MB / 1.184 GB, free: 34.52 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (77): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004603/3.127, allocations: 1.361 MB / 1.185 GB, free: 34.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007194/3.134, allocations: 1.789 MB / 1.187 GB, free: 34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/3.135, allocations: 0 / 1.187 GB, free: 34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006839/3.141, allocations: 0.6618 MB / 1.188 GB, free: 33.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006703/3.148, allocations: 0.5568 MB / 1.188 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005778/3.154, allocations: 1.606 MB / 1.19 GB, free: 33.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009962/3.155, allocations: 1.204 MB / 1.191 GB, free: 32.72 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000935/3.156, allocations: 148.3 kB / 1.191 GB, free: 32.71 MB / 0.4948 GB Notification: Performance of SimCode: time 1.583e-06/3.156, allocations: 0 / 1.191 GB, free: 32.71 MB / 0.4948 GB Notification: Performance of Templates: time 0.1023/3.258, allocations: 42.14 MB / 1.232 GB, free: 23.34 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestWallFriction/TestWallFriction.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches