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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.217/2.217, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.552e-05/1.561e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2759, allocations: 54.86 MB / 358 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4197, allocations: 95.61 MB / 453.6 MB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.42, allocations: 63.97 kB / 453.7 MB, free: 15.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4936/0.9136, allocations: 63.33 MB / 0.5049 GB, free: 64 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.548e-06/0.9136, allocations: 0 / 0.5049 GB, free: 64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001683/0.9138, allocations: 67.98 kB / 0.505 GB, free: 63.94 MB / 394.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.008778/0.9226, allocations: 2.871 MB / 0.5078 GB, free: 61.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.9227, allocations: 8.031 kB / 0.5078 GB, free: 61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/0.925, allocations: 415.8 kB / 0.5082 GB, free: 60.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003439/0.9284, allocations: 1.294 MB / 0.5095 GB, free: 59.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009132/0.9294, allocations: 0.4908 MB / 0.5099 GB, free: 58.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009324/0.9304, allocations: 187.7 kB / 0.5101 GB, free: 58.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007671/0.938, allocations: 2.912 MB / 0.513 GB, free: 55.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007682/0.9458, allocations: 2.763 MB / 0.5157 GB, free: 52.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.946, allocations: 43.64 kB / 0.5157 GB, free: 52.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004013/0.9464, allocations: 8 kB / 0.5157 GB, free: 52.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-05/0.9465, allocations: 72 kB / 0.5158 GB, free: 52.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02018/0.9667, allocations: 9.14 MB / 0.5247 GB, free: 43.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005242/0.972, allocations: 2.697 MB / 0.5273 GB, free: 40.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003416/0.9754, allocations: 1.448 MB / 0.5287 GB, free: 38.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004512/0.9759, allocations: 220.3 kB / 0.529 GB, free: 38.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.377e-05/0.976, allocations: 99.86 kB / 0.5291 GB, free: 38.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 9.759e-06/0.976, allocations: 0 / 0.5291 GB, free: 38.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.03308/1.009, allocations: 16.11 MB / 0.5448 GB, free: 21.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/1.009, allocations: 0.5504 MB / 0.5453 GB, free: 20.67 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/1.011, allocations: 1.042 MB / 0.5463 GB, free: 19.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007598/1.012, allocations: 57.69 kB / 0.5464 GB, free: 19.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006375/1.013, allocations: 0.884 MB / 0.5473 GB, free: 18.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001473/1.014, allocations: 1.382 MB / 0.5486 GB, free: 17.26 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003333/1.014, allocations: 7.938 kB / 0.5486 GB, free: 17.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/1.015, allocations: 471.9 kB / 0.5491 GB, free: 16.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/1.018, allocations: 1.262 MB / 0.5503 GB, free: 15.51 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003664/1.021, allocations: 1.969 MB / 0.5522 GB, free: 13.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003972/1.025, allocations: 1.314 MB / 0.5535 GB, free: 11.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-05/1.025, allocations: 4 kB / 0.5535 GB, free: 11.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01207/1.038, allocations: 4.163 MB / 0.5576 GB, free: 7.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/1.038, allocations: 16 kB / 0.5576 GB, free: 7.734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.347e-05/1.038, allocations: 32.58 kB / 0.5576 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004975/1.043, allocations: 1.7 MB / 0.5593 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/1.047, allocations: 0.8113 MB / 0.5601 GB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02469/1.072, allocations: 15.86 MB / 0.5756 GB, free: 4.508 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/1.076, allocations: 299.6 kB / 0.5759 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/1.077, allocations: 184.9 kB / 0.576 GB, free: 4.035 MB / 410.7 MB 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 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: 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: bearingFriction1.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: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,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,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001278/1.078, allocations: 237.7 kB / 0.5763 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.079, allocations: 272.9 kB / 0.5765 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004863/1.084, allocations: 1.451 MB / 0.5779 GB, free: 2.031 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.641e-05/1.084, allocations: 44 kB / 0.578 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.154e-05/1.084, allocations: 8 kB / 0.578 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001041/1.084, allocations: 27.92 kB / 0.578 GB, free: 1.953 MB / 410.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.02787/1.112, allocations: 9.542 MB / 0.5873 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.802e-05/1.112, allocations: 8 kB / 0.5873 GB, free: 8.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004533/1.117, allocations: 0.7336 MB / 0.5881 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005422/1.122, allocations: 1.577 MB / 0.5896 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007477/1.123, allocations: 79.88 kB / 0.5897 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02461/1.148, allocations: 15.29 MB / 0.6046 GB, free: 5.664 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.213e-05/1.148, allocations: 15.94 kB / 0.6046 GB, free: 5.648 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/1.165, allocations: 7.313 MB / 0.6118 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/1.167, allocations: 0.6771 MB / 0.6124 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007037/1.168, allocations: 47.94 kB / 0.6125 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0037/1.172, allocations: 283.7 kB / 0.6127 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00173/1.173, allocations: 0.6173 MB / 0.6133 GB, free: 12.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004741/1.174, allocations: 163.9 kB / 0.6135 GB, free: 12.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001558/1.175, allocations: 0.764 MB / 0.6142 GB, free: 11.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.693e-06/1.175, allocations: 0 / 0.6142 GB, free: 11.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00505/1.18, allocations: 0.8163 MB / 0.615 GB, free: 10.5 MB / 458.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,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 (303): * Single equations (assignments): 293 * 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.0007471/1.181, allocations: 242.1 kB / 0.6153 GB, free: 10.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009791/1.191, allocations: 4.355 MB / 0.6195 GB, free: 5.816 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.01e-06/1.191, allocations: 0 / 0.6195 GB, free: 5.816 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008794/1.2, allocations: 3.334 MB / 0.6228 GB, free: 2.422 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003331/1.203, allocations: 292 kB / 0.6231 GB, free: 2.141 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2789/1.482, allocations: 6.817 MB / 0.6297 GB, free: 117.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.484, allocations: 1.891 MB / 0.6316 GB, free: 116.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/1.486, allocations: 250.4 kB / 0.6318 GB, free: 116.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.827e-06/1.486, allocations: 6.875 kB / 0.6318 GB, free: 116.5 MB / 458.7 MB Notification: Performance of Templates: time 0.1246/1.61, allocations: 127.9 MB / 0.7567 GB, free: 17.54 MB / 458.7 MB