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.SimpleGearShift.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.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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 171.1 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005696/0.0005698, allocations: 12 kB / 233.9 MB, free: 284 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1154, allocations: 38.76 MB / 272.6 MB, free: 9.434 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5544, allocations: 70.69 MB / 343.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.5547, allocations: 71.97 kB / 343.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03064/0.5854, allocations: 6.519 MB / 349.9 MB, free: 5.371 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5855, allocations: 0 / 349.9 MB, free: 5.371 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.601e-05/0.5855, allocations: 8 kB / 349.9 MB, free: 5.363 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.002021/0.5875, allocations: 0.6979 MB / 350.6 MB, free: 4.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.5876, allocations: 12.03 kB / 350.6 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.5877, allocations: 43.53 kB / 350.7 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/0.5883, allocations: 297.4 kB / 350.9 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.712e-05/0.5883, allocations: 21 kB / 351 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.5885, allocations: 47.84 kB / 351 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.5898, allocations: 438.3 kB / 351.4 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.5899, allocations: 4 kB / 351.4 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.99e-05/0.59, allocations: 15.98 kB / 351.5 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.59, allocations: 8 kB / 351.5 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.5918, allocations: 475.6 kB / 351.9 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004101/0.5959, allocations: 1.281 MB / 353.2 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.5973, allocations: 380.5 kB / 353.6 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.734e-05/0.5974, allocations: 8.359 kB / 353.6 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.5975, allocations: 38.94 kB / 353.6 MB, free: 1.445 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 4.288e-06/0.5975, allocations: 0 / 353.6 MB, free: 1.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.009641/0.6072, allocations: 2.461 MB / 356.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.6073, allocations: 59.84 kB / 356.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.6077, allocations: 242.6 kB / 356.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.142e-05/0.6078, allocations: 49.69 kB / 356.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.608, allocations: 164.6 kB / 356.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.6082, allocations: 169.8 kB / 356.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.6083, allocations: 15.94 kB / 356.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.6085, allocations: 346.7 kB / 357.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008625/0.6093, allocations: 237 kB / 357.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009224/0.6103, allocations: 303.2 kB / 357.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007512/0.6111, allocations: 199.5 kB / 357.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.6111, allocations: 0 / 357.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003534/0.6146, allocations: 0.9107 MB / 358.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.6147, allocations: 8.062 kB / 358.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.6147, allocations: 7.984 kB / 358.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.6167, allocations: 0.5807 MB / 359.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.6173, allocations: 67.91 kB / 359.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004213/0.6215, allocations: 3.469 MB / 362.9 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.6226, allocations: 100 kB / 363 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.234e-05/0.6227, allocations: 27.98 kB / 363 MB, free: 7.547 MB / 298.7 MB 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 () * Number of clocked 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.0003604/0.623, allocations: 165.8 kB / 363.2 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.6232, allocations: 35.61 kB / 363.2 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003081/0.6263, allocations: 0.8066 MB / 364 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.6263, allocations: 8 kB / 364 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.6263, allocations: 4 kB / 364 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.6263, allocations: 3.984 kB / 364 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003673/0.63, allocations: 1.275 MB / 365.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.6301, allocations: 0 / 365.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/0.6306, allocations: 55.97 kB / 365.4 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/0.6325, allocations: 0.5665 MB / 365.9 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.091e-05/0.6326, allocations: 19.98 kB / 365.9 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004219/0.6368, allocations: 3.425 MB / 369.4 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.6368, allocations: 0 / 369.4 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003546/0.6404, allocations: 1.055 MB / 370.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003729/0.6408, allocations: 156.7 kB / 370.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.641, allocations: 12 kB / 370.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009149/0.6419, allocations: 103.8 kB / 370.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003723/0.6423, allocations: 112.2 kB / 370.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-05/0.6424, allocations: 27.97 kB / 370.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002736/0.6427, allocations: 174 kB / 371 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6427, allocations: 0 / 371 MB, free: 15.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007985/0.6435, allocations: 120 kB / 371.1 MB, free: 15 MB / 314.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) * Number of clocked states: 0 () * 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.0003535/0.6439, allocations: 149.9 kB / 371.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.6464, allocations: 0.7985 MB / 372.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.6465, allocations: 0 / 372.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.6481, allocations: 0.5411 MB / 372.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.6488, allocations: 52.42 kB / 372.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.6523, allocations: 1.157 MB / 373.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.6528, allocations: 0.8113 MB / 374.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002825/0.6531, allocations: 31.28 kB / 374.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.6533, allocations: 23.44 kB / 374.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6533, allocations: 0 / 374.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of Templates: time 0.02378/0.6771, allocations: 8.203 MB / 382.9 MB, free: 3.141 MB / 314.7 MB