Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 171.2 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003738, allocations: 8 kB / 233.9 MB, free: 2.371 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08848, allocations: 38.76 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4882/0.5767, allocations: 72.62 MB / 345.2 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004251/0.5772, allocations: 80.83 kB / 345.3 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0764/0.6536, allocations: 11.94 MB / 357.3 MB, free: 6.539 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.6537, allocations: 0 / 357.3 MB, free: 6.539 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.089e-05/0.6537, allocations: 8 kB / 357.3 MB, free: 6.531 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002458/0.6562, allocations: 0.7601 MB / 358 MB, free: 5.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.6563, allocations: 12.03 kB / 358 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000567/0.6569, allocations: 59.42 kB / 358.1 MB, free: 5.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009201/0.6578, allocations: 328.9 kB / 358.4 MB, free: 5.352 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.658, allocations: 109 kB / 358.5 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.6582, allocations: 36.5 kB / 358.6 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.66, allocations: 0.5593 MB / 359.1 MB, free: 4.812 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.6601, allocations: 7.891 kB / 359.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.224e-05/0.6602, allocations: 26.12 kB / 359.2 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.6602, allocations: 12 kB / 359.2 MB, free: 4.781 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/0.6626, allocations: 0.6437 MB / 359.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003759/0.6664, allocations: 1.226 MB / 361 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001901/0.6683, allocations: 0.5349 MB / 361.6 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.671e-05/0.6685, allocations: 4.562 kB / 361.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.6685, allocations: 38.62 kB / 361.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 6.051e-06/0.6686, allocations: 7.938 kB / 361.6 MB, free: 2.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.01253/0.6811, allocations: 2.935 MB / 364.6 MB, free: 400 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/0.6812, allocations: 85.67 kB / 364.6 MB, free: 296 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006436/0.6819, allocations: 301.5 kB / 364.9 MB, free: 44 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.6821, allocations: 47.08 kB / 365 MB, free: 4 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.6823, allocations: 159.5 kB / 365.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.6826, allocations: 233.8 kB / 365.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.73e-05/0.6827, allocations: 14.56 kB / 365.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.6829, allocations: 349.3 kB / 365.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.684, allocations: 292.3 kB / 366 MB, free: 15.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.6852, allocations: 355.5 kB / 366.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.6863, allocations: 261.2 kB / 366.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.6863, allocations: 0 / 366.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003225/0.6896, allocations: 0.8988 MB / 367.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.6897, allocations: 4 kB / 367.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.6897, allocations: 0 / 367.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.6917, allocations: 0.543 MB / 368.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.6926, allocations: 91.38 kB / 368.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.6949, allocations: 1.077 MB / 369.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.6959, allocations: 82.52 kB / 369.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.6961, allocations: 30.67 kB / 369.3 MB, free: 12.55 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004107/0.6965, allocations: 177.9 kB / 369.5 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.6967, allocations: 39.53 kB / 369.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.6969, allocations: 66.45 kB / 369.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.697, allocations: 8 kB / 369.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.697, allocations: 0 / 369.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.697, allocations: 7.938 kB / 369.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005844/0.7028, allocations: 1.815 MB / 371.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/0.7029, allocations: 4 kB / 371.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007585/0.7037, allocations: 83.69 kB / 371.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.7057, allocations: 0.5187 MB / 372 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.706, allocations: 23.19 kB / 372.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.7092, allocations: 1.036 MB / 373.1 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.7092, allocations: 0 / 373.1 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007388/0.7167, allocations: 1.347 MB / 374.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008443/0.7176, allocations: 181.6 kB / 374.6 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.7179, allocations: 24.73 kB / 374.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.7193, allocations: 78.77 kB / 374.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005689/0.72, allocations: 97.8 kB / 374.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/0.7201, allocations: 26.11 kB / 374.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007149/0.7209, allocations: 220.1 kB / 375.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.152e-06/0.7209, allocations: 0 / 375.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001598/0.7225, allocations: 170.7 kB / 375.2 MB, free: 7.805 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006984/0.7233, allocations: 183.4 kB / 375.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003982/0.7273, allocations: 0.6919 MB / 376.1 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.7274, allocations: 64 / 376.1 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.7289, allocations: 387.3 kB / 376.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.7295, allocations: 34.81 kB / 376.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/0.7343, allocations: 1.363 MB / 377.9 MB, free: 5.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.7349, allocations: 0.832 MB / 378.7 MB, free: 4.703 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004926/0.7354, allocations: 63.33 kB / 378.8 MB, free: 4.641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.7357, allocations: 42.72 kB / 378.8 MB, free: 4.602 MB / 298.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7357, allocations: 0 / 378.8 MB, free: 4.602 MB / 298.7 MB Notification: Performance of Templates: time 0.02641/0.7621, allocations: 8.554 MB / 387.4 MB, free: 12.07 MB / 314.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi