Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004703/0.0004705, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09205, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4019/0.494, allocations: 70.69 MB / 343.2 MB, free: 3.305 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.4944, allocations: 74.53 kB / 343.3 MB, free: 3.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04324/0.5377, allocations: 6.517 MB / 349.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5377, allocations: 0 / 349.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.034e-05/0.5378, allocations: 11.98 kB / 349.8 MB, free: 13.61 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.003093/0.5409, allocations: 0.6936 MB / 350.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.541, allocations: 11.97 kB / 350.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002769/0.5413, allocations: 39.53 kB / 350.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008162/0.5421, allocations: 299.1 kB / 350.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-05/0.5422, allocations: 20.69 kB / 350.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.5424, allocations: 46.17 kB / 350.9 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.5446, allocations: 443.4 kB / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.45e-05/0.5447, allocations: 0 / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.833e-05/0.5448, allocations: 14.5 kB / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.5448, allocations: 8 kB / 351.4 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/0.5473, allocations: 473.2 kB / 351.8 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/0.5535, allocations: 1.296 MB / 353.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.5558, allocations: 378.4 kB / 353.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/0.556, allocations: 4.375 kB / 353.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.556, allocations: 34.38 kB / 353.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 4.899e-06/0.556, allocations: 0 / 353.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.01416/0.5702, allocations: 2.464 MB / 356 MB, free: 8.242 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.5704, allocations: 55.84 kB / 356.1 MB, free: 8.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.5709, allocations: 240.2 kB / 356.3 MB, free: 7.969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.5712, allocations: 44.45 kB / 356.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/0.5715, allocations: 232.9 kB / 356.6 MB, free: 7.723 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/0.5719, allocations: 169.7 kB / 356.7 MB, free: 7.578 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-05/0.572, allocations: 16.88 kB / 356.8 MB, free: 7.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.5722, allocations: 331.1 kB / 357.1 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.5735, allocations: 231.8 kB / 357.3 MB, free: 7.098 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.575, allocations: 312.8 kB / 357.6 MB, free: 6.859 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.5762, allocations: 198.6 kB / 357.8 MB, free: 6.734 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.5763, allocations: 3.938 kB / 357.8 MB, free: 6.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005107/0.5814, allocations: 0.8975 MB / 358.7 MB, free: 6.027 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.5815, allocations: 4 kB / 358.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.5815, allocations: 4 kB / 358.7 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002883/0.5844, allocations: 0.5814 MB / 359.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008018/0.5853, allocations: 78.97 kB / 359.4 MB, free: 5.465 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/0.5917, allocations: 3.456 MB / 362.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.5933, allocations: 107.8 kB / 362.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/0.5935, allocations: 23.67 kB / 363 MB, free: 1.836 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.000558/0.5941, allocations: 168.5 kB / 363.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.5943, allocations: 35.62 kB / 363.2 MB, free: 1.652 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004735/0.5991, allocations: 0.8043 MB / 364 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/0.5992, allocations: 4 kB / 364 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.5992, allocations: 3.984 kB / 364 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.5992, allocations: 0 / 364 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005682/0.6049, allocations: 1.282 MB / 365.2 MB, free: 0 / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.605, allocations: 256 / 365.3 MB, free: 0 / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007885/0.6058, allocations: 60.02 kB / 365.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00253/0.6083, allocations: 0.5596 MB / 365.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/0.6085, allocations: 22.59 kB / 365.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005697/0.6143, allocations: 3.44 MB / 369.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6143, allocations: 0 / 369.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.619, allocations: 1.051 MB / 370.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.6196, allocations: 155.1 kB / 370.5 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.6198, allocations: 18.88 kB / 370.6 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.621, allocations: 103.2 kB / 370.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005156/0.6216, allocations: 103.2 kB / 370.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.6218, allocations: 27.3 kB / 370.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003953/0.6222, allocations: 175.9 kB / 371 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.6222, allocations: 0 / 371 MB, free: 10.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001272/0.6235, allocations: 130 kB / 371.1 MB, free: 10.54 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.0004771/0.624, allocations: 136.8 kB / 371.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003723/0.6278, allocations: 0.7943 MB / 372 MB, free: 9.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.6278, allocations: 4.25 kB / 372 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.63, allocations: 0.5311 MB / 372.5 MB, free: 9.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009438/0.631, allocations: 55.61 kB / 372.6 MB, free: 9.238 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.636, allocations: 1.194 MB / 373.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.6367, allocations: 0.8074 MB / 374.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002747/0.637, allocations: 26.12 kB / 374.6 MB, free: 7.246 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/0.637, allocations: 0 / 374.6 MB, free: 7.246 MB / 298.7 MB Notification: Performance of Templates: time 0.02557/0.6626, allocations: 8.164 MB / 382.8 MB, free: 15.12 MB / 314.7 MB