Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.359/2.359, allocations: 234.9 MB / 251.1 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008338/0.000834, allocations: 15.98 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3643, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.177/0.5414, allocations: 96.35 MB / 466.2 MB, free: 10.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.5418, allocations: 75.91 kB / 466.2 MB, free: 10.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5888/1.131, allocations: 63.8 MB / 0.5176 GB, free: 55.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.131, allocations: 0 / 0.5176 GB, free: 55.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000163/1.131, allocations: 67.98 kB / 0.5177 GB, free: 55.16 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.01269/1.144, allocations: 3.126 MB / 0.5207 GB, free: 51.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.144, allocations: 8.031 kB / 0.5207 GB, free: 51.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002874/1.147, allocations: 407.8 kB / 0.5211 GB, free: 51.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004366/1.151, allocations: 1.31 MB / 0.5224 GB, free: 50.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001259/1.152, allocations: 0.5806 MB / 0.523 GB, free: 49.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/1.153, allocations: 307.6 kB / 0.5233 GB, free: 49.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/1.164, allocations: 3.399 MB / 0.5266 GB, free: 45.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001966/1.165, allocations: 35.61 kB / 0.5266 GB, free: 45.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004682/1.165, allocations: 116 kB / 0.5267 GB, free: 45.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.934e-05/1.165, allocations: 72 kB / 0.5268 GB, free: 45.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/1.178, allocations: 3.489 MB / 0.5302 GB, free: 42.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02637/1.204, allocations: 9.776 MB / 0.5398 GB, free: 32.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009344/1.214, allocations: 3.15 MB / 0.5428 GB, free: 28.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006922/1.214, allocations: 224.1 kB / 0.543 GB, free: 28.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.228e-05/1.214, allocations: 92.36 kB / 0.5431 GB, free: 28.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 7.574e-06/1.214, allocations: 0 / 0.5431 GB, free: 28.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.06288/1.277, allocations: 21.35 MB / 0.564 GB, free: 5.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001913/1.278, allocations: 0.6084 MB / 0.5646 GB, free: 5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003101/1.281, allocations: 1.51 MB / 0.566 GB, free: 3.488 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001057/1.282, allocations: 121.7 kB / 0.5662 GB, free: 3.363 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/1.283, allocations: 0.8504 MB / 0.567 GB, free: 2.504 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001864/1.284, allocations: 1.44 MB / 0.5684 GB, free: 1.043 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005472/1.285, allocations: 84 kB / 0.5685 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000298/1.285, allocations: 475.9 kB / 0.5689 GB, free: 496 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006381/1.292, allocations: 1.433 MB / 0.5703 GB, free: 15.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007532/1.299, allocations: 2.18 MB / 0.5725 GB, free: 12.58 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006508/1.306, allocations: 1.472 MB / 0.5739 GB, free: 11.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.939e-05/1.306, allocations: 8 kB / 0.5739 GB, free: 11.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0202/1.326, allocations: 4.73 MB / 0.5785 GB, free: 6.344 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.368e-05/1.326, allocations: 16.03 kB / 0.5785 GB, free: 6.328 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.182e-05/1.326, allocations: 23.98 kB / 0.5786 GB, free: 6.305 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007599/1.334, allocations: 1.783 MB / 0.5803 GB, free: 4.492 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00662/1.341, allocations: 0.8074 MB / 0.5811 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03492/1.376, allocations: 16.54 MB / 0.5972 GB, free: 2.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006173/1.382, allocations: 379.8 kB / 0.5976 GB, free: 1.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/1.383, allocations: 183.9 kB / 0.5978 GB, free: 1.68 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.003906/1.387, allocations: 0.6102 MB / 0.5984 GB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00208/1.389, allocations: 292.6 kB / 0.5987 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/1.397, allocations: 1.598 MB / 0.6002 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.05e-05/1.397, allocations: 44 kB / 0.6003 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.923e-05/1.397, allocations: 8 kB / 0.6003 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001467/1.397, allocations: 23.92 kB / 0.6003 GB, free: 15.06 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.04046/1.438, allocations: 10.42 MB / 0.6105 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.419e-05/1.438, allocations: 8 kB / 0.6105 GB, free: 4.414 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006881/1.445, allocations: 0.738 MB / 0.6112 GB, free: 3.676 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007334/1.452, allocations: 1.632 MB / 0.6128 GB, free: 2.012 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001157/1.453, allocations: 139.8 kB / 0.6129 GB, free: 1.875 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0316/1.485, allocations: 16.03 MB / 0.6286 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.755e-05/1.485, allocations: 15.94 kB / 0.6286 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02822/1.513, allocations: 7.838 MB / 0.6362 GB, free: 8.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003244/1.517, allocations: 0.7119 MB / 0.6369 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001789/1.519, allocations: 115.9 kB / 0.6371 GB, free: 8.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006082/1.525, allocations: 351.7 kB / 0.6374 GB, free: 7.719 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002732/1.527, allocations: 0.6134 MB / 0.638 GB, free: 7.105 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009104/1.528, allocations: 163.9 kB / 0.6381 GB, free: 6.945 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003002/1.531, allocations: 1.008 MB / 0.6391 GB, free: 5.945 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.531, allocations: 0 / 0.6391 GB, free: 5.945 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007306/1.539, allocations: 0.9921 MB / 0.6401 GB, free: 4.953 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.001614/1.54, allocations: 317.8 kB / 0.6404 GB, free: 4.633 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.365/1.905, allocations: 5.035 MB / 0.6453 GB, free: 129.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/1.906, allocations: 3.031 kB / 0.6453 GB, free: 129.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0141/1.92, allocations: 3.764 MB / 0.649 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005134/1.925, allocations: 379 kB / 0.6494 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02933/1.954, allocations: 9.401 MB / 0.6585 GB, free: 124.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003537/1.958, allocations: 1.886 MB / 0.6604 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002991/1.961, allocations: 266.5 kB / 0.6606 GB, free: 124 MB / 474.7 MB Notification: Performance of SimCode: time 1.823e-06/1.961, allocations: 8.953 kB / 0.6606 GB, free: 124 MB / 474.7 MB Notification: Performance of Templates: time 0.2158/2.177, allocations: 128.9 MB / 0.7865 GB, free: 21.37 MB / 474.7 MB