Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.835/1.835, allocations: 209.2 MB / 225.4 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005701/0.0005701, allocations: 8 kB / 283.1 MB, free: 9.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.328, allocations: 48.7 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4775, allocations: 90.08 MB / 421.9 MB, free: 4.352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4778, allocations: 71.97 kB / 421.9 MB, free: 4.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6656/1.143, allocations: 63.84 MB / 485.8 MB, free: 96.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.957e-06/1.143, allocations: 0 / 485.8 MB, free: 96.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002316/1.144, allocations: 68.31 kB / 485.8 MB, free: 96.93 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01467/1.158, allocations: 3.156 MB / 489 MB, free: 95.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/1.158, allocations: 8.469 kB / 489 MB, free: 95.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/1.162, allocations: 412.2 kB / 489.4 MB, free: 95.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004858/1.167, allocations: 1.315 MB / 490.7 MB, free: 95.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001374/1.168, allocations: 0.5845 MB / 491.3 MB, free: 94.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001289/1.169, allocations: 309.5 kB / 491.6 MB, free: 94.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/1.18, allocations: 3.411 MB / 495 MB, free: 94.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00017/1.18, allocations: 42.66 kB / 495.1 MB, free: 94.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004494/1.181, allocations: 121.1 kB / 495.2 MB, free: 94.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.597e-05/1.181, allocations: 68.78 kB / 495.3 MB, free: 94.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/1.193, allocations: 3.558 MB / 498.8 MB, free: 93.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0238/1.217, allocations: 9.641 MB / 0.4965 GB, free: 88.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008991/1.226, allocations: 3.134 MB / 0.4996 GB, free: 87.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004695/1.226, allocations: 51.61 kB / 0.4996 GB, free: 87.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.29e-05/1.226, allocations: 91.58 kB / 0.4997 GB, free: 87.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=359): time 7.303e-06/1.226, allocations: 0 / 0.4997 GB, free: 87.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=421): time 0.06109/1.287, allocations: 21.03 MB / 0.5203 GB, free: 72.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/1.288, allocations: 0.562 MB / 0.5208 GB, free: 71.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/1.291, allocations: 1.571 MB / 0.5224 GB, free: 70.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009669/1.292, allocations: 125.5 kB / 0.5225 GB, free: 70.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006743/1.292, allocations: 0.8679 MB / 0.5233 GB, free: 69.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/1.294, allocations: 1.41 MB / 0.5247 GB, free: 68.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005031/1.295, allocations: 91.09 kB / 0.5248 GB, free: 68.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002471/1.295, allocations: 473.4 kB / 0.5252 GB, free: 67.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005292/1.3, allocations: 1.485 MB / 0.5267 GB, free: 66.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008165/1.309, allocations: 2.221 MB / 0.5289 GB, free: 64.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00816/1.317, allocations: 1.524 MB / 0.5303 GB, free: 62.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.885e-05/1.317, allocations: 8 kB / 0.5304 GB, free: 62.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02612/1.343, allocations: 5.05 MB / 0.5353 GB, free: 58.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/1.343, allocations: 12 kB / 0.5353 GB, free: 58.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.049e-05/1.343, allocations: 20 kB / 0.5353 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01012/1.353, allocations: 2.015 MB / 0.5373 GB, free: 56.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008138/1.362, allocations: 0.8152 MB / 0.5381 GB, free: 55.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03728/1.399, allocations: 16.68 MB / 0.5544 GB, free: 37.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007591/1.407, allocations: 383.6 kB / 0.5547 GB, free: 37.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/1.408, allocations: 191.9 kB / 0.5549 GB, free: 37.11 MB / 394.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 () * 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,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.004391/1.413, allocations: 0.6102 MB / 0.5555 GB, free: 36.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002137/1.415, allocations: 292.5 kB / 0.5558 GB, free: 36.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00288/1.418, allocations: 0.6465 MB / 0.5564 GB, free: 35.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-05/1.418, allocations: 44 kB / 0.5565 GB, free: 35.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.577e-05/1.418, allocations: 4 kB / 0.5565 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000135/1.418, allocations: 23.92 kB / 0.5565 GB, free: 35.47 MB / 394.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.04303/1.461, allocations: 10.56 MB / 0.5668 GB, free: 24.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.237e-05/1.461, allocations: 8 kB / 0.5668 GB, free: 24.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006369/1.468, allocations: 0.7298 MB / 0.5675 GB, free: 24.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006823/1.474, allocations: 1.867 MB / 0.5693 GB, free: 22.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001182/1.476, allocations: 131.9 kB / 0.5695 GB, free: 22.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0358/1.512, allocations: 16.17 MB / 0.5853 GB, free: 4.988 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.726e-05/1.512, allocations: 11.94 kB / 0.5853 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06941/1.581, allocations: 7.929 MB / 0.593 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00441/1.586, allocations: 0.712 MB / 0.5937 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002395/1.588, allocations: 115.9 kB / 0.5938 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008481/1.597, allocations: 347.7 kB / 0.5941 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003463/1.6, allocations: 0.6018 MB / 0.5947 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00145/1.602, allocations: 167.9 kB / 0.5949 GB, free: 10.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004349/1.606, allocations: 1.037 MB / 0.5959 GB, free: 9.914 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.613e-06/1.606, allocations: 0 / 0.5959 GB, free: 9.914 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01083/1.617, allocations: 1.016 MB / 0.5969 GB, free: 8.898 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) * Number of clocked states: 0 () * 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.002284/1.619, allocations: 356.3 kB / 0.5972 GB, free: 8.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02337/1.643, allocations: 5.004 MB / 0.6021 GB, free: 3.465 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.66e-05/1.643, allocations: 4 kB / 0.6021 GB, free: 3.461 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01338/1.656, allocations: 3.688 MB / 0.6057 GB, free: 15.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005379/1.662, allocations: 381.6 kB / 0.6061 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02672/1.688, allocations: 9.371 MB / 0.6152 GB, free: 5.809 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002498/1.691, allocations: 1.896 MB / 0.6171 GB, free: 3.875 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/1.693, allocations: 271.2 kB / 0.6174 GB, free: 3.609 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.693, allocations: 0 / 0.6174 GB, free: 3.609 MB / 426.7 MB Notification: Performance of Templates: time 0.48/2.173, allocations: 128.4 MB / 0.7427 GB, free: 20.46 MB / 426.7 MB