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.185/2.185, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004588/0.0004589, allocations: 8 kB / 314.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3584, allocations: 54.87 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1482/0.5066, allocations: 96.38 MB / 465.6 MB, free: 10.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.5069, allocations: 67.97 kB / 465.7 MB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4851/0.992, allocations: 63.8 MB / 0.5171 GB, free: 55.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.55e-06/0.9921, allocations: 0 / 0.5171 GB, free: 55.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001462/0.9923, allocations: 63.98 kB / 0.5172 GB, free: 55.19 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.008163/1, allocations: 3.123 MB / 0.5202 GB, free: 52.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/1, allocations: 8.031 kB / 0.5202 GB, free: 52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/1.002, allocations: 411.8 kB / 0.5206 GB, free: 51.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003272/1.006, allocations: 1.306 MB / 0.5219 GB, free: 50.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009274/1.007, allocations: 0.5806 MB / 0.5224 GB, free: 49.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009983/1.008, allocations: 303.7 kB / 0.5227 GB, free: 49.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009261/1.017, allocations: 3.368 MB / 0.526 GB, free: 45.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/1.017, allocations: 47.55 kB / 0.5261 GB, free: 45.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003975/1.018, allocations: 119.9 kB / 0.5262 GB, free: 45.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.469e-05/1.018, allocations: 72 kB / 0.5263 GB, free: 45.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009586/1.027, allocations: 3.485 MB / 0.5297 GB, free: 42.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/1.048, allocations: 9.795 MB / 0.5392 GB, free: 32.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007458/1.056, allocations: 3.142 MB / 0.5423 GB, free: 28.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000476/1.056, allocations: 220.2 kB / 0.5425 GB, free: 28.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.53e-05/1.056, allocations: 93.11 kB / 0.5426 GB, free: 28.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 1.008e-05/1.056, allocations: 0 / 0.5426 GB, free: 28.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.04886/1.105, allocations: 21.36 MB / 0.5635 GB, free: 5.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/1.105, allocations: 0.6084 MB / 0.564 GB, free: 5.031 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/1.108, allocations: 1.322 MB / 0.5653 GB, free: 3.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000834/1.109, allocations: 121.7 kB / 0.5655 GB, free: 3.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000636/1.109, allocations: 0.8572 MB / 0.5663 GB, free: 2.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.111, allocations: 1.433 MB / 0.5677 GB, free: 1.266 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003599/1.111, allocations: 83.98 kB / 0.5678 GB, free: 1.184 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/1.111, allocations: 471.9 kB / 0.5682 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004539/1.116, allocations: 1.433 MB / 0.5696 GB, free: 15.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006094/1.122, allocations: 2.161 MB / 0.5717 GB, free: 12.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005065/1.127, allocations: 1.475 MB / 0.5732 GB, free: 11.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.04e-05/1.127, allocations: 4 kB / 0.5732 GB, free: 11.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01649/1.144, allocations: 4.73 MB / 0.5778 GB, free: 6.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/1.144, allocations: 12 kB / 0.5778 GB, free: 6.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.168e-05/1.144, allocations: 20.59 kB / 0.5778 GB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006186/1.15, allocations: 1.773 MB / 0.5796 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004447/1.155, allocations: 0.8038 MB / 0.5803 GB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02964/1.184, allocations: 16.56 MB / 0.5965 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/1.188, allocations: 383.6 kB / 0.5969 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009651/1.189, allocations: 187.9 kB / 0.5971 GB, free: 1.93 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 ($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 () * Number of clocked 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.002646/1.192, allocations: 0.6141 MB / 0.5977 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001358/1.194, allocations: 284.6 kB / 0.5979 GB, free: 1.023 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005367/1.199, allocations: 1.586 MB / 0.5995 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.545e-05/1.199, allocations: 44 kB / 0.5995 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.007e-05/1.199, allocations: 4 kB / 0.5995 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.423e-05/1.199, allocations: 27.92 kB / 0.5995 GB, free: 15.33 MB / 442.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.03153/1.231, allocations: 10.42 MB / 0.6097 GB, free: 4.684 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.193e-05/1.231, allocations: 8 kB / 0.6097 GB, free: 4.676 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004608/1.235, allocations: 0.7337 MB / 0.6104 GB, free: 3.941 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005809/1.241, allocations: 1.644 MB / 0.6121 GB, free: 2.266 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007353/1.242, allocations: 135.8 kB / 0.6122 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02774/1.27, allocations: 16.03 MB / 0.6278 GB, free: 1.199 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.596e-05/1.27, allocations: 11.94 kB / 0.6278 GB, free: 1.188 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02197/1.292, allocations: 8.495 MB / 0.6361 GB, free: 8.277 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002565/1.294, allocations: 0.7119 MB / 0.6368 GB, free: 7.543 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001066/1.296, allocations: 112 kB / 0.6369 GB, free: 7.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004519/1.3, allocations: 351.7 kB / 0.6373 GB, free: 7.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002118/1.302, allocations: 0.6134 MB / 0.6379 GB, free: 6.477 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006415/1.303, allocations: 163.9 kB / 0.638 GB, free: 6.316 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002755/1.306, allocations: 1.008 MB / 0.639 GB, free: 5.316 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.224e-06/1.306, allocations: 0 / 0.639 GB, free: 5.316 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006471/1.312, allocations: 0.9882 MB / 0.64 GB, free: 4.328 MB / 474.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) * Number of clocked states: 0 () * 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.001292/1.314, allocations: 326.1 kB / 0.6403 GB, free: 4.004 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3159/1.629, allocations: 5.048 MB / 0.6452 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.391e-05/1.63, allocations: 2.766 kB / 0.6452 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01196/1.642, allocations: 3.759 MB / 0.6489 GB, free: 130.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004165/1.646, allocations: 376.8 kB / 0.6493 GB, free: 130.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/1.664, allocations: 9.39 MB / 0.6584 GB, free: 125.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/1.666, allocations: 1.893 MB / 0.6603 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/1.668, allocations: 261.2 kB / 0.6605 GB, free: 125 MB / 474.7 MB Notification: Performance of SimCode: time 1.718e-06/1.668, allocations: 4 kB / 0.6605 GB, free: 125 MB / 474.7 MB Notification: Performance of Templates: time 0.1254/1.793, allocations: 128.9 MB / 0.7864 GB, free: 21.52 MB / 474.7 MB