Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 2.208/2.208, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005363/0.0005365, allocations: 15.94 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09737, allocations: 44.51 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4158/0.5132, allocations: 76.02 MB / 385.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.5135, allocations: 77.08 kB / 385.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03036/0.5439, allocations: 6.59 MB / 391.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.544, allocations: 0 / 391.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.295e-05/0.544, allocations: 7.906 kB / 391.7 MB, free: 14.69 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.002013/0.546, allocations: 0.6865 MB / 392.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.5461, allocations: 11.59 kB / 392.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.5463, allocations: 42.91 kB / 392.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.5467, allocations: 296.7 kB / 392.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.5468, allocations: 35.42 kB / 392.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.5469, allocations: 33.88 kB / 392.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.5482, allocations: 418.6 kB / 393.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/0.5483, allocations: 3.938 kB / 393.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/0.5484, allocations: 13.91 kB / 393.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.5484, allocations: 7.781 kB / 393.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.5499, allocations: 431.7 kB / 393.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003854/0.5537, allocations: 1.289 MB / 395 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.555, allocations: 377.4 kB / 395.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.571e-05/0.5551, allocations: 12 kB / 395.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.5552, allocations: 45.67 kB / 395.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 5.03e-06/0.5552, allocations: 0 / 395.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.008662/0.5639, allocations: 2.297 MB / 397.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.5639, allocations: 55.66 kB / 397.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.5643, allocations: 233.1 kB / 398 MB, free: 12.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.5645, allocations: 39.73 kB / 398 MB, free: 12.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.5646, allocations: 163.5 kB / 398.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.5648, allocations: 168.5 kB / 398.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.276e-05/0.5648, allocations: 11.16 kB / 398.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.074e-05/0.5649, allocations: 350.1 kB / 398.7 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000777/0.5657, allocations: 213.7 kB / 398.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007911/0.5665, allocations: 281.2 kB / 399.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006527/0.5672, allocations: 183.7 kB / 399.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5672, allocations: 0 / 399.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002951/0.5702, allocations: 0.752 MB / 400.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.5703, allocations: 3.875 kB / 400.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.5703, allocations: 7.766 kB / 400.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.5718, allocations: 462 kB / 400.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.5725, allocations: 70.05 kB / 400.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004013/0.5765, allocations: 3.398 MB / 404 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.5781, allocations: 106.6 kB / 404.1 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/0.5784, allocations: 22.86 kB / 404.2 MB, free: 8.512 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.0005926/0.579, allocations: 167.7 kB / 404.3 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.5793, allocations: 35.09 kB / 404.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004741/0.584, allocations: 0.7639 MB / 405.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/0.5841, allocations: 7.812 kB / 405.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.5842, allocations: 3.938 kB / 405.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/0.5842, allocations: 2.766 kB / 405.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00567/0.5899, allocations: 1.205 MB / 406.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.59, allocations: 4 kB / 406.4 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008328/0.5908, allocations: 64.06 kB / 406.4 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002488/0.5934, allocations: 435.4 kB / 406.8 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002203/0.5937, allocations: 24.25 kB / 406.9 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/0.5987, allocations: 3.368 MB / 410.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.5988, allocations: 3.875 kB / 410.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004954/0.6037, allocations: 0.9741 MB / 411.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005801/0.6044, allocations: 155.3 kB / 411.4 MB, free: 4.465 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002374/0.6047, allocations: 13.94 kB / 411.4 MB, free: 4.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.6061, allocations: 110.1 kB / 411.5 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005013/0.6067, allocations: 105.3 kB / 411.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.6068, allocations: 23.31 kB / 411.6 MB, free: 4.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003055/0.6072, allocations: 168 kB / 411.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.6072, allocations: 0 / 411.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001149/0.6083, allocations: 122.4 kB / 411.9 MB, free: 4.332 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.0004426/0.6088, allocations: 148.2 kB / 412 MB, free: 4.227 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003418/0.6123, allocations: 0.8313 MB / 412.9 MB, free: 19.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/0.6123, allocations: 0 / 412.9 MB, free: 19.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001895/0.6142, allocations: 0.5373 MB / 413.4 MB, free: 19.55 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009011/0.6152, allocations: 50.78 kB / 413.5 MB, free: 19.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004085/0.6193, allocations: 1.149 MB / 414.6 MB, free: 18.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006343/0.62, allocations: 0.8091 MB / 415.4 MB, free: 18.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003601/0.6204, allocations: 30.66 kB / 415.4 MB, free: 18.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.6206, allocations: 30.05 kB / 415.5 MB, free: 18 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6206, allocations: 3.938 kB / 415.5 MB, free: 17.99 MB / 330.7 MB Notification: Performance of Templates: time 0.03204/0.6526, allocations: 8.495 MB / 424 MB, free: 13.65 MB / 330.7 MB