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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 2.013/2.013, allocations: 209.4 MB / 217.3 MB, free: 4.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.646e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2624, allocations: 48.68 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.3967, allocations: 89.34 MB / 409.3 MB, free: 7.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.397, allocations: 67.97 kB / 409.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4843/0.8813, allocations: 63.36 MB / 472.8 MB, free: 96.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.8814, allocations: 0 / 472.8 MB, free: 96.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001733/0.8815, allocations: 66.66 kB / 472.8 MB, free: 96.05 MB / 378.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.009406/0.891, allocations: 2.901 MB / 475.7 MB, free: 94.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.891, allocations: 11 kB / 475.7 MB, free: 94.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/0.8935, allocations: 404.7 kB / 476.1 MB, free: 94.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003579/0.8971, allocations: 1.304 MB / 477.4 MB, free: 93.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009099/0.8981, allocations: 498.9 kB / 477.9 MB, free: 93.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009958/0.8991, allocations: 197.7 kB / 478.1 MB, free: 93.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008074/0.9072, allocations: 2.982 MB / 481.1 MB, free: 91.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007992/0.9152, allocations: 2.805 MB / 483.9 MB, free: 88.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/0.9155, allocations: 47.48 kB / 483.9 MB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005137/0.916, allocations: 4 kB / 484 MB, free: 88.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.074e-05/0.9161, allocations: 71.98 kB / 484 MB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.9362, allocations: 9.146 MB / 493.2 MB, free: 78.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005554/0.9418, allocations: 2.757 MB / 495.9 MB, free: 75.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003384/0.9453, allocations: 1.445 MB / 497.4 MB, free: 74.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003512/0.9457, allocations: 60.91 kB / 497.4 MB, free: 74.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.591e-05/0.9458, allocations: 100.7 kB / 497.5 MB, free: 74.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=359): time 8.658e-06/0.9458, allocations: 0 / 497.5 MB, free: 74.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=421): time 0.03278/0.9786, allocations: 16.26 MB / 0.5017 GB, free: 57.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.9787, allocations: 0.5543 MB / 0.5023 GB, free: 56.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.9807, allocations: 1.087 MB / 0.5033 GB, free: 55.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007519/0.9815, allocations: 57.69 kB / 0.5034 GB, free: 55.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006272/0.9822, allocations: 0.8946 MB / 0.5043 GB, free: 54.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001519/0.9837, allocations: 1.361 MB / 0.5056 GB, free: 52.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004032/0.9841, allocations: 7.984 kB / 0.5056 GB, free: 52.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.9843, allocations: 475.8 kB / 0.5061 GB, free: 52.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003137/0.9875, allocations: 1.309 MB / 0.5073 GB, free: 51.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/0.9916, allocations: 2.016 MB / 0.5093 GB, free: 48.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003969/0.9956, allocations: 1.36 MB / 0.5106 GB, free: 47.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.824e-05/0.9956, allocations: 4 kB / 0.5106 GB, free: 47.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01233/1.008, allocations: 4.476 MB / 0.515 GB, free: 42.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/1.008, allocations: 12 kB / 0.515 GB, free: 42.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.185e-05/1.008, allocations: 20 kB / 0.515 GB, free: 42.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005306/1.013, allocations: 1.959 MB / 0.517 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/1.017, allocations: 0.8113 MB / 0.5178 GB, free: 40.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/1.038, allocations: 15.99 MB / 0.5334 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00382/1.042, allocations: 307.8 kB / 0.5337 GB, free: 23.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008299/1.043, allocations: 195.8 kB / 0.5339 GB, free: 22.87 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.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: bearingFriction.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.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: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.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,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete 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,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001074/1.044, allocations: 229.5 kB / 0.5341 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.045, allocations: 276.8 kB / 0.5343 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/1.047, allocations: 0.5122 MB / 0.5348 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.013e-05/1.047, allocations: 44 kB / 0.5349 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-05/1.047, allocations: 11.94 kB / 0.5349 GB, free: 21.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-05/1.047, allocations: 23.92 kB / 0.5349 GB, free: 21.76 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02408/1.071, allocations: 9.542 MB / 0.5442 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.327e-05/1.071, allocations: 8 kB / 0.5442 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004136/1.075, allocations: 0.7296 MB / 0.5449 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005048/1.08, allocations: 1.827 MB / 0.5467 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007917/1.081, allocations: 79.88 kB / 0.5468 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02177/1.103, allocations: 15.44 MB / 0.5619 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.92e-05/1.103, allocations: 15.94 kB / 0.5619 GB, free: 9.188 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01814/1.121, allocations: 7.459 MB / 0.5692 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002532/1.124, allocations: 0.6888 MB / 0.5699 GB, free: 0.625 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008262/1.125, allocations: 44 kB / 0.5699 GB, free: 0.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004148/1.129, allocations: 287.7 kB / 0.5702 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002031/1.131, allocations: 0.6056 MB / 0.5708 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005156/1.131, allocations: 171.9 kB / 0.5709 GB, free: 15.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001685/1.133, allocations: 0.7846 MB / 0.5717 GB, free: 14.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.882e-06/1.133, allocations: 4 kB / 0.5717 GB, free: 14.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006003/1.139, allocations: 0.8475 MB / 0.5725 GB, free: 13.89 MB / 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,linearSpeedDependentTorque.phi,inertia20.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,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.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,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * 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,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001228/1.14, allocations: 281.9 kB / 0.5728 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.151, allocations: 4.317 MB / 0.577 GB, free: 9.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-05/1.151, allocations: 8.062 kB / 0.577 GB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009176/1.16, allocations: 3.278 MB / 0.5802 GB, free: 5.891 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003802/1.164, allocations: 283.4 kB / 0.5805 GB, free: 5.617 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/1.182, allocations: 6.822 MB / 0.5872 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00267/1.184, allocations: 1.904 MB / 0.589 GB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/1.186, allocations: 255.2 kB / 0.5893 GB, free: 12.45 MB / 426.7 MB Notification: Performance of SimCode: time 2.135e-06/1.186, allocations: 0 / 0.5893 GB, free: 12.45 MB / 426.7 MB Notification: Performance of Templates: time 0.4668/1.653, allocations: 127.4 MB / 0.7136 GB, free: 34.25 MB / 426.7 MB