Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.753/1.753, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003575, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08129/0.08167, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4485, allocations: 76.02 MB / 384.5 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4487, allocations: 72.16 kB / 384.5 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0253/0.4741, allocations: 6.581 MB / 391.1 MB, free: 18.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4741, allocations: 7.844 kB / 391.1 MB, free: 18.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.4741, allocations: 3.969 kB / 391.1 MB, free: 18.14 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.001312/0.4755, allocations: 0.69 MB / 391.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.4755, allocations: 10.89 kB / 391.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4756, allocations: 42.47 kB / 391.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.476, allocations: 290.7 kB / 392.2 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.4761, allocations: 27.38 kB / 392.2 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.4762, allocations: 40.33 kB / 392.2 MB, free: 17.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.4772, allocations: 421.3 kB / 392.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.4773, allocations: 0 / 392.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.4774, allocations: 14.47 kB / 392.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.4774, allocations: 11.72 kB / 392.7 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.4786, allocations: 433.8 kB / 393.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002912/0.4815, allocations: 1.292 MB / 394.4 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009967/0.4826, allocations: 383.3 kB / 394.7 MB, free: 16.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.681e-05/0.4827, allocations: 8.156 kB / 394.8 MB, free: 16.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.4827, allocations: 34.44 kB / 394.8 MB, free: 16.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.587e-06/0.4827, allocations: 0 / 394.8 MB, free: 16.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006649/0.4894, allocations: 2.303 MB / 397.1 MB, free: 16.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.4894, allocations: 55.66 kB / 397.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.4897, allocations: 208.8 kB / 397.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.481e-05/0.4898, allocations: 36.95 kB / 397.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.4899, allocations: 221 kB / 397.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.4901, allocations: 175.2 kB / 397.8 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/0.4901, allocations: 6.688 kB / 397.8 MB, free: 15.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.4902, allocations: 338.9 kB / 398.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006417/0.4909, allocations: 213 kB / 398.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006735/0.4915, allocations: 283.9 kB / 398.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.4921, allocations: 180.3 kB / 398.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.635e-06/0.4921, allocations: 4 kB / 398.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002357/0.4945, allocations: 0.741 MB / 399.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4945, allocations: 3.844 kB / 399.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.4945, allocations: 3.875 kB / 399.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.4958, allocations: 461.7 kB / 400 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.4962, allocations: 78.83 kB / 400.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.4991, allocations: 3.39 MB / 403.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007058/0.4998, allocations: 102.3 kB / 403.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.117e-05/0.4999, allocations: 22.09 kB / 403.6 MB, free: 11.92 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.0002944/0.5002, allocations: 174.7 kB / 403.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.5003, allocations: 31.28 kB / 403.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/0.5026, allocations: 0.7665 MB / 404.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.36e-06/0.5027, allocations: 11.75 kB / 404.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.524e-06/0.5027, allocations: 0 / 404.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.236e-06/0.5027, allocations: 7.781 kB / 404.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.5055, allocations: 1.199 MB / 405.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.643e-06/0.5055, allocations: 0 / 405.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/0.5059, allocations: 67.84 kB / 405.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.5072, allocations: 437.2 kB / 406.2 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.969e-05/0.5073, allocations: 17.94 kB / 406.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003006/0.5103, allocations: 3.374 MB / 409.6 MB, free: 24.19 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.504e-06/0.5103, allocations: 3.984 kB / 409.6 MB, free: 24.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.5128, allocations: 0.9809 MB / 410.6 MB, free: 23.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.5131, allocations: 155 kB / 410.8 MB, free: 23.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.5132, allocations: 15.06 kB / 410.8 MB, free: 23.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/0.5138, allocations: 106.2 kB / 410.9 MB, free: 23.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.514, allocations: 106.4 kB / 411 MB, free: 23.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-05/0.5141, allocations: 22.88 kB / 411 MB, free: 23.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002146/0.5144, allocations: 170.2 kB / 411.2 MB, free: 23.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.14e-07/0.5144, allocations: 0 / 411.2 MB, free: 23.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00067/0.515, allocations: 129.2 kB / 411.3 MB, free: 23.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.0002997/0.5154, allocations: 143.9 kB / 411.4 MB, free: 23.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.5173, allocations: 0.8321 MB / 412.3 MB, free: 23.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.5173, allocations: 0 / 412.3 MB, free: 23.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.5185, allocations: 0.5264 MB / 412.8 MB, free: 23.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.519, allocations: 51.92 kB / 412.9 MB, free: 23.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.5214, allocations: 1.179 MB / 414 MB, free: 22.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.522, allocations: 0.8081 MB / 414.8 MB, free: 21.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.5221, allocations: 33.41 kB / 414.9 MB, free: 21.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.428e-06/0.5221, allocations: 0 / 414.9 MB, free: 21.73 MB / 330.7 MB Notification: Performance of Templates: time 0.01186/0.534, allocations: 8.513 MB / 423.4 MB, free: 17.9 MB / 330.7 MB