Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 0.9439/0.9439, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.918e-05, allocations: 0 / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1473, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05787/0.2052, allocations: 36.92 MB / 216.3 MB, free: 12.18 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.2055, allocations: 59.97 kB / 216.4 MB, free: 12.12 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02803/0.2336, allocations: 6.834 MB / 223.2 MB, free: 5.266 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2336, allocations: 0 / 223.2 MB, free: 5.266 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.395e-05/0.2336, allocations: 8 kB / 223.2 MB, free: 5.258 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001498/0.2351, allocations: 0.674 MB / 223.9 MB, free: 4.539 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2352, allocations: 12.03 kB / 223.9 MB, free: 4.527 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.2354, allocations: 47.44 kB / 224 MB, free: 4.48 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.2359, allocations: 298.2 kB / 224.3 MB, free: 4.152 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.2359, allocations: 28.78 kB / 224.3 MB, free: 4.121 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.2361, allocations: 39.98 kB / 224.3 MB, free: 4.082 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.2371, allocations: 427.6 kB / 224.7 MB, free: 3.66 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.2371, allocations: 11.89 kB / 224.8 MB, free: 3.648 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.2372, allocations: 20 kB / 224.8 MB, free: 3.629 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.2373, allocations: 11.95 kB / 224.8 MB, free: 3.617 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.2383, allocations: 415 kB / 225.2 MB, free: 3.211 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.2412, allocations: 1.128 MB / 226.3 MB, free: 2.023 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009084/0.2421, allocations: 334.5 kB / 226.6 MB, free: 1.691 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005743/0.2427, allocations: 237.6 kB / 226.9 MB, free: 1.457 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.867e-05/0.2428, allocations: 8.359 kB / 226.9 MB, free: 1.449 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2428, allocations: 38.94 kB / 226.9 MB, free: 1.402 MB / 186.7 MB Notification: Performance of pre-optimization done (n=45): time 4.131e-06/0.2428, allocations: 0 / 226.9 MB, free: 1.402 MB / 186.7 MB Notification: Performance of matching and sorting (n=51): time 0.004128/0.247, allocations: 1.627 MB / 228.6 MB, free: 15.68 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.247, allocations: 55.84 kB / 228.6 MB, free: 15.62 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.2474, allocations: 243.5 kB / 228.8 MB, free: 15.37 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 7.517e-05/0.2475, allocations: 37.7 kB / 228.9 MB, free: 15.33 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.2477, allocations: 235.1 kB / 229.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.2479, allocations: 181.5 kB / 229.3 MB, free: 14.91 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.248, allocations: 16 kB / 229.3 MB, free: 14.9 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2482, allocations: 330.8 kB / 229.6 MB, free: 14.57 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005316/0.2487, allocations: 217 kB / 229.8 MB, free: 14.36 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000568/0.2493, allocations: 247.9 kB / 230.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004406/0.2497, allocations: 179.2 kB / 230.3 MB, free: 13.93 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.147e-06/0.2498, allocations: 3.938 kB / 230.3 MB, free: 13.93 MB / 202.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001898/0.2517, allocations: 0.6839 MB / 230.9 MB, free: 13.23 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.2517, allocations: 9.547 kB / 231 MB, free: 13.23 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.435e-06/0.2517, allocations: 0 / 231 MB, free: 13.23 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.253, allocations: 0.513 MB / 231.5 MB, free: 12.71 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004426/0.2535, allocations: 83.89 kB / 231.5 MB, free: 12.62 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/0.2553, allocations: 1.386 MB / 232.9 MB, free: 11.19 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/0.256, allocations: 100 kB / 233 MB, free: 11.09 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.56e-05/0.2561, allocations: 23.98 kB / 233.1 MB, free: 11.07 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002095/0.2563, allocations: 144.8 kB / 233.2 MB, free: 10.92 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.2564, allocations: 39.48 kB / 233.2 MB, free: 10.88 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.2566, allocations: 59.47 kB / 233.3 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.827e-06/0.2566, allocations: 4 kB / 233.3 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.466e-06/0.2566, allocations: 4 kB / 233.3 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.2567, allocations: 7.984 kB / 233.3 MB, free: 10.81 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003486/0.2602, allocations: 1.361 MB / 234.7 MB, free: 9.367 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.474e-06/0.2602, allocations: 0 / 234.7 MB, free: 9.367 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.2607, allocations: 75.91 kB / 234.7 MB, free: 9.293 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.2619, allocations: 0.4936 MB / 235.2 MB, free: 8.793 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.262, allocations: 19.98 kB / 235.3 MB, free: 8.773 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.2637, allocations: 1.362 MB / 236.6 MB, free: 7.359 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.872e-06/0.2637, allocations: 4.266 kB / 236.6 MB, free: 7.355 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.2661, allocations: 1.028 MB / 237.7 MB, free: 6.258 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.2665, allocations: 164.7 kB / 237.8 MB, free: 6.078 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.2666, allocations: 23.95 kB / 237.8 MB, free: 6.055 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005624/0.2672, allocations: 75.92 kB / 237.9 MB, free: 5.98 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.2675, allocations: 111.9 kB / 238 MB, free: 5.871 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-05/0.2676, allocations: 27.91 kB / 238 MB, free: 5.844 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002817/0.2679, allocations: 191.1 kB / 238.2 MB, free: 5.652 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.14e-07/0.2679, allocations: 0 / 238.2 MB, free: 5.652 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006401/0.2686, allocations: 123.9 kB / 238.4 MB, free: 5.531 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002823/0.2689, allocations: 143.1 kB / 238.5 MB, free: 5.379 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.2702, allocations: 0.506 MB / 239 MB, free: 4.875 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.344e-06/0.2703, allocations: 0 / 239 MB, free: 4.875 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.2711, allocations: 295.4 kB / 239.3 MB, free: 4.586 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/0.2716, allocations: 61.22 kB / 239.3 MB, free: 4.527 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.2759, allocations: 1.325 MB / 240.7 MB, free: 3.16 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.2765, allocations: 0.8231 MB / 241.5 MB, free: 2.309 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.2767, allocations: 31.42 kB / 241.5 MB, free: 2.281 MB / 202.7 MB Notification: Performance of SimCode: time 1.782e-06/0.2767, allocations: 0 / 241.5 MB, free: 2.281 MB / 202.7 MB Notification: Performance of Templates: time 0.1295/0.4062, allocations: 7.446 MB / 249 MB, free: 53.07 MB / 202.7 MB