Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestBearingConversion.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 1.88/1.88, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.0004447, allocations: 12 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2992, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01106/0.3103, allocations: 9.281 MB / 340.5 MB, free: 144 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.3205, allocations: 4.089 MB / 344.6 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002936/0.3235, allocations: 54.06 kB / 344.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.325, allocations: 330.4 kB / 344.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.33, allocations: 1.1 MB / 346 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003905/0.3339, allocations: 0.9846 MB / 347 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006406/0.3403, allocations: 2.777 MB / 349.8 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.3422, allocations: 0.7817 MB / 350.6 MB, free: 8.609 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003359/0.3456, allocations: 1.498 MB / 352.1 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003474/0.3491, allocations: 1.725 MB / 353.8 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000837/0.35, allocations: 176 kB / 354 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.3518, allocations: 381.1 kB / 354.3 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009967/0.3528, allocations: 0.6969 MB / 355 MB, free: 6.031 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.354, allocations: 0.5686 MB / 355.6 MB, free: 5.734 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005543/0.3595, allocations: 3.181 MB / 358.8 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.615e-06/0.3596, allocations: 3.938 kB / 358.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.446e-06/0.3596, allocations: 0 / 358.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.3597, allocations: 0 / 358.8 MB, free: 2.816 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.009854/0.3696, allocations: 3.248 MB / 362 MB, free: 15.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3696, allocations: 12.03 kB / 362 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/0.3718, allocations: 407.8 kB / 362.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003913/0.3757, allocations: 1.444 MB / 363.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001702/0.3775, allocations: 0.6821 MB / 364.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/0.3786, allocations: 307.7 kB / 364.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009986/0.3886, allocations: 3.414 MB / 368.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/0.3888, allocations: 39.61 kB / 368.3 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004435/0.3893, allocations: 116 kB / 368.4 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.84e-05/0.3894, allocations: 68 kB / 368.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.4003, allocations: 3.555 MB / 372.1 MB, free: 5.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.4257, allocations: 9.957 MB / 382 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008943/0.4347, allocations: 3.296 MB / 385.3 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003654/0.4351, allocations: 57.3 kB / 385.4 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/0.4353, allocations: 95.73 kB / 385.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of pre-optimization done (n=357): time 8.686e-06/0.4353, allocations: 96 / 385.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=419): time 0.05378/0.4891, allocations: 20.83 MB / 406.3 MB, free: 1.352 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003811/0.4895, allocations: 0.562 MB / 406.9 MB, free: 0.668 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.4929, allocations: 1.666 MB / 408.5 MB, free: 15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006824/0.4936, allocations: 121.7 kB / 408.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009502/0.4946, allocations: 0.8724 MB / 409.5 MB, free: 14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002111/0.4968, allocations: 1.414 MB / 410.9 MB, free: 12.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/0.4973, allocations: 87.98 kB / 411 MB, free: 12.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003954/0.4977, allocations: 471.9 kB / 411.5 MB, free: 12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004969/0.5027, allocations: 1.492 MB / 413 MB, free: 10.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00597/0.5087, allocations: 2.244 MB / 415.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/0.5137, allocations: 1.511 MB / 416.7 MB, free: 6.465 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-05/0.5138, allocations: 8 kB / 416.7 MB, free: 6.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01645/0.5302, allocations: 5.213 MB / 421.9 MB, free: 1.207 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.968e-05/0.5303, allocations: 15.94 kB / 422 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.346e-05/0.5304, allocations: 20 kB / 422 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005971/0.5364, allocations: 1.769 MB / 423.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004278/0.5407, allocations: 0.8035 MB / 424.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0293/0.57, allocations: 16.66 MB / 441.2 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003825/0.5739, allocations: 379.7 kB / 441.6 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007937/0.5748, allocations: 168 kB / 441.7 MB, free: 12.46 MB / 378.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 (401): * Single equations (assignments): 391 * 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.002316/0.5771, allocations: 0.6063 MB / 442.4 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/0.5784, allocations: 296.5 kB / 442.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.5802, allocations: 0.6534 MB / 443.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-05/0.5803, allocations: 44 kB / 443.3 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.292e-05/0.5803, allocations: 4 kB / 443.3 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.068e-05/0.5804, allocations: 27.91 kB / 443.4 MB, free: 10.82 MB / 378.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.03152/0.6119, allocations: 10.72 MB / 454.1 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.905e-05/0.612, allocations: 8 kB / 454.1 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004115/0.6161, allocations: 0.6633 MB / 454.8 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008733/0.6249, allocations: 1.635 MB / 456.4 MB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/0.6257, allocations: 131.9 kB / 456.5 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02813/0.6539, allocations: 16.14 MB / 472.7 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.501e-05/0.6539, allocations: 11.94 kB / 472.7 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02251/0.6765, allocations: 8.002 MB / 480.7 MB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002464/0.679, allocations: 0.7002 MB / 481.4 MB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/0.6801, allocations: 112 kB / 481.5 MB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004251/0.6844, allocations: 355.6 kB / 481.8 MB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002014/0.6864, allocations: 0.5979 MB / 482.4 MB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005769/0.6871, allocations: 155.8 kB / 482.6 MB, free: 2.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002602/0.6897, allocations: 1.114 MB / 483.7 MB, free: 1.164 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.6897, allocations: 0 / 483.7 MB, free: 1.164 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005997/0.6957, allocations: 1.004 MB / 484.7 MB, free: 164 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (297): * Single equations (assignments): 287 * 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.2525/0.9482, allocations: 311.3 kB / 485 MB, free: 125.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01336/0.9616, allocations: 5.048 MB / 490.1 MB, free: 124.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/0.9617, allocations: 1.25 kB / 490.1 MB, free: 124.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01003/0.9717, allocations: 3.69 MB / 493.7 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/0.9753, allocations: 373.3 kB / 494.1 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.9936, allocations: 9.332 MB / 0.4916 GB, free: 117.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001928/0.9956, allocations: 1.901 MB / 0.4935 GB, free: 117.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001464/0.997, allocations: 246.6 kB / 0.4937 GB, free: 117.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.756e-06/0.9971, allocations: 6.906 kB / 0.4937 GB, free: 117.1 MB / 410.7 MB Notification: Performance of Templates: time 0.1279/1.125, allocations: 128.3 MB / 0.619 GB, free: 11.15 MB / 426.7 MB