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.TestBearingConversion.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.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 2.229/2.229, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004486/0.0004487, allocations: 12 kB / 314.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2778, allocations: 54.88 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01343/0.2912, allocations: 9.284 MB / 378.5 MB, free: 1.371 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.3008, allocations: 4.01 MB / 382.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002464/0.3033, allocations: 51.81 kB / 382.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.3047, allocations: 321.5 kB / 382.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00464/0.3094, allocations: 1.101 MB / 383.9 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006474/0.3159, allocations: 0.9711 MB / 384.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.3275, allocations: 2.799 MB / 387.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003507/0.3311, allocations: 0.7791 MB / 388.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006006/0.3372, allocations: 1.499 MB / 390 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01458/0.3518, allocations: 1.751 MB / 391.7 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001814/0.3537, allocations: 176 kB / 391.9 MB, free: 3.848 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002331/0.3561, allocations: 291.8 kB / 392.2 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001867/0.358, allocations: 0.6968 MB / 392.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01462/0.3726, allocations: 0.5704 MB / 393.5 MB, free: 2.285 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01844/0.3911, allocations: 3.156 MB / 396.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.313e-06/0.3912, allocations: 3.938 kB / 396.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.561e-06/0.3912, allocations: 0 / 396.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001415/0.3914, allocations: 3.938 kB / 396.6 MB, free: 15.11 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.02093/0.4123, allocations: 3.221 MB / 399.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.012e-05/0.4125, allocations: 12.03 kB / 399.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004525/0.417, allocations: 411.8 kB / 400.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004418/0.4215, allocations: 1.444 MB / 401.7 MB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001722/0.4233, allocations: 0.686 MB / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009057/0.4242, allocations: 311.6 kB / 402.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.4344, allocations: 3.454 MB / 406.2 MB, free: 5.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002136/0.4347, allocations: 43.64 kB / 406.2 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/0.4351, allocations: 112 kB / 406.3 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.907e-05/0.4352, allocations: 68 kB / 406.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.4467, allocations: 3.602 MB / 410 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0261/0.4728, allocations: 10.16 MB / 420.1 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009376/0.4822, allocations: 3.374 MB / 423.5 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005813/0.4828, allocations: 236.4 kB / 423.7 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.483, allocations: 88.38 kB / 423.8 MB, free: 3.133 MB / 346.7 MB Notification: Performance of pre-optimization done (n=358): time 9.442e-06/0.483, allocations: 0 / 423.8 MB, free: 3.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=421): time 0.06355/0.5465, allocations: 21.34 MB / 445.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004115/0.547, allocations: 0.6123 MB / 445.8 MB, free: 11.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/0.5505, allocations: 1.643 MB / 447.4 MB, free: 10.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007199/0.5513, allocations: 121.7 kB / 447.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009773/0.5523, allocations: 0.8767 MB / 448.4 MB, free: 9.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002053/0.5543, allocations: 1.41 MB / 449.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004462/0.5548, allocations: 91.98 kB / 449.9 MB, free: 7.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003878/0.5552, allocations: 471.9 kB / 450.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005027/0.5603, allocations: 1.507 MB / 451.9 MB, free: 5.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006019/0.5663, allocations: 2.256 MB / 454.1 MB, free: 3.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004916/0.5713, allocations: 1.51 MB / 455.7 MB, free: 1.598 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-05/0.5713, allocations: 8 kB / 455.7 MB, free: 1.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0155/0.5869, allocations: 4.901 MB / 460.6 MB, free: 12.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.587, allocations: 12 kB / 460.6 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.956e-05/0.587, allocations: 20 kB / 460.6 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006346/0.5934, allocations: 1.995 MB / 462.6 MB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004373/0.5978, allocations: 0.8113 MB / 463.4 MB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3192/0.9171, allocations: 16.71 MB / 480.1 MB, free: 82.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003825/0.9209, allocations: 379.7 kB / 480.5 MB, free: 82.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007565/0.9217, allocations: 172.8 kB / 480.6 MB, free: 82.03 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 393 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,1 6,1 6,1 12,2 24,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.002053/0.9238, allocations: 0.6101 MB / 481.3 MB, free: 81.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/0.925, allocations: 285.9 kB / 481.5 MB, free: 81.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.9265, allocations: 0.5194 MB / 482.1 MB, free: 81.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-05/0.9265, allocations: 48.38 kB / 482.1 MB, free: 81.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.579e-05/0.9266, allocations: 6 kB / 482.1 MB, free: 81.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.459e-05/0.9267, allocations: 24.27 kB / 482.1 MB, free: 81.32 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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 postOpt removeSimpleEquations (simulation): time 0.0295/0.9562, allocations: 10.68 MB / 492.8 MB, free: 76.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.489e-05/0.9563, allocations: 9.469 kB / 492.8 MB, free: 76.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004078/0.9604, allocations: 0.6813 MB / 493.5 MB, free: 76.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005417/0.9658, allocations: 1.855 MB / 495.4 MB, free: 75.97 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009068/0.9668, allocations: 128.1 kB / 495.5 MB, free: 75.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02885/0.9957, allocations: 16.18 MB / 0.4997 GB, free: 60.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.877e-05/0.9957, allocations: 15.94 kB / 0.4997 GB, free: 60.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03193/1.028, allocations: 8.04 MB / 0.5075 GB, free: 52.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.03, allocations: 0.6993 MB / 0.5082 GB, free: 51.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008734/1.031, allocations: 112 kB / 0.5083 GB, free: 51.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004058/1.035, allocations: 355.7 kB / 0.5087 GB, free: 51.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001717/1.037, allocations: 0.6058 MB / 0.5093 GB, free: 50.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003928/1.038, allocations: 151.8 kB / 0.5094 GB, free: 50.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00197/1.04, allocations: 1.109 MB / 0.5105 GB, free: 49.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.39e-07/1.04, allocations: 0 / 0.5105 GB, free: 49.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005344/1.045, allocations: 0.9857 MB / 0.5115 GB, free: 48.47 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,linearSpeedDependentTorque.phi,inertia20.w,inertia5.phi,inertia5.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (299): * Single equations (assignments): 289 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,1 5,1 5,1 9,2 23,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008903/1.046, allocations: 306.6 kB / 0.5117 GB, free: 48.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/1.058, allocations: 5.079 MB / 0.5167 GB, free: 43.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/1.058, allocations: 0 / 0.5167 GB, free: 43.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009541/1.068, allocations: 3.763 MB / 0.5204 GB, free: 39.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/1.071, allocations: 363.5 kB / 0.5207 GB, free: 38.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.089, allocations: 9.323 MB / 0.5298 GB, free: 29.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/1.091, allocations: 1.889 MB / 0.5317 GB, free: 27.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/1.092, allocations: 251.3 kB / 0.5319 GB, free: 27.25 MB / 394.7 MB Notification: Performance of SimCode: time 2.003e-06/1.092, allocations: 0 / 0.5319 GB, free: 27.25 MB / 394.7 MB Notification: Performance of Templates: time 0.4237/1.516, allocations: 128.7 MB / 0.6576 GB, free: 149.3 MB / 474.7 MB