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.929/1.929, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004387/0.0004388, allocations: 12 kB / 282.6 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.08738, allocations: 48.72 MB / 331.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3438/0.4312, allocations: 90.07 MB / 421.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4315, allocations: 63.98 kB / 421.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2804/0.712, allocations: 63.85 MB / 485.3 MB, free: 10.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.099e-06/0.712, allocations: 0 / 485.3 MB, free: 10.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002206/0.7123, allocations: 67.98 kB / 485.3 MB, free: 10.9 MB / 410.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.01118/0.7235, allocations: 3.162 MB / 488.5 MB, free: 7.676 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.7235, allocations: 8.031 kB / 488.5 MB, free: 7.668 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002446/0.726, allocations: 407.9 kB / 488.9 MB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004126/0.7301, allocations: 1.31 MB / 490.2 MB, free: 5.902 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001197/0.7314, allocations: 0.5806 MB / 490.8 MB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.7326, allocations: 315.6 kB / 491.1 MB, free: 4.949 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.7438, allocations: 3.39 MB / 494.5 MB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/0.744, allocations: 43.61 kB / 494.5 MB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005308/0.7446, allocations: 112 kB / 494.6 MB, free: 1.293 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.053e-05/0.7447, allocations: 68 kB / 494.7 MB, free: 1.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2398/0.9845, allocations: 3.554 MB / 498.3 MB, free: 98.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02376/1.008, allocations: 9.63 MB / 0.496 GB, free: 95.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008335/1.017, allocations: 3.145 MB / 0.4991 GB, free: 95.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004099/1.017, allocations: 56.69 kB / 0.4991 GB, free: 95.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.924e-05/1.017, allocations: 84.53 kB / 0.4992 GB, free: 95.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=359): time 9.459e-06/1.017, allocations: 0 / 0.4992 GB, free: 95.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=421): time 0.05104/1.068, allocations: 21.03 MB / 0.5197 GB, free: 84.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/1.068, allocations: 0.5592 MB / 0.5203 GB, free: 83.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/1.071, allocations: 1.375 MB / 0.5216 GB, free: 83.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008398/1.072, allocations: 129.2 kB / 0.5217 GB, free: 83.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006293/1.073, allocations: 0.8654 MB / 0.5226 GB, free: 82.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/1.074, allocations: 1.413 MB / 0.524 GB, free: 81.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004759/1.075, allocations: 87.73 kB / 0.5241 GB, free: 81.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002266/1.075, allocations: 470.6 kB / 0.5245 GB, free: 80.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004507/1.08, allocations: 1.482 MB / 0.5259 GB, free: 80.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005543/1.085, allocations: 2.212 MB / 0.5281 GB, free: 79.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004706/1.09, allocations: 1.518 MB / 0.5296 GB, free: 78.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.632e-05/1.09, allocations: 6.375 kB / 0.5296 GB, free: 78.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01467/1.105, allocations: 5.051 MB / 0.5345 GB, free: 76.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/1.105, allocations: 16.22 kB / 0.5345 GB, free: 76.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.327e-05/1.105, allocations: 19.59 kB / 0.5346 GB, free: 76.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005858/1.111, allocations: 2.012 MB / 0.5365 GB, free: 76.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004314/1.115, allocations: 0.8083 MB / 0.5373 GB, free: 76.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02355/1.139, allocations: 16.68 MB / 0.5536 GB, free: 62.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/1.143, allocations: 386.2 kB / 0.554 GB, free: 62.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007419/1.144, allocations: 191 kB / 0.5542 GB, free: 62.62 MB / 410.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.002091/1.146, allocations: 0.6051 MB / 0.5548 GB, free: 62.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/1.147, allocations: 286.9 kB / 0.555 GB, free: 62.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/1.148, allocations: 0.6539 MB / 0.5557 GB, free: 61.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.51e-05/1.149, allocations: 45.34 kB / 0.5557 GB, free: 61.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-05/1.149, allocations: 10.73 kB / 0.5557 GB, free: 61.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.076e-05/1.149, allocations: 28.77 kB / 0.5557 GB, free: 61.67 MB / 410.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.02796/1.177, allocations: 10.55 MB / 0.566 GB, free: 54.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.232e-05/1.177, allocations: 8.656 kB / 0.5661 GB, free: 54.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004154/1.181, allocations: 0.7288 MB / 0.5668 GB, free: 54.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005421/1.186, allocations: 1.873 MB / 0.5686 GB, free: 52.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007552/1.187, allocations: 130.3 kB / 0.5687 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02267/1.21, allocations: 16.17 MB / 0.5845 GB, free: 36.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/1.21, allocations: 11.94 kB / 0.5845 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.229, allocations: 8.479 MB / 0.5928 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002329/1.232, allocations: 0.7197 MB / 0.5935 GB, free: 27.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/1.233, allocations: 111.7 kB / 0.5936 GB, free: 27.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004232/1.237, allocations: 356.7 kB / 0.594 GB, free: 27.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001851/1.239, allocations: 0.5997 MB / 0.5945 GB, free: 27.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005366/1.239, allocations: 164.7 kB / 0.5947 GB, free: 27.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00223/1.242, allocations: 1.036 MB / 0.5957 GB, free: 26.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.55e-07/1.242, allocations: 0 / 0.5957 GB, free: 26.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01159/1.253, allocations: 1.012 MB / 0.5967 GB, free: 25.22 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.002114/1.255, allocations: 342.9 kB / 0.597 GB, free: 24.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02548/1.281, allocations: 5.015 MB / 0.6019 GB, free: 20.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.976e-05/1.281, allocations: 0 / 0.6019 GB, free: 20.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02052/1.302, allocations: 3.693 MB / 0.6055 GB, free: 16.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007956/1.31, allocations: 374.8 kB / 0.6059 GB, free: 16.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02677/1.336, allocations: 9.364 MB / 0.615 GB, free: 7.969 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/1.338, allocations: 1.899 MB / 0.6169 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/1.34, allocations: 275.2 kB / 0.6171 GB, free: 5.938 MB / 410.7 MB Notification: Performance of SimCode: time 1.656e-06/1.34, allocations: 0 / 0.6171 GB, free: 5.938 MB / 410.7 MB Notification: Performance of Templates: time 0.3836/1.723, allocations: 128.4 MB / 0.7425 GB, free: 67.44 MB / 442.7 MB