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 1.056/1.056, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002647, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04659/0.04689, allocations: 25.17 MB / 183.5 MB, free: 5.977 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.233, allocations: 37 MB / 220.5 MB, free: 5.91 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.2332, allocations: 62.53 kB / 220.6 MB, free: 5.902 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02609/0.2593, allocations: 6.827 MB / 227.4 MB, free: 3.285 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.689e-06/0.2594, allocations: 0 / 227.4 MB, free: 3.285 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.2594, allocations: 7.781 kB / 227.4 MB, free: 3.285 MB / 170.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.001415/0.2608, allocations: 0.7232 MB / 228.1 MB, free: 2.715 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.2609, allocations: 9.688 kB / 228.1 MB, free: 2.715 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.261, allocations: 47.38 kB / 228.2 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.2615, allocations: 293.7 kB / 228.5 MB, free: 2.43 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.2615, allocations: 27.34 kB / 228.5 MB, free: 2.43 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.2617, allocations: 42.88 kB / 228.5 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2627, allocations: 461.6 kB / 229 MB, free: 2.074 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/0.2628, allocations: 9.469 kB / 229 MB, free: 2.066 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.479e-05/0.2629, allocations: 19.06 kB / 229 MB, free: 2.059 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2629, allocations: 11.95 kB / 229 MB, free: 2.047 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.2641, allocations: 474.4 kB / 229.5 MB, free: 1.711 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.2666, allocations: 1.13 MB / 230.6 MB, free: 0.7461 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009522/0.2676, allocations: 363.6 kB / 231 MB, free: 0.4961 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.2676, allocations: 8.375 kB / 231 MB, free: 500 kB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.2677, allocations: 42.56 kB / 231 MB, free: 452 kB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 3.288e-06/0.2677, allocations: 0 / 231 MB, free: 452 kB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.006724/0.2744, allocations: 2.33 MB / 233.4 MB, free: 14.42 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.2745, allocations: 59.83 kB / 233.4 MB, free: 14.35 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.2749, allocations: 236 kB / 233.6 MB, free: 14.15 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.275, allocations: 47.88 kB / 233.7 MB, free: 14.11 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.2752, allocations: 240.9 kB / 233.9 MB, free: 13.89 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.2754, allocations: 170.5 kB / 234.1 MB, free: 13.75 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.2755, allocations: 17.48 kB / 234.1 MB, free: 13.75 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.2757, allocations: 326.5 kB / 234.4 MB, free: 13.43 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006832/0.2764, allocations: 236.1 kB / 234.7 MB, free: 13.27 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.2771, allocations: 280 kB / 234.9 MB, free: 13.08 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.2777, allocations: 195.8 kB / 235.1 MB, free: 12.96 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.058e-06/0.2777, allocations: 3.953 kB / 235.1 MB, free: 12.95 MB / 186.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002172/0.2799, allocations: 0.7293 MB / 235.9 MB, free: 12.41 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.2799, allocations: 4 kB / 235.9 MB, free: 12.41 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.771e-06/0.28, allocations: 3.938 kB / 235.9 MB, free: 12.4 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.2813, allocations: 0.5242 MB / 236.4 MB, free: 11.97 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.2818, allocations: 91.33 kB / 236.5 MB, free: 11.88 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.2837, allocations: 1.387 MB / 237.9 MB, free: 10.58 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006685/0.2844, allocations: 95.91 kB / 238 MB, free: 10.49 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/0.2845, allocations: 23.48 kB / 238 MB, free: 10.47 MB / 186.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003333/0.2848, allocations: 164.3 kB / 238.1 MB, free: 10.33 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.285, allocations: 43.48 kB / 238.2 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.2851, allocations: 58.12 kB / 238.2 MB, free: 10.27 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.523e-06/0.2851, allocations: 4 kB / 238.2 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.714e-06/0.2852, allocations: 0 / 238.2 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.2852, allocations: 7.984 kB / 238.2 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/0.289, allocations: 1.42 MB / 239.7 MB, free: 9.066 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.448e-06/0.289, allocations: 0 / 239.7 MB, free: 9.066 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004971/0.2896, allocations: 83.92 kB / 239.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.2908, allocations: 0.4974 MB / 240.2 MB, free: 8.57 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.2909, allocations: 29.47 kB / 240.3 MB, free: 8.551 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/0.2926, allocations: 1.363 MB / 241.6 MB, free: 7.25 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.706e-06/0.2926, allocations: 7.969 kB / 241.6 MB, free: 7.242 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.2955, allocations: 1.105 MB / 242.8 MB, free: 6.348 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.2958, allocations: 165.2 kB / 242.9 MB, free: 6.188 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.296, allocations: 26.52 kB / 242.9 MB, free: 6.172 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005467/0.2965, allocations: 79.36 kB / 243 MB, free: 6.098 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.2968, allocations: 110.3 kB / 243.1 MB, free: 6.004 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.522e-05/0.2969, allocations: 31.53 kB / 243.2 MB, free: 5.98 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000277/0.2972, allocations: 190 kB / 243.3 MB, free: 5.816 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.2972, allocations: 0 / 243.3 MB, free: 5.816 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006343/0.2978, allocations: 119.5 kB / 243.5 MB, free: 5.715 MB / 186.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) * Number of clocked states: 0 () * 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.0002903/0.2981, allocations: 153.7 kB / 243.6 MB, free: 5.566 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.2998, allocations: 0.557 MB / 244.2 MB, free: 5.168 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.96e-06/0.2998, allocations: 0 / 244.2 MB, free: 5.168 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000922/0.3008, allocations: 309.2 kB / 244.5 MB, free: 4.949 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3014, allocations: 65.41 kB / 244.5 MB, free: 4.902 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004895/0.3063, allocations: 1.732 MB / 246.3 MB, free: 3.207 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/0.3069, allocations: 0.8268 MB / 247.1 MB, free: 2.352 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.3071, allocations: 35.23 kB / 247.1 MB, free: 2.324 MB / 186.7 MB Notification: Performance of SimCode: time 1.914e-06/0.3072, allocations: 0 / 247.1 MB, free: 2.324 MB / 186.7 MB Notification: Performance of Templates: time 0.01362/0.3208, allocations: 7.464 MB / 254.6 MB, free: 10.89 MB / 202.7 MB