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.958/1.958, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.208e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 48.71 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5219, allocations: 89.98 MB / 416.5 MB, free: 1.777 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.5221, allocations: 69.97 kB / 416.6 MB, free: 1.742 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2783/0.8005, allocations: 63.84 MB / 480.4 MB, free: 9.254 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.642e-06/0.8005, allocations: 0 / 480.4 MB, free: 9.254 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002234/0.8008, allocations: 67.98 kB / 480.5 MB, free: 9.188 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.0106/0.8114, allocations: 2.903 MB / 483.4 MB, free: 6.227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.8114, allocations: 8.031 kB / 483.4 MB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.814, allocations: 411.7 kB / 483.8 MB, free: 5.812 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004062/0.8181, allocations: 1.302 MB / 485.1 MB, free: 4.457 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/0.8194, allocations: 0.5883 MB / 485.7 MB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/0.8207, allocations: 307.7 kB / 486 MB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009755/0.8305, allocations: 3.18 MB / 489.2 MB, free: 216 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002581/0.8308, allocations: 43.55 kB / 489.2 MB, free: 172 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006918/0.8315, allocations: 116 kB / 489.3 MB, free: 56 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.8317, allocations: 72.05 kB / 489.4 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008659/0.8403, allocations: 3.152 MB / 492.6 MB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0257/0.8661, allocations: 9.639 MB / 0.4904 GB, free: 2.965 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007389/0.8735, allocations: 2.915 MB / 0.4933 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004407/0.8779, allocations: 1.562 MB / 0.4948 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003695/0.8783, allocations: 57.47 kB / 0.4949 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.8785, allocations: 92.3 kB / 0.4949 GB, free: 14.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=359): time 1.202e-05/0.8785, allocations: 0 / 0.4949 GB, free: 14.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=421): time 0.03938/0.9179, allocations: 17.09 MB / 0.5116 GB, free: 11.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003604/0.9183, allocations: 0.5621 MB / 0.5122 GB, free: 11.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003103/0.9214, allocations: 1.352 MB / 0.5135 GB, free: 9.918 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008547/0.9223, allocations: 121.7 kB / 0.5136 GB, free: 9.793 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009952/0.9233, allocations: 0.8725 MB / 0.5145 GB, free: 8.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002249/0.9256, allocations: 1.402 MB / 0.5158 GB, free: 7.488 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006341/0.9262, allocations: 91.98 kB / 0.5159 GB, free: 7.398 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004161/0.9267, allocations: 471.8 kB / 0.5164 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004319/0.931, allocations: 1.392 MB / 0.5177 GB, free: 5.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00534/0.9364, allocations: 2.129 MB / 0.5198 GB, free: 3.117 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/0.9406, allocations: 1.404 MB / 0.5212 GB, free: 1.715 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.507e-05/0.9407, allocations: 11.98 kB / 0.5212 GB, free: 1.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.2511/1.192, allocations: 4.839 MB / 0.5259 GB, free: 108.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/1.192, allocations: 20.09 kB / 0.5259 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-05/1.192, allocations: 25 kB / 0.526 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005924/1.198, allocations: 1.958 MB / 0.5279 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00484/1.203, allocations: 0.8166 MB / 0.5287 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02281/1.226, allocations: 16.36 MB / 0.5447 GB, free: 98.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/1.23, allocations: 378.8 kB / 0.545 GB, free: 98.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008786/1.231, allocations: 192.3 kB / 0.5452 GB, free: 98.39 MB / 426.7 MB 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.001055/1.232, allocations: 357.9 kB / 0.5455 GB, free: 98.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.233, allocations: 291 kB / 0.5458 GB, free: 98.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/1.235, allocations: 0.6102 MB / 0.5464 GB, free: 98.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.122e-05/1.235, allocations: 47.64 kB / 0.5465 GB, free: 98.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.288e-05/1.235, allocations: 5.875 kB / 0.5465 GB, free: 98.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.015e-05/1.235, allocations: 21.86 kB / 0.5465 GB, free: 98.22 MB / 426.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.02846/1.263, allocations: 10.2 MB / 0.5564 GB, free: 96.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.6e-05/1.263, allocations: 8.312 kB / 0.5565 GB, free: 96.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005005/1.268, allocations: 0.7225 MB / 0.5572 GB, free: 96.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005767/1.274, allocations: 1.847 MB / 0.559 GB, free: 95.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008158/1.275, allocations: 137.2 kB / 0.5591 GB, free: 95.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02111/1.296, allocations: 15.83 MB / 0.5746 GB, free: 82.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/1.296, allocations: 12.84 kB / 0.5746 GB, free: 82.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/1.312, allocations: 7.837 MB / 0.5822 GB, free: 78.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002422/1.315, allocations: 0.7181 MB / 0.5829 GB, free: 77.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/1.316, allocations: 113.8 kB / 0.583 GB, free: 77.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004484/1.321, allocations: 353.2 kB / 0.5834 GB, free: 77.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001963/1.323, allocations: 0.6021 MB / 0.584 GB, free: 77.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006719/1.323, allocations: 167.5 kB / 0.5841 GB, free: 77.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002102/1.326, allocations: 1.012 MB / 0.5851 GB, free: 77.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.88e-07/1.326, allocations: 0 / 0.5851 GB, free: 77.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006145/1.332, allocations: 1.016 MB / 0.5861 GB, free: 77.11 MB / 426.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.001181/1.333, allocations: 348.4 kB / 0.5864 GB, free: 76.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.343, allocations: 4.63 MB / 0.5909 GB, free: 74.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.343, allocations: 2.688 kB / 0.5909 GB, free: 74.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008721/1.352, allocations: 3.435 MB / 0.5943 GB, free: 72.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004083/1.356, allocations: 384.8 kB / 0.5947 GB, free: 72.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/1.372, allocations: 7.044 MB / 0.6015 GB, free: 67.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/1.374, allocations: 1.893 MB / 0.6034 GB, free: 65.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001577/1.376, allocations: 268.3 kB / 0.6037 GB, free: 65.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.797e-06/1.376, allocations: 0 / 0.6037 GB, free: 65.48 MB / 426.7 MB Notification: Performance of Templates: time 0.379/1.755, allocations: 128.4 MB / 0.729 GB, free: 110.9 MB / 442.7 MB