Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") Notification: Performance of loadModel(ModelicaTest): time 2.372/2.372, allocations: 234.9 MB / 251.1 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004419, allocations: 16 kB / 314.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3556, allocations: 54.87 MB / 369.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.131/1.487, allocations: 329.8 MB / 0.6833 GB, free: 126.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/1.487, allocations: 86.61 kB / 0.6833 GB, free: 126.1 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329: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 .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329: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.698/3.185, allocations: 333.5 MB / 1.009 GB, free: 19.88 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.595e-06/3.185, allocations: 0 / 1.009 GB, free: 19.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001704/3.185, allocations: 39.92 kB / 1.009 GB, free: 19.84 MB / 490.7 MB 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.006736/3.192, allocations: 1.96 MB / 1.011 GB, free: 17.82 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/3.192, allocations: 8.031 kB / 1.011 GB, free: 17.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/3.194, allocations: 178.1 kB / 1.011 GB, free: 17.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/3.197, allocations: 1.128 MB / 1.012 GB, free: 16.47 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/3.198, allocations: 77.92 kB / 1.012 GB, free: 16.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/3.198, allocations: 96 kB / 1.012 GB, free: 16.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/3.201, allocations: 1.462 MB / 1.014 GB, free: 14.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/3.201, allocations: 0 / 1.014 GB, free: 14.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/3.202, allocations: 55.94 kB / 1.014 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.266e-05/3.202, allocations: 49.98 kB / 1.014 GB, free: 14.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003487/3.205, allocations: 1.327 MB / 1.015 GB, free: 13.3 MB / 490.7 MB 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.01358/3.219, allocations: 6.679 MB / 1.022 GB, free: 6.207 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/3.22, allocations: 0.4911 MB / 1.022 GB, free: 5.711 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4003/3.621, allocations: 17.02 MB / 1.039 GB, free: 57.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006382/3.621, allocations: 281.5 kB / 1.039 GB, free: 56.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 3.536e-06/3.621, allocations: 5.531 kB / 1.039 GB, free: 56.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.002083/3.623, allocations: 0.7529 MB / 1.04 GB, free: 56.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.428e-05/3.624, allocations: 263.9 kB / 1.04 GB, free: 56.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/3.626, allocations: 1.156 MB / 1.041 GB, free: 56.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001774/3.626, allocations: 32.27 kB / 1.041 GB, free: 56.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006957/3.627, allocations: 0.7711 MB / 1.042 GB, free: 55.92 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002759/3.627, allocations: 156.8 kB / 1.042 GB, free: 55.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/3.627, allocations: 24.56 kB / 1.042 GB, free: 55.85 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/3.627, allocations: 361.3 kB / 1.043 GB, free: 55.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007226/3.628, allocations: 268.2 kB / 1.043 GB, free: 55.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/3.629, allocations: 0.9599 MB / 1.044 GB, free: 54.65 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/3.63, allocations: 481.7 kB / 1.044 GB, free: 54.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/3.63, allocations: 3.938 kB / 1.044 GB, free: 54.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003047/3.633, allocations: 1.237 MB / 1.045 GB, free: 54.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005448/3.634, allocations: 0.786 MB / 1.046 GB, free: 53.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.193e-05/3.634, allocations: 22.72 kB / 1.046 GB, free: 53.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.732e-05/3.634, allocations: 36.38 kB / 1.046 GB, free: 53.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/3.638, allocations: 432 kB / 1.047 GB, free: 53.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008204/3.639, allocations: 1.281 MB / 1.048 GB, free: 52.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002063/3.641, allocations: 189.8 kB / 1.048 GB, free: 52.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/3.641, allocations: 82.94 kB / 1.048 GB, free: 52.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/3.641, allocations: 3.25 kB / 1.048 GB, free: 52.38 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002831/3.644, allocations: 1.133 MB / 1.049 GB, free: 52.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.191e-05/3.644, allocations: 25.88 kB / 1.049 GB, free: 52.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.844e-05/3.644, allocations: 35.34 kB / 1.049 GB, free: 52.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/3.646, allocations: 320.5 kB / 1.05 GB, free: 52.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000346/3.646, allocations: 0.6329 MB / 1.05 GB, free: 51.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/3.648, allocations: 143.2 kB / 1.05 GB, free: 51.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/3.648, allocations: 81.38 kB / 1.05 GB, free: 51.72 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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 (148): * Single equations (assignments): 145 * 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.001087/3.649, allocations: 441.4 kB / 1.051 GB, free: 51.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/3.649, allocations: 129.6 kB / 1.051 GB, free: 51.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/3.653, allocations: 1.201 MB / 1.052 GB, free: 51.26 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/3.653, allocations: 11.03 kB / 1.052 GB, free: 51.26 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/3.653, allocations: 5.75 kB / 1.052 GB, free: 51.26 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/3.653, allocations: 3.656 kB / 1.052 GB, free: 51.26 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004072/3.657, allocations: 1.8 MB / 1.054 GB, free: 50.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/3.657, allocations: 0 / 1.054 GB, free: 50.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/3.66, allocations: 242.1 kB / 1.054 GB, free: 50.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/3.66, allocations: 0 / 1.054 GB, free: 50.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.08e-05/3.66, allocations: 22.3 kB / 1.054 GB, free: 50.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006132/3.661, allocations: 1.23 MB / 1.055 GB, free: 49.72 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/3.661, allocations: 2 kB / 1.055 GB, free: 49.72 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/3.663, allocations: 0.8135 MB / 1.056 GB, free: 49.46 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004914/3.663, allocations: 254.8 kB / 1.056 GB, free: 49.29 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/3.664, allocations: 16.09 kB / 1.056 GB, free: 49.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009119/3.665, allocations: 51.72 kB / 1.056 GB, free: 49.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/3.665, allocations: 43.73 kB / 1.057 GB, free: 49.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/3.665, allocations: 28.33 kB / 1.057 GB, free: 49.29 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001533/3.666, allocations: 0.7942 MB / 1.057 GB, free: 49.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/3.666, allocations: 0 / 1.057 GB, free: 49.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005775/3.672, allocations: 1.353 MB / 1.059 GB, free: 49.16 MB / 490.7 MB 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 (61): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.004748/3.677, allocations: 1.31 MB / 1.06 GB, free: 49.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007161/3.684, allocations: 1.728 MB / 1.062 GB, free: 48.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/3.684, allocations: 0 / 1.062 GB, free: 48.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004718/3.689, allocations: 0.5775 MB / 1.062 GB, free: 48.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/3.692, allocations: 395.7 kB / 1.063 GB, free: 48.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006705/3.699, allocations: 3.105 MB / 1.066 GB, free: 47.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007209/3.7, allocations: 1.19 MB / 1.067 GB, free: 46.92 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006026/3.7, allocations: 136.1 kB / 1.067 GB, free: 46.91 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/3.7, allocations: 3.281 kB / 1.067 GB, free: 46.91 MB / 490.7 MB Notification: Performance of Templates: time 0.1192/3.82, allocations: 38.9 MB / 1.105 GB, free: 44.61 MB / 490.7 MB