Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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) 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.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000535/0.0005351, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1031, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4488/0.5519, allocations: 76.01 MB / 385 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004107/0.5524, allocations: 78 kB / 385.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03662/0.5891, allocations: 6.584 MB / 391.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.5891, allocations: 0 / 391.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.847e-05/0.5892, allocations: 11.84 kB / 391.7 MB, free: 14.15 MB / 314.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.002573/0.5918, allocations: 0.6917 MB / 392.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5918, allocations: 7.75 kB / 392.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.592, allocations: 38.78 kB / 392.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.5927, allocations: 302.7 kB / 392.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.5928, allocations: 23.66 kB / 392.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.5929, allocations: 34.38 kB / 392.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.5946, allocations: 428.4 kB / 393.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.54e-05/0.5947, allocations: 0 / 393.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.5948, allocations: 19.67 kB / 393.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.5948, allocations: 7.75 kB / 393.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.5968, allocations: 425.5 kB / 393.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01737/0.6143, allocations: 1.289 MB / 394.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.616, allocations: 386.2 kB / 395.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.6161, allocations: 8.125 kB / 395.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.6162, allocations: 38.72 kB / 395.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.529e-06/0.6162, allocations: 4 kB / 395.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.02359/0.6398, allocations: 2.286 MB / 397.6 MB, free: 12.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.6399, allocations: 61.94 kB / 397.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003961/0.6439, allocations: 240.3 kB / 397.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.6441, allocations: 44.08 kB / 397.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.6443, allocations: 217.5 kB / 398.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/0.6445, allocations: 175.5 kB / 398.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.526e-05/0.6446, allocations: 9.312 kB / 398.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.6447, allocations: 332.1 kB / 398.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.6459, allocations: 219 kB / 398.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.647, allocations: 284.8 kB / 399.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00092/0.6479, allocations: 175.2 kB / 399.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.648, allocations: 0 / 399.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.007111/0.6551, allocations: 0.7482 MB / 400.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.6552, allocations: 7.75 kB / 400.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.6552, allocations: 3.75 kB / 400.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00204/0.6573, allocations: 455.8 kB / 400.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006672/0.658, allocations: 70.78 kB / 400.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.6623, allocations: 3.398 MB / 404 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.6636, allocations: 108.8 kB / 404.1 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.6638, allocations: 20.48 kB / 404.1 MB, free: 7.914 MB / 314.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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0004361/0.6642, allocations: 168.2 kB / 404.3 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.6644, allocations: 35.12 kB / 404.3 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003424/0.6679, allocations: 0.7642 MB / 405.1 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.6679, allocations: 9.094 kB / 405.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6679, allocations: 0 / 405.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.6679, allocations: 9.141 kB / 405.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.6711, allocations: 1.212 MB / 406.3 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.6711, allocations: 0 / 406.3 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005073/0.6716, allocations: 54.17 kB / 406.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.673, allocations: 450.7 kB / 406.8 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.818e-05/0.6731, allocations: 18.41 kB / 406.8 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.6764, allocations: 3.369 MB / 410.2 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6764, allocations: 0 / 410.2 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002991/0.6794, allocations: 0.9655 MB / 411.2 MB, free: 19.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000324/0.6798, allocations: 161.9 kB / 411.3 MB, free: 19.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.6799, allocations: 17.75 kB / 411.3 MB, free: 19.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009032/0.6809, allocations: 100.5 kB / 411.4 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/0.6812, allocations: 106.3 kB / 411.5 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.763e-05/0.6813, allocations: 25.45 kB / 411.6 MB, free: 19.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002356/0.6815, allocations: 165.5 kB / 411.7 MB, free: 19.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6815, allocations: 0 / 411.7 MB, free: 19.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007123/0.6823, allocations: 132.5 kB / 411.9 MB, free: 19.77 MB / 330.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.0003215/0.6826, allocations: 146.9 kB / 412 MB, free: 19.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.685, allocations: 0.8328 MB / 412.8 MB, free: 19.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.685, allocations: 0 / 412.8 MB, free: 19.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001347/0.6864, allocations: 0.5215 MB / 413.4 MB, free: 19.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006521/0.6871, allocations: 52.75 kB / 413.4 MB, free: 19.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.6902, allocations: 1.193 MB / 414.6 MB, free: 18.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.6906, allocations: 0.803 MB / 415.4 MB, free: 17.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.6908, allocations: 34.39 kB / 415.4 MB, free: 17.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6908, allocations: 0 / 415.4 MB, free: 17.7 MB / 330.7 MB Notification: Performance of Templates: time 0.01615/0.707, allocations: 8.495 MB / 423.9 MB, free: 13.39 MB / 330.7 MB