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.225/2.225, allocations: 235 MB / 248.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.499e-05, allocations: 0 / 309.7 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3818, allocations: 54.85 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.5414, allocations: 96.28 MB / 460.8 MB, free: 192 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.5416, allocations: 63.97 kB / 460.9 MB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.274/0.8156, allocations: 63.81 MB / 0.5124 GB, free: 176 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.13e-06/0.8157, allocations: 0 / 0.5124 GB, free: 176 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002246/0.8159, allocations: 67.98 kB / 0.5125 GB, free: 108 kB / 442.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.01043/0.8264, allocations: 2.871 MB / 0.5153 GB, free: 13.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.8264, allocations: 12.03 kB / 0.5153 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.829, allocations: 407.8 kB / 0.5157 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004311/0.8334, allocations: 1.294 MB / 0.5169 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/0.8347, allocations: 0.5806 MB / 0.5175 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.836, allocations: 319.6 kB / 0.5178 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.8468, allocations: 3.158 MB / 0.5209 GB, free: 7.184 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003494/0.8472, allocations: 43.62 kB / 0.5209 GB, free: 7.141 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.8482, allocations: 112 kB / 0.521 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-05/0.8483, allocations: 76 kB / 0.5211 GB, free: 6.957 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009041/0.8574, allocations: 3.086 MB / 0.5241 GB, free: 3.863 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2851/1.142, allocations: 9.773 MB / 0.5337 GB, free: 113.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006623/1.149, allocations: 2.915 MB / 0.5365 GB, free: 112.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004149/1.153, allocations: 1.572 MB / 0.538 GB, free: 112.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004867/1.154, allocations: 221.5 kB / 0.5383 GB, free: 112.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.496e-05/1.154, allocations: 96.67 kB / 0.5383 GB, free: 112.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=366): time 9.965e-06/1.154, allocations: 0 / 0.5383 GB, free: 112.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=429): time 0.03551/1.189, allocations: 17.43 MB / 0.5554 GB, free: 103.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/1.19, allocations: 0.6166 MB / 0.556 GB, free: 102.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/1.192, allocations: 1.3 MB / 0.5572 GB, free: 102.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008047/1.193, allocations: 124.3 kB / 0.5574 GB, free: 102.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006017/1.194, allocations: 0.8504 MB / 0.5582 GB, free: 101.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001617/1.195, allocations: 1.439 MB / 0.5596 GB, free: 100.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004852/1.196, allocations: 91.28 kB / 0.5597 GB, free: 100.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002289/1.196, allocations: 468 kB / 0.5601 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003675/1.2, allocations: 1.35 MB / 0.5614 GB, free: 99.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00452/1.204, allocations: 2.067 MB / 0.5635 GB, free: 98.28 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003664/1.208, allocations: 1.358 MB / 0.5648 GB, free: 97.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.109e-05/1.208, allocations: 9.812 kB / 0.5648 GB, free: 97.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01279/1.221, allocations: 4.529 MB / 0.5692 GB, free: 96.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/1.221, allocations: 11.69 kB / 0.5692 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-05/1.221, allocations: 19.88 kB / 0.5693 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005498/1.227, allocations: 1.731 MB / 0.5709 GB, free: 95.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00427/1.231, allocations: 0.811 MB / 0.5717 GB, free: 95.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03527/1.266, allocations: 16.23 MB / 0.5876 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007236/1.273, allocations: 384.5 kB / 0.588 GB, free: 82.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/1.275, allocations: 188.7 kB / 0.5881 GB, free: 82.44 MB / 458.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 ($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.001524/1.276, allocations: 365.2 kB / 0.5885 GB, free: 82.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00213/1.279, allocations: 290.5 kB / 0.5888 GB, free: 81.99 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007476/1.286, allocations: 1.527 MB / 0.5902 GB, free: 81.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.481e-05/1.286, allocations: 47.81 kB / 0.5903 GB, free: 81.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-05/1.286, allocations: 6.719 kB / 0.5903 GB, free: 81.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001224/1.286, allocations: 24.02 kB / 0.5903 GB, free: 81.27 MB / 458.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.04308/1.329, allocations: 10.08 MB / 0.6002 GB, free: 76.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.39e-05/1.33, allocations: 11.09 kB / 0.6002 GB, free: 76.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008354/1.338, allocations: 0.7372 MB / 0.6009 GB, free: 76.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008822/1.347, allocations: 1.603 MB / 0.6025 GB, free: 75.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001125/1.348, allocations: 138.5 kB / 0.6026 GB, free: 75.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03654/1.385, allocations: 15.7 MB / 0.6179 GB, free: 60.03 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/1.385, allocations: 11.94 kB / 0.6179 GB, free: 60.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/1.4, allocations: 7.859 MB / 0.6256 GB, free: 52.17 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002269/1.402, allocations: 0.7002 MB / 0.6263 GB, free: 51.58 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009411/1.403, allocations: 115.8 kB / 0.6264 GB, free: 51.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004203/1.408, allocations: 348.3 kB / 0.6267 GB, free: 51.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001807/1.409, allocations: 0.6098 MB / 0.6273 GB, free: 50.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005272/1.41, allocations: 166.7 kB / 0.6275 GB, free: 50.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001857/1.412, allocations: 0.9838 MB / 0.6285 GB, free: 49.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.842e-06/1.412, allocations: 0 / 0.6285 GB, free: 49.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005873/1.418, allocations: 0.9968 MB / 0.6294 GB, free: 48.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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.001013/1.419, allocations: 317.5 kB / 0.6297 GB, free: 48.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009731/1.429, allocations: 4.679 MB / 0.6343 GB, free: 44.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/1.429, allocations: 4 kB / 0.6343 GB, free: 44.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008397/1.437, allocations: 3.516 MB / 0.6377 GB, free: 40.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004022/1.441, allocations: 388.1 kB / 0.6381 GB, free: 40.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/1.456, allocations: 7.056 MB / 0.645 GB, free: 33.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/1.458, allocations: 1.897 MB / 0.6469 GB, free: 32.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.46, allocations: 258.8 kB / 0.6471 GB, free: 32.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.946e-06/1.46, allocations: 0 / 0.6471 GB, free: 32.21 MB / 458.7 MB Notification: Performance of Templates: time 0.4573/1.917, allocations: 128.9 MB / 0.773 GB, free: 114.8 MB / 490.7 MB