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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.132/2.132, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.224e-05/2.235e-05, allocations: 7.938 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2751, allocations: 54.86 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9109/1.186, allocations: 329.1 MB / 0.671 GB, free: 113.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/1.186, allocations: 87.06 kB / 0.6711 GB, free: 113.8 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.514/2.7, allocations: 326.3 MB / 0.9898 GB, free: 59.02 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.041e-06/2.7, allocations: 0 / 0.9898 GB, free: 59.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001605/2.701, allocations: 34.27 kB / 0.9898 GB, free: 59.02 MB / 474.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.005377/2.706, allocations: 1.78 MB / 0.9916 GB, free: 58.39 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/2.706, allocations: 9.25 kB / 0.9916 GB, free: 58.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/2.707, allocations: 184 kB / 0.9918 GB, free: 58.31 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003245/2.711, allocations: 1.121 MB / 0.9929 GB, free: 58.03 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.6e-05/2.711, allocations: 41.05 kB / 0.9929 GB, free: 58.03 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002979/2.711, allocations: 56.06 kB / 0.993 GB, free: 58.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002934/2.714, allocations: 1.187 MB / 0.9941 GB, free: 58.03 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002717/2.717, allocations: 1.284 MB / 0.9954 GB, free: 57.73 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/2.717, allocations: 2.625 kB / 0.9954 GB, free: 57.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001901/2.717, allocations: 7.344 kB / 0.9954 GB, free: 57.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.727e-05/2.717, allocations: 55.52 kB / 0.9954 GB, free: 57.72 MB / 474.7 MB 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.009917/2.727, allocations: 6.518 MB / 1.002 GB, free: 54.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000964/2.728, allocations: 471 kB / 1.002 GB, free: 53.99 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005393/2.729, allocations: 286.6 kB / 1.003 GB, free: 53.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02279/2.751, allocations: 17.17 MB / 1.019 GB, free: 37.44 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/2.752, allocations: 264.3 kB / 1.02 GB, free: 37.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=42): time 4.053e-06/2.752, allocations: 0 / 1.02 GB, free: 37.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=42): time 0.007777/2.76, allocations: 1.02 MB / 1.021 GB, free: 37.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/2.76, allocations: 270.5 kB / 1.021 GB, free: 36.95 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/2.761, allocations: 0.9254 MB / 1.022 GB, free: 36.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.103e-05/2.761, allocations: 25.7 kB / 1.022 GB, free: 36.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/2.762, allocations: 0.7799 MB / 1.022 GB, free: 36.38 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/2.762, allocations: 147.4 kB / 1.023 GB, free: 36.31 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-05/2.762, allocations: 7.25 kB / 1.023 GB, free: 36.31 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/2.762, allocations: 363.3 kB / 1.023 GB, free: 36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005636/2.763, allocations: 245.5 kB / 1.023 GB, free: 36 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008222/2.764, allocations: 0.9142 MB / 1.024 GB, free: 35.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/2.774, allocations: 1.377 MB / 1.025 GB, free: 35.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.7e-05/2.774, allocations: 7.188 kB / 1.025 GB, free: 35.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.01185/2.786, allocations: 2 MB / 1.027 GB, free: 35.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002486/2.788, allocations: 9.082 MB / 1.036 GB, free: 41.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.164e-05/2.789, allocations: 21.62 kB / 1.036 GB, free: 41.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.284e-05/2.789, allocations: 33.59 kB / 1.036 GB, free: 41.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002641/2.791, allocations: 426.6 kB / 1.037 GB, free: 41.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/2.793, allocations: 1.374 MB / 1.038 GB, free: 40.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/2.795, allocations: 166.6 kB / 1.038 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002632/2.795, allocations: 78.3 kB / 1.038 GB, free: 40.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/2.795, allocations: 3.844 kB / 1.038 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008808/2.804, allocations: 1.673 MB / 1.04 GB, free: 40.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.632e-05/2.804, allocations: 22.28 kB / 1.04 GB, free: 40.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.875e-05/2.804, allocations: 37.86 kB / 1.04 GB, free: 40.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/2.806, allocations: 321.2 kB / 1.04 GB, free: 40.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006336/2.806, allocations: 0.6515 MB / 1.041 GB, free: 39.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/2.808, allocations: 121.2 kB / 1.041 GB, free: 39.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/2.808, allocations: 79.42 kB / 1.041 GB, free: 39.74 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 () * 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.0003922/2.808, allocations: 203.5 kB / 1.041 GB, free: 39.59 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/2.808, allocations: 123.6 kB / 1.041 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006622/2.815, allocations: 1.463 MB / 1.043 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/2.815, allocations: 6.406 kB / 1.043 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.489e-06/2.815, allocations: 6.594 kB / 1.043 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/2.815, allocations: 3.141 kB / 1.043 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007031/2.822, allocations: 1.933 MB / 1.045 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/2.822, allocations: 3.125 kB / 1.045 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002312/2.825, allocations: 241.2 kB / 1.045 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/2.825, allocations: 3.219 kB / 1.045 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.244e-05/2.825, allocations: 21.55 kB / 1.045 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/2.827, allocations: 1.318 MB / 1.046 GB, free: 37.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/2.827, allocations: 0 / 1.046 GB, free: 37.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/2.832, allocations: 1.101 MB / 1.047 GB, free: 37.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005346/2.832, allocations: 247.5 kB / 1.048 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/2.833, allocations: 3.938 kB / 1.048 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008289/2.833, allocations: 34.92 kB / 1.048 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/2.834, allocations: 45.41 kB / 1.048 GB, free: 37.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/2.834, allocations: 25.02 kB / 1.048 GB, free: 37.44 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001257/2.835, allocations: 0.6993 MB / 1.048 GB, free: 37.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.835, allocations: 0 / 1.048 GB, free: 37.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005378/2.84, allocations: 1.3 MB / 1.05 GB, free: 37.03 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) * 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.004149/2.845, allocations: 1.327 MB / 1.051 GB, free: 36.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00552/2.85, allocations: 1.56 MB / 1.053 GB, free: 36.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.911e-06/2.85, allocations: 0 / 1.053 GB, free: 36.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003631/2.854, allocations: 0.5496 MB / 1.053 GB, free: 36.44 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/2.857, allocations: 397.2 kB / 1.053 GB, free: 36.43 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/2.861, allocations: 2 MB / 1.055 GB, free: 35.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009374/2.862, allocations: 1.2 MB / 1.057 GB, free: 35.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004969/2.863, allocations: 135 kB / 1.057 GB, free: 35.25 MB / 490.7 MB Notification: Performance of SimCode: time 1.949e-06/2.863, allocations: 2.156 kB / 1.057 GB, free: 35.25 MB / 490.7 MB Notification: Performance of Templates: time 0.05679/2.92, allocations: 38.92 MB / 1.095 GB, free: 32.77 MB / 490.7 MB