Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.157/2.157, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004275, allocations: 8 kB / 314.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 54.85 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8948/1.226, allocations: 329.9 MB / 0.6827 GB, free: 170.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/1.226, allocations: 90.55 kB / 0.6828 GB, free: 170.7 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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@2/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.281/2.507, allocations: 333.4 MB / 1.008 GB, free: 31.86 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.226e-06/2.507, allocations: 0 / 1.008 GB, free: 31.86 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001102/2.507, allocations: 35.98 kB / 1.009 GB, free: 31.82 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.005272/2.513, allocations: 1.959 MB / 1.01 GB, free: 29.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/2.513, allocations: 12.03 kB / 1.01 GB, free: 29.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/2.514, allocations: 186 kB / 1.011 GB, free: 29.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/2.517, allocations: 1.12 MB / 1.012 GB, free: 28.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.911e-05/2.517, allocations: 77.98 kB / 1.012 GB, free: 28.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002528/2.518, allocations: 88 kB / 1.012 GB, free: 28.28 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002792/2.52, allocations: 1.462 MB / 1.013 GB, free: 26.72 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/2.52, allocations: 7.938 kB / 1.013 GB, free: 26.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/2.521, allocations: 44 kB / 1.013 GB, free: 26.67 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.328e-05/2.521, allocations: 53.98 kB / 1.013 GB, free: 26.61 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002563/2.523, allocations: 1.319 MB / 1.015 GB, free: 25.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.009335/2.533, allocations: 6.687 MB / 1.021 GB, free: 18.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/2.534, allocations: 0.4969 MB / 1.022 GB, free: 17.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3069/2.841, allocations: 17.02 MB / 1.038 GB, free: 70.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006235/2.841, allocations: 284.2 kB / 1.039 GB, free: 70.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 4.422e-06/2.841, allocations: 3.469 kB / 1.039 GB, free: 70.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.001869/2.843, allocations: 0.7534 MB / 1.039 GB, free: 70.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/2.843, allocations: 268.8 kB / 1.04 GB, free: 69.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/2.845, allocations: 1.015 MB / 1.041 GB, free: 69.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.824e-05/2.845, allocations: 32.42 kB / 1.041 GB, free: 69.81 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005471/2.846, allocations: 0.77 MB / 1.041 GB, free: 69.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/2.846, allocations: 159 kB / 1.041 GB, free: 69.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/2.846, allocations: 22.44 kB / 1.042 GB, free: 69.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/2.846, allocations: 359.1 kB / 1.042 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006608/2.847, allocations: 272.1 kB / 1.042 GB, free: 69.04 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009345/2.848, allocations: 0.9538 MB / 1.043 GB, free: 68.16 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008897/2.849, allocations: 473.9 kB / 1.044 GB, free: 68.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.985e-05/2.849, allocations: 7.344 kB / 1.044 GB, free: 68.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002812/2.852, allocations: 1.235 MB / 1.045 GB, free: 68.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00184/2.854, allocations: 9.083 MB / 1.054 GB, free: 58.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-05/2.854, allocations: 24.5 kB / 1.054 GB, free: 58.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.281e-05/2.854, allocations: 38.19 kB / 1.054 GB, free: 58.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002774/2.857, allocations: 429.6 kB / 1.054 GB, free: 58.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007359/2.857, allocations: 1.272 MB / 1.055 GB, free: 57.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/2.859, allocations: 197 kB / 1.055 GB, free: 57.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/2.86, allocations: 81.83 kB / 1.056 GB, free: 57.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/2.86, allocations: 3.688 kB / 1.056 GB, free: 57.37 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002404/2.862, allocations: 1.132 MB / 1.057 GB, free: 57.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/2.862, allocations: 28.17 kB / 1.057 GB, free: 57.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/2.862, allocations: 31.31 kB / 1.057 GB, free: 57.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/2.864, allocations: 329.9 kB / 1.057 GB, free: 57.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003155/2.864, allocations: 0.6353 MB / 1.058 GB, free: 56.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/2.865, allocations: 143.4 kB / 1.058 GB, free: 56.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/2.865, allocations: 72.62 kB / 1.058 GB, free: 56.71 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.0009018/2.866, allocations: 448.2 kB / 1.058 GB, free: 56.49 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/2.866, allocations: 120.5 kB / 1.058 GB, free: 56.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/2.87, allocations: 1.201 MB / 1.06 GB, free: 56.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/2.87, allocations: 14.27 kB / 1.06 GB, free: 56.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.628e-06/2.87, allocations: 0 / 1.06 GB, free: 56.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/2.87, allocations: 6.328 kB / 1.06 GB, free: 56.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003552/2.873, allocations: 1.787 MB / 1.061 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.718e-06/2.873, allocations: 1.156 kB / 1.061 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00204/2.875, allocations: 248.1 kB / 1.062 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.668e-05/2.875, allocations: 6.141 kB / 1.062 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.709e-05/2.876, allocations: 17.06 kB / 1.062 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005905/2.876, allocations: 1.229 MB / 1.063 GB, free: 54.71 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.422e-06/2.876, allocations: 4.781 kB / 1.063 GB, free: 54.71 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/2.878, allocations: 0.8293 MB / 1.064 GB, free: 54.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004616/2.878, allocations: 254.7 kB / 1.064 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/2.879, allocations: 18.41 kB / 1.064 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007201/2.879, allocations: 40.81 kB / 1.064 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/2.879, allocations: 43.61 kB / 1.064 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-05/2.88, allocations: 28.97 kB / 1.064 GB, free: 54.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0014/2.881, allocations: 0.7929 MB / 1.065 GB, free: 54.15 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.74e-07/2.881, allocations: 0 / 1.065 GB, free: 54.15 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004963/2.886, allocations: 1.352 MB / 1.066 GB, free: 54.12 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.003983/2.89, allocations: 1.318 MB / 1.067 GB, free: 54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005746/2.896, allocations: 1.711 MB / 1.069 GB, free: 53.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/2.896, allocations: 0 / 1.069 GB, free: 53.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003368/2.899, allocations: 0.5742 MB / 1.07 GB, free: 53.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/2.902, allocations: 413 kB / 1.07 GB, free: 53.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005385/2.907, allocations: 3.092 MB / 1.073 GB, free: 52.58 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000739/2.908, allocations: 1.195 MB / 1.074 GB, free: 51.87 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/2.908, allocations: 134.1 kB / 1.074 GB, free: 51.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.767e-06/2.908, allocations: 0 / 1.074 GB, free: 51.86 MB / 490.7 MB Notification: Performance of Templates: time 0.05737/2.966, allocations: 38.9 MB / 1.112 GB, free: 49.58 MB / 490.7 MB