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/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) 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.765/1.765, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07033/0.07071, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2836/0.3544, allocations: 70.69 MB / 342.7 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.3547, allocations: 72.02 kB / 342.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02717/0.3818, allocations: 6.52 MB / 349.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.396e-06/0.3819, allocations: 0 / 349.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.3819, allocations: 4 kB / 349.3 MB, free: 13.54 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.001615/0.3836, allocations: 0.6983 MB / 350 MB, free: 12.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3836, allocations: 11.97 kB / 350 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3838, allocations: 43.53 kB / 350 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.3843, allocations: 292.3 kB / 350.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.3843, allocations: 34.98 kB / 350.4 MB, free: 12.44 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3845, allocations: 40.98 kB / 350.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3856, allocations: 437.9 kB / 350.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.3857, allocations: 3.984 kB / 350.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.3857, allocations: 15.19 kB / 350.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.3858, allocations: 8 kB / 350.9 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.3871, allocations: 470.5 kB / 351.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.3904, allocations: 1.29 MB / 352.6 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.3915, allocations: 386.1 kB / 353 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.032e-05/0.3916, allocations: 4.375 kB / 353 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.3916, allocations: 34.69 kB / 353 MB, free: 10.34 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 3.713e-06/0.3917, allocations: 0 / 353 MB, free: 10.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.007421/0.3991, allocations: 2.466 MB / 355.5 MB, free: 8.168 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.3992, allocations: 55.84 kB / 355.5 MB, free: 8.102 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.3995, allocations: 217.9 kB / 355.8 MB, free: 7.914 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-05/0.3996, allocations: 37.08 kB / 355.8 MB, free: 7.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.3998, allocations: 234.8 kB / 356 MB, free: 7.672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.4, allocations: 172.2 kB / 356.2 MB, free: 7.527 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.443e-05/0.4001, allocations: 10.88 kB / 356.2 MB, free: 7.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.4003, allocations: 332.5 kB / 356.5 MB, free: 7.199 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007011/0.401, allocations: 234.9 kB / 356.8 MB, free: 7.047 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007573/0.4018, allocations: 302.3 kB / 357 MB, free: 6.816 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000615/0.4024, allocations: 203.8 kB / 357.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4024, allocations: 0 / 357.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002809/0.4052, allocations: 0.9015 MB / 358.1 MB, free: 5.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.4053, allocations: 7.938 kB / 358.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4053, allocations: 4 kB / 358.2 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.4069, allocations: 0.5774 MB / 358.7 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4074, allocations: 78.91 kB / 358.8 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004237/0.4116, allocations: 3.46 MB / 362.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007173/0.4124, allocations: 103.5 kB / 362.4 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.808e-05/0.4125, allocations: 23.61 kB / 362.4 MB, free: 1.789 MB / 282.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.0003404/0.4128, allocations: 163.1 kB / 362.6 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.413, allocations: 35.62 kB / 362.6 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00248/0.4155, allocations: 0.8162 MB / 363.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.913e-06/0.4155, allocations: 4 kB / 363.4 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.311e-06/0.4155, allocations: 0 / 363.4 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4155, allocations: 3.984 kB / 363.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.4187, allocations: 1.277 MB / 364.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.865e-06/0.4188, allocations: 0 / 364.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003998/0.4192, allocations: 59.84 kB / 364.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.4207, allocations: 0.5601 MB / 365.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/0.4208, allocations: 15.23 kB / 365.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004129/0.4249, allocations: 3.435 MB / 368.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.102e-06/0.425, allocations: 4 kB / 368.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.4278, allocations: 1.062 MB / 369.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.4282, allocations: 151.9 kB / 370 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.4283, allocations: 15.69 kB / 370 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006151/0.4289, allocations: 103.5 kB / 370.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/0.4292, allocations: 103.8 kB / 370.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.482e-05/0.4293, allocations: 27.59 kB / 370.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002585/0.4296, allocations: 173 kB / 370.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.03e-07/0.4296, allocations: 4 kB / 370.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007252/0.4303, allocations: 123.4 kB / 370.5 MB, free: 10.49 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) * 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.0003074/0.4307, allocations: 137.6 kB / 370.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.4328, allocations: 0.796 MB / 371.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.885e-06/0.4328, allocations: 4.25 kB / 371.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.434, allocations: 0.5357 MB / 372 MB, free: 9.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/0.4346, allocations: 58.75 kB / 372 MB, free: 9.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.4375, allocations: 1.184 MB / 373.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005801/0.4381, allocations: 0.8107 MB / 374 MB, free: 7.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.4383, allocations: 31.42 kB / 374.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of SimCode: time 1.921e-06/0.4383, allocations: 0 / 374.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of Templates: time 0.01497/0.4533, allocations: 8.167 MB / 382.2 MB, free: 15.06 MB / 314.7 MB