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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.121/1.121, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.318e-05/1.326e-05, allocations: 0 / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04614/0.04618, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1811/0.2274, allocations: 36.24 MB / 209.5 MB, free: 6.961 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.2276, allocations: 64.77 kB / 209.6 MB, free: 6.961 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02623/0.2539, allocations: 6.767 MB / 216.4 MB, free: 5.988 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.196e-06/0.2539, allocations: 224 / 216.4 MB, free: 5.988 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.254, allocations: 12.88 kB / 216.4 MB, free: 5.988 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.001278/0.2553, allocations: 0.6683 MB / 217 MB, free: 5.465 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2553, allocations: 11.5 kB / 217.1 MB, free: 5.465 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.2554, allocations: 50.39 kB / 217.1 MB, free: 5.438 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.2559, allocations: 305.2 kB / 217.4 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.2559, allocations: 15.38 kB / 217.4 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-05/0.256, allocations: 19 kB / 217.4 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008617/0.2569, allocations: 397.5 kB / 217.8 MB, free: 5.133 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007783/0.2577, allocations: 396.2 kB / 218.2 MB, free: 5.008 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.2577, allocations: 3.906 kB / 218.2 MB, free: 5.004 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.2578, allocations: 7.953 kB / 218.2 MB, free: 4.996 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.2578, allocations: 11.62 kB / 218.2 MB, free: 4.996 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.2602, allocations: 1.047 MB / 219.3 MB, free: 4.438 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007127/0.2609, allocations: 316.7 kB / 219.6 MB, free: 4.391 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004527/0.2614, allocations: 218.8 kB / 219.8 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.541e-05/0.2615, allocations: 7.906 kB / 219.8 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.2615, allocations: 46.5 kB / 219.9 MB, free: 4.324 MB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 3.815e-06/0.2615, allocations: 0 / 219.9 MB, free: 4.324 MB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.003979/0.2655, allocations: 1.527 MB / 221.4 MB, free: 3.609 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.2656, allocations: 59.66 kB / 221.4 MB, free: 3.543 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.2658, allocations: 221.2 kB / 221.7 MB, free: 3.418 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.123e-05/0.2659, allocations: 33.2 kB / 221.7 MB, free: 3.387 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.266, allocations: 237 kB / 221.9 MB, free: 3.188 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.2662, allocations: 168.1 kB / 222.1 MB, free: 3.066 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.724e-05/0.2663, allocations: 7.641 kB / 222.1 MB, free: 3.062 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.357e-05/0.2663, allocations: 329.8 kB / 222.4 MB, free: 2.742 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.2668, allocations: 203.4 kB / 222.6 MB, free: 2.73 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000456/0.2673, allocations: 241 kB / 222.8 MB, free: 2.695 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000533/0.2678, allocations: 164 kB / 223 MB, free: 2.672 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2678, allocations: 0 / 223 MB, free: 2.672 MB / 170.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001813/0.2697, allocations: 0.6447 MB / 223.7 MB, free: 2.523 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.2697, allocations: 7.844 kB / 223.7 MB, free: 2.523 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.341e-06/0.2697, allocations: 0 / 223.7 MB, free: 2.523 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.2708, allocations: 0.5098 MB / 224.2 MB, free: 2.387 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.2712, allocations: 91.58 kB / 224.3 MB, free: 2.363 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.2728, allocations: 1.442 MB / 225.7 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/0.2736, allocations: 93.97 kB / 225.8 MB, free: 1.234 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.2737, allocations: 19.5 kB / 225.8 MB, free: 1.234 MB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002415/0.2739, allocations: 119.7 kB / 225.9 MB, free: 1.121 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.2741, allocations: 35.03 kB / 226 MB, free: 1.102 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.2742, allocations: 52.53 kB / 226 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.049e-06/0.2742, allocations: 3.969 kB / 226 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.2742, allocations: 4 kB / 226 MB, free: 1.082 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.861e-06/0.2743, allocations: 3.906 kB / 226 MB, free: 1.082 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.2774, allocations: 1.262 MB / 227.3 MB, free: 0.4922 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.811e-06/0.2775, allocations: 0 / 227.3 MB, free: 0.4922 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004592/0.2779, allocations: 80.84 kB / 227.4 MB, free: 488 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.279, allocations: 0.4981 MB / 227.9 MB, free: 336 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.571e-05/0.2791, allocations: 15.36 kB / 227.9 MB, free: 328 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.2808, allocations: 1.402 MB / 229.3 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.1e-06/0.2809, allocations: 3.656 kB / 229.3 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.2834, allocations: 1.007 MB / 230.3 MB, free: 14.8 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003589/0.2838, allocations: 157.6 kB / 230.4 MB, free: 14.67 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.284, allocations: 11.23 kB / 230.5 MB, free: 14.67 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005592/0.2845, allocations: 69.72 kB / 230.5 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.2848, allocations: 117.1 kB / 230.6 MB, free: 14.58 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/0.2849, allocations: 23.05 kB / 230.7 MB, free: 14.58 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002208/0.2852, allocations: 171 kB / 230.8 MB, free: 14.48 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.2852, allocations: 0 / 230.8 MB, free: 14.48 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007424/0.2859, allocations: 97.78 kB / 230.9 MB, free: 14.48 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) * 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.00031/0.2863, allocations: 132.4 kB / 231.1 MB, free: 14.38 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.2875, allocations: 493.7 kB / 231.5 MB, free: 14.35 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.089e-06/0.2876, allocations: 0 / 231.5 MB, free: 14.35 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006679/0.2882, allocations: 275.3 kB / 231.8 MB, free: 14.31 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.2889, allocations: 55.55 kB / 231.9 MB, free: 14.3 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.2931, allocations: 1.298 MB / 233.2 MB, free: 13.55 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.2937, allocations: 0.8205 MB / 234 MB, free: 12.79 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.2939, allocations: 30.69 kB / 234 MB, free: 12.79 MB / 186.7 MB Notification: Performance of SimCode: time 1.956e-06/0.2939, allocations: 4 kB / 234 MB, free: 12.78 MB / 186.7 MB Notification: Performance of Templates: time 0.01353/0.3074, allocations: 7.375 MB / 241.4 MB, free: 6.543 MB / 186.7 MB