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.572/1.572, allocations: 171.2 MB / 186.7 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 8 kB / 233.2 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06969/0.07007, allocations: 38.77 MB / 271.9 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003458/0.07357, allocations: 2.217 MB / 274.1 MB, free: 7.855 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.07557, allocations: 0.9124 MB / 275.1 MB, free: 6.941 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.0758, allocations: 4 kB / 275.1 MB, free: 6.938 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.07597, allocations: 39.69 kB / 275.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.07634, allocations: 135.5 kB / 275.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.07687, allocations: 151.7 kB / 275.4 MB, free: 6.617 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005117/0.0774, allocations: 348.5 kB / 275.7 MB, free: 6.277 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.07764, allocations: 93.47 kB / 275.8 MB, free: 6.184 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.07798, allocations: 207.3 kB / 276 MB, free: 5.98 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.07835, allocations: 227.2 kB / 276.2 MB, free: 5.758 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.973e-05/0.07843, allocations: 24 kB / 276.3 MB, free: 5.734 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002685/0.07871, allocations: 115.8 kB / 276.4 MB, free: 5.621 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.07886, allocations: 87.66 kB / 276.5 MB, free: 5.535 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.07898, allocations: 85.52 kB / 276.5 MB, free: 5.445 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005646/0.07956, allocations: 383.3 kB / 276.9 MB, free: 5.07 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.871e-06/0.07958, allocations: 0 / 276.9 MB, free: 5.07 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.07959, allocations: 0 / 276.9 MB, free: 5.07 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.07962, allocations: 4 kB / 276.9 MB, free: 5.066 MB / 234.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.001635/0.08126, allocations: 0.6878 MB / 277.6 MB, free: 4.332 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.08132, allocations: 8.031 kB / 277.6 MB, free: 4.324 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.08145, allocations: 43.53 kB / 277.7 MB, free: 4.281 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.08193, allocations: 281.5 kB / 277.9 MB, free: 3.965 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/0.082, allocations: 36.95 kB / 278 MB, free: 3.93 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.08212, allocations: 43.83 kB / 278 MB, free: 3.887 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.08325, allocations: 434.3 kB / 278.4 MB, free: 3.457 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.0833, allocations: 4 kB / 278.4 MB, free: 3.453 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.74e-05/0.08337, allocations: 12 kB / 278.5 MB, free: 3.441 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.08339, allocations: 8 kB / 278.5 MB, free: 3.434 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.08469, allocations: 455.7 kB / 278.9 MB, free: 2.988 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/0.08785, allocations: 1.257 MB / 280.2 MB, free: 1.656 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.08898, allocations: 364.5 kB / 280.5 MB, free: 1.293 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.08905, allocations: 8.359 kB / 280.5 MB, free: 1.285 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.0891, allocations: 42.92 kB / 280.6 MB, free: 1.234 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 3.749e-06/0.08912, allocations: 0 / 280.6 MB, free: 1.234 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.1762/0.2653, allocations: 2.31 MB / 282.9 MB, free: 15.24 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.2654, allocations: 57.95 kB / 282.9 MB, free: 15.18 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.2657, allocations: 244.9 kB / 283.2 MB, free: 15.07 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.2658, allocations: 43.08 kB / 283.2 MB, free: 15.04 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2659, allocations: 229.6 kB / 283.4 MB, free: 14.86 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.2661, allocations: 169.9 kB / 283.6 MB, free: 14.76 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.2661, allocations: 12.84 kB / 283.6 MB, free: 14.76 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.2662, allocations: 329.7 kB / 283.9 MB, free: 14.45 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006776/0.2669, allocations: 227.8 kB / 284.2 MB, free: 14.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007624/0.2677, allocations: 302.9 kB / 284.5 MB, free: 14.35 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005608/0.2683, allocations: 195.9 kB / 284.7 MB, free: 14.28 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.34e-06/0.2683, allocations: 0 / 284.7 MB, free: 14.28 MB / 234.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002412/0.2707, allocations: 0.8132 MB / 285.5 MB, free: 13.98 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.2708, allocations: 13.16 kB / 285.5 MB, free: 13.97 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.604e-06/0.2708, allocations: 1.344 kB / 285.5 MB, free: 13.97 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.272, allocations: 428.2 kB / 285.9 MB, free: 13.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.2724, allocations: 79.91 kB / 286 MB, free: 13.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.2753, allocations: 3.444 MB / 289.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.276, allocations: 101.9 kB / 289.5 MB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.2761, allocations: 18.88 kB / 289.5 MB, free: 10.52 MB / 234.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.0002772/0.2764, allocations: 172 kB / 289.7 MB, free: 10.36 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.2765, allocations: 31.78 kB / 289.7 MB, free: 10.35 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.2785, allocations: 0.7075 MB / 290.4 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.2785, allocations: 5.156 kB / 290.4 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.2785, allocations: 1.188 kB / 290.4 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.2786, allocations: 3.562 kB / 290.5 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.2814, allocations: 1.237 MB / 291.7 MB, free: 9.398 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.2815, allocations: 0 / 291.7 MB, free: 9.398 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.2819, allocations: 63.81 kB / 291.8 MB, free: 9.391 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.283, allocations: 411.4 kB / 292.2 MB, free: 9.258 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.303e-05/0.2831, allocations: 18.31 kB / 292.2 MB, free: 9.25 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002788/0.2859, allocations: 3.418 MB / 295.6 MB, free: 5.984 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.359e-06/0.2859, allocations: 1.375 kB / 295.6 MB, free: 5.984 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.2884, allocations: 1.018 MB / 296.6 MB, free: 5.504 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.2887, allocations: 153.1 kB / 296.8 MB, free: 5.371 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.2888, allocations: 18.88 kB / 296.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005773/0.2894, allocations: 95.3 kB / 296.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.2897, allocations: 103.7 kB / 297 MB, free: 5.34 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.2898, allocations: 18.92 kB / 297 MB, free: 5.336 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002071/0.29, allocations: 184.3 kB / 297.2 MB, free: 5.223 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.87e-07/0.29, allocations: 1.375 kB / 297.2 MB, free: 5.223 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0006619/0.2907, allocations: 117.2 kB / 297.3 MB, free: 5.211 MB / 234.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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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.0002451/0.291, allocations: 137.9 kB / 297.4 MB, free: 5.109 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00196/0.2929, allocations: 0.7964 MB / 298.2 MB, free: 4.703 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.452e-06/0.293, allocations: 4 kB / 298.2 MB, free: 4.699 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.2941, allocations: 0.5268 MB / 298.7 MB, free: 4.387 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.2946, allocations: 56.72 kB / 298.8 MB, free: 4.363 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.2971, allocations: 1.201 MB / 300 MB, free: 3.59 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.2975, allocations: 0.8058 MB / 300.8 MB, free: 2.891 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.2976, allocations: 31.69 kB / 300.8 MB, free: 2.879 MB / 234.7 MB Notification: Performance of SimCode: time 1.942e-06/0.2977, allocations: 3.938 kB / 300.8 MB, free: 2.875 MB / 234.7 MB Notification: Performance of Templates: time 0.013/0.3107, allocations: 8.125 MB / 309 MB, free: 14.77 MB / 250.7 MB