Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.701e-05/1.701e-05, allocations: 0 / 222.5 MB, free: 8.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.06969, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.3501, allocations: 69.94 MB / 331.2 MB, free: 2.391 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.3503, allocations: 67.89 kB / 331.3 MB, free: 2.355 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.026/0.3764, allocations: 6.451 MB / 337.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.911e-06/0.3764, allocations: 0 / 337.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.3764, allocations: 4 kB / 337.7 MB, free: 12.85 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001494/0.3779, allocations: 0.6691 MB / 338.4 MB, free: 12.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.378, allocations: 12.03 kB / 338.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.3782, allocations: 43.52 kB / 338.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.3787, allocations: 293 kB / 338.7 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.3787, allocations: 19.94 kB / 338.8 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.3788, allocations: 23.91 kB / 338.8 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009331/0.3798, allocations: 398.6 kB / 339.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008379/0.3806, allocations: 366.9 kB / 339.5 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.3807, allocations: 4 kB / 339.5 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.3807, allocations: 0 / 339.5 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3808, allocations: 8 kB / 339.5 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.3839, allocations: 1.225 MB / 340.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000797/0.3847, allocations: 326.8 kB / 341.1 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/0.3852, allocations: 212.9 kB / 341.3 MB, free: 9.812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.543e-05/0.3852, allocations: 11.62 kB / 341.3 MB, free: 9.805 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.3853, allocations: 34.69 kB / 341.3 MB, free: 9.766 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 3.869e-06/0.3853, allocations: 4 kB / 341.3 MB, free: 9.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.004516/0.3898, allocations: 1.546 MB / 342.9 MB, free: 8.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.3899, allocations: 55.84 kB / 342.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.3902, allocations: 201.7 kB / 343.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.748e-05/0.3903, allocations: 36.94 kB / 343.2 MB, free: 8.125 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.3905, allocations: 236.6 kB / 343.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.3907, allocations: 153.9 kB / 343.6 MB, free: 7.785 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.111e-05/0.3907, allocations: 0 / 343.6 MB, free: 7.785 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3909, allocations: 329.4 kB / 343.9 MB, free: 7.461 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004458/0.3914, allocations: 201 kB / 344.1 MB, free: 7.344 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.3919, allocations: 253.4 kB / 344.3 MB, free: 7.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/0.3925, allocations: 175.5 kB / 344.5 MB, free: 7.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.572e-06/0.3925, allocations: 0 / 344.5 MB, free: 7.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002429/0.3949, allocations: 0.8003 MB / 345.3 MB, free: 6.402 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.395, allocations: 4 kB / 345.3 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.921e-06/0.395, allocations: 0 / 345.3 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.3965, allocations: 0.5589 MB / 345.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.3969, allocations: 87.83 kB / 345.9 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/0.401, allocations: 3.415 MB / 349.4 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/0.4018, allocations: 95.94 kB / 349.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.652e-05/0.4019, allocations: 23.86 kB / 349.5 MB, free: 2.32 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002554/0.4021, allocations: 124.2 kB / 349.6 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.4023, allocations: 35.62 kB / 349.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.4044, allocations: 0.721 MB / 350.4 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.281e-06/0.4044, allocations: 4 kB / 350.4 MB, free: 1.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.984e-06/0.4044, allocations: 0 / 350.4 MB, free: 1.598 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.4045, allocations: 3.984 kB / 350.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.4071, allocations: 1.126 MB / 351.5 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.333e-06/0.4072, allocations: 4 kB / 351.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.4075, allocations: 59.84 kB / 351.6 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/0.409, allocations: 0.5461 MB / 352.1 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.817e-05/0.4091, allocations: 19.86 kB / 352.1 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003963/0.413, allocations: 3.359 MB / 355.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.4131, allocations: 0 / 355.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.4154, allocations: 0.9342 MB / 356.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.4157, allocations: 160.7 kB / 356.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.4158, allocations: 8 kB / 356.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006334/0.4165, allocations: 91.91 kB / 356.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/0.4168, allocations: 112.2 kB / 356.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.552e-05/0.4169, allocations: 27.98 kB / 356.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002479/0.4172, allocations: 154 kB / 357 MB, free: 11.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.99e-07/0.4172, allocations: 0 / 357 MB, free: 11.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007314/0.4179, allocations: 115.9 kB / 357.1 MB, free: 11.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003154/0.4183, allocations: 143 kB / 357.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.42, allocations: 0.6968 MB / 357.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.393e-06/0.42, allocations: 0 / 357.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.4211, allocations: 491.5 kB / 358.4 MB, free: 9.711 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.4216, allocations: 44.52 kB / 358.4 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.424, allocations: 0.7955 MB / 359.2 MB, free: 8.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.4246, allocations: 0.8075 MB / 360 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.4247, allocations: 27.44 kB / 360.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of SimCode: time 2.023e-06/0.4248, allocations: 0 / 360.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of Templates: time 0.01481/0.4396, allocations: 8.132 MB / 368.2 MB, free: 15.84 MB / 314.7 MB