Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction.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.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.249/2.249, allocations: 234.9 MB / 250.5 MB, free: 10.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004409/0.0004411, allocations: 8 kB / 314.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2779, allocations: 54.88 MB / 369.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004746/0.2827, allocations: 3.123 MB / 372.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002704/0.2854, allocations: 1.248 MB / 373.5 MB, free: 6.438 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003145/0.2857, allocations: 11.94 kB / 373.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.286, allocations: 79.44 kB / 373.6 MB, free: 6.348 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005977/0.2866, allocations: 251.2 kB / 373.9 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.2873, allocations: 259.5 kB / 374.1 MB, free: 5.848 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009471/0.2883, allocations: 0.6339 MB / 374.8 MB, free: 5.215 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003143/0.2886, allocations: 140.7 kB / 374.9 MB, free: 5.074 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006124/0.2893, allocations: 382.7 kB / 375.3 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006325/0.2899, allocations: 434.4 kB / 375.7 MB, free: 4.273 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.2901, allocations: 40 kB / 375.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002498/0.2903, allocations: 79.95 kB / 375.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.2905, allocations: 163.4 kB / 376 MB, free: 3.996 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.2907, allocations: 145.3 kB / 376.1 MB, free: 3.848 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000945/0.2917, allocations: 0.6512 MB / 376.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.392e-06/0.2917, allocations: 0 / 376.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.134e-06/0.2917, allocations: 0 / 376.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.2918, allocations: 3.938 kB / 376.8 MB, free: 3.191 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00238/0.2942, allocations: 0.9898 MB / 377.8 MB, free: 2.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2942, allocations: 12.03 kB / 377.8 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.2944, allocations: 79.06 kB / 377.9 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007494/0.2952, allocations: 424.6 kB / 378.3 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.2953, allocations: 45.31 kB / 378.3 MB, free: 1.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.2954, allocations: 60 kB / 378.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.2975, allocations: 0.8335 MB / 379.2 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/0.2976, allocations: 11.89 kB / 379.2 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.2977, allocations: 24 kB / 379.2 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.2977, allocations: 19.95 kB / 379.3 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002343/0.3001, allocations: 0.7933 MB / 380.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005976/0.3061, allocations: 2.632 MB / 382.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.3081, allocations: 0.6465 MB / 383.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.23e-05/0.3082, allocations: 8.672 kB / 383.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.3082, allocations: 47.62 kB / 383.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=72): time 4.774e-06/0.3083, allocations: 4 kB / 383.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=76): time 0.01639/0.3247, allocations: 3.718 MB / 387.1 MB, free: 8.301 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.3248, allocations: 140.5 kB / 387.2 MB, free: 8.133 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.3259, allocations: 429.8 kB / 387.7 MB, free: 7.699 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.3261, allocations: 53.69 kB / 387.7 MB, free: 7.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.3265, allocations: 326.7 kB / 388 MB, free: 7.316 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004681/0.327, allocations: 260.5 kB / 388.3 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3271, allocations: 23.94 kB / 388.3 MB, free: 7.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002456/0.3274, allocations: 342.8 kB / 388.7 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.3293, allocations: 401.8 kB / 389 MB, free: 6.301 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.3314, allocations: 0.5608 MB / 389.6 MB, free: 5.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.3332, allocations: 349.9 kB / 389.9 MB, free: 5.348 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.618e-06/0.3332, allocations: 0 / 389.9 MB, free: 5.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00598/0.3392, allocations: 1.254 MB / 391.2 MB, free: 4.078 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.934e-05/0.3393, allocations: 9.719 kB / 391.2 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.3394, allocations: 4 kB / 391.2 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003043/0.3424, allocations: 0.7647 MB / 392 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.3437, allocations: 155.7 kB / 392.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00492/0.3487, allocations: 2.694 MB / 394.8 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.3508, allocations: 199.7 kB / 395 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.351, allocations: 39.98 kB / 395.1 MB, free: 108 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0007276/0.3517, allocations: 204.4 kB / 395.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/0.3522, allocations: 71.14 kB / 395.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.3525, allocations: 79.92 kB / 395.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.836e-05/0.3525, allocations: 12 kB / 395.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.3525, allocations: 0 / 395.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.3526, allocations: 3.984 kB / 395.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009169/0.3617, allocations: 2.196 MB / 397.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.3618, allocations: 0 / 397.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/0.3631, allocations: 123.8 kB / 397.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002778/0.3659, allocations: 0.7177 MB / 398.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/0.3661, allocations: 35.91 kB / 398.5 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004711/0.3708, allocations: 2.643 MB / 401.1 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/0.3709, allocations: 4.031 kB / 401.1 MB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/0.3817, allocations: 1.81 MB / 402.9 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009381/0.3827, allocations: 220.2 kB / 403.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/0.3831, allocations: 28 kB / 403.2 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002488/0.3856, allocations: 167.8 kB / 403.4 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009077/0.3865, allocations: 175.6 kB / 403.5 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/0.3867, allocations: 27.97 kB / 403.6 MB, free: 7.355 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009185/0.3877, allocations: 287.1 kB / 403.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.742e-06/0.3877, allocations: 4 kB / 403.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001156/0.3889, allocations: 200 kB / 404 MB, free: 6.871 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003441/0.3893, allocations: 159.2 kB / 404.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.3924, allocations: 0.974 MB / 405.2 MB, free: 5.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3924, allocations: 3.938 kB / 405.2 MB, free: 5.727 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.3942, allocations: 0.5121 MB / 405.7 MB, free: 5.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009439/0.3951, allocations: 93.56 kB / 405.8 MB, free: 5.129 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006659/0.4018, allocations: 2.602 MB / 408.4 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007393/0.4026, allocations: 0.9224 MB / 409.3 MB, free: 1.531 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.4029, allocations: 59.36 kB / 409.4 MB, free: 1.477 MB / 330.7 MB Notification: Performance of SimCode: time 1.653e-06/0.4029, allocations: 0 / 409.4 MB, free: 1.477 MB / 330.7 MB Notification: Performance of Templates: time 0.03039/0.4333, allocations: 16.29 MB / 425.6 MB, free: 1.18 MB / 346.7 MB