Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestWallFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 194.6 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.421/1.421, allocations: 226.5 MB / 244.1 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007961/0.0007961, allocations: 90.5 kB / 296.1 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3873/0.3873, allocations: 44.81 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003325, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3934, allocations: 62.95 MB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7092/1.103, allocations: 337.1 MB / 0.8457 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003657/1.103, allocations: 96.33 kB / 0.8458 GB, free: 14.41 MB / 0.5105 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 1.449/2.553, allocations: 338.1 MB / 1.176 GB, free: 89.01 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.425e-06/2.553, allocations: 3.969 kB / 1.176 GB, free: 89.01 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002445/2.553, allocations: 36.48 kB / 1.176 GB, free: 89 MB / 0.5261 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.006679/2.56, allocations: 1.962 MB / 1.178 GB, free: 87.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/2.56, allocations: 9.844 kB / 1.178 GB, free: 87.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/2.561, allocations: 183.3 kB / 1.178 GB, free: 87.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003118/2.564, allocations: 1.097 MB / 1.179 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/2.564, allocations: 72.25 kB / 1.179 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004017/2.565, allocations: 97.27 kB / 1.179 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003256/2.568, allocations: 1.482 MB / 1.181 GB, free: 87.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/2.568, allocations: 3.938 kB / 1.181 GB, free: 87.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002642/2.568, allocations: 49.41 kB / 1.181 GB, free: 87.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.64e-05/2.568, allocations: 60.53 kB / 1.181 GB, free: 87.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/2.571, allocations: 1.327 MB / 1.182 GB, free: 86.7 MB / 0.5261 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.01057/2.581, allocations: 6.462 MB / 1.189 GB, free: 81.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009136/2.582, allocations: 0.5314 MB / 1.189 GB, free: 81.72 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/2.583, allocations: 341.9 kB / 1.189 GB, free: 81.58 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01855/2.601, allocations: 16.88 MB / 1.206 GB, free: 64.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007502/2.602, allocations: 484.1 kB / 1.206 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.966e-06/2.602, allocations: 0 / 1.206 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.002063/2.604, allocations: 0.9086 MB / 1.207 GB, free: 63.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/2.605, allocations: 0.5405 MB / 1.208 GB, free: 63.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002367/2.607, allocations: 1.302 MB / 1.209 GB, free: 62.71 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001222/2.607, allocations: 40.77 kB / 1.209 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00064/2.608, allocations: 0.7095 MB / 1.21 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/2.608, allocations: 176.2 kB / 1.21 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/2.608, allocations: 19.97 kB / 1.21 GB, free: 61.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001032/2.608, allocations: 347.6 kB / 1.21 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/2.609, allocations: 331.7 kB / 1.211 GB, free: 61.53 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009567/2.61, allocations: 0.8834 MB / 1.211 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/2.611, allocations: 1.156 MB / 1.213 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/2.611, allocations: 3.406 kB / 1.213 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00257/2.614, allocations: 1.303 MB / 1.214 GB, free: 59.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003499/2.614, allocations: 0.5234 MB / 1.214 GB, free: 58.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/2.614, allocations: 13.53 kB / 1.214 GB, free: 58.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.154e-05/2.614, allocations: 23.72 kB / 1.214 GB, free: 58.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/2.616, allocations: 391.4 kB / 1.215 GB, free: 58.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007413/2.617, allocations: 1.271 MB / 1.216 GB, free: 57.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/2.619, allocations: 200.7 kB / 1.216 GB, free: 57.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/2.619, allocations: 66.12 kB / 1.216 GB, free: 57.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/2.619, allocations: 3.375 kB / 1.216 GB, free: 57.21 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001842/2.621, allocations: 1.106 MB / 1.217 GB, free: 56.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.888e-05/2.621, allocations: 12.81 kB / 1.217 GB, free: 56.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.801e-05/2.621, allocations: 31.86 kB / 1.217 GB, free: 56.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009389/2.622, allocations: 277.2 kB / 1.218 GB, free: 56.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002814/2.622, allocations: 0.6239 MB / 1.218 GB, free: 56.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/2.624, allocations: 154.2 kB / 1.218 GB, free: 56.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/2.624, allocations: 65.62 kB / 1.218 GB, free: 56.04 MB / 0.5261 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 () * Number of clocked 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.0009225/2.625, allocations: 429.7 kB / 1.219 GB, free: 55.71 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004405/2.625, allocations: 146.7 kB / 1.219 GB, free: 55.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/2.628, allocations: 1.377 MB / 1.22 GB, free: 55.13 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/2.628, allocations: 11.88 kB / 1.22 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/2.628, allocations: 0 / 1.22 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/2.628, allocations: 7.641 kB / 1.22 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/2.632, allocations: 2.149 MB / 1.222 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/2.632, allocations: 3.688 kB / 1.222 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/2.634, allocations: 262.8 kB / 1.223 GB, free: 54.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.78e-05/2.634, allocations: 2.688 kB / 1.223 GB, free: 54.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.979e-05/2.634, allocations: 31.2 kB / 1.223 GB, free: 54.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005593/2.634, allocations: 1.232 MB / 1.224 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.634, allocations: 3.938 kB / 1.224 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/2.636, allocations: 1.044 MB / 1.225 GB, free: 52.35 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007716/2.637, allocations: 252.9 kB / 1.225 GB, free: 52.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005165/2.637, allocations: 21.89 kB / 1.225 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/2.638, allocations: 57.78 kB / 1.225 GB, free: 52.12 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/2.638, allocations: 57.41 kB / 1.225 GB, free: 52.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/2.639, allocations: 40.8 kB / 1.225 GB, free: 52.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001763/2.64, allocations: 0.9051 MB / 1.226 GB, free: 51.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/2.64, allocations: 3.938 kB / 1.226 GB, free: 51.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005985/2.646, allocations: 1.406 MB / 1.228 GB, free: 51.34 MB / 0.5261 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) * Number of clocked states: 0 () * 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.005098/2.651, allocations: 1.366 MB / 1.229 GB, free: 50.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005776/2.657, allocations: 1.821 MB / 1.231 GB, free: 49.17 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/2.657, allocations: 4 kB / 1.231 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002863/2.66, allocations: 0.6774 MB / 1.231 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00425/2.664, allocations: 0.5496 MB / 1.232 GB, free: 48.17 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/2.67, allocations: 2.629 MB / 1.235 GB, free: 45.73 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009812/2.671, allocations: 1.176 MB / 1.236 GB, free: 44.69 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006392/2.671, allocations: 150.7 kB / 1.236 GB, free: 44.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.332e-06/2.671, allocations: 0 / 1.236 GB, free: 44.55 MB / 0.5261 GB Notification: Performance of Templates: time 0.06342/2.735, allocations: 41.69 MB / 1.277 GB, free: 3.605 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestWallFriction/TestWallFriction.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches