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.914/1.914, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003594, allocations: 8 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.0811, allocations: 44.5 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003509/0.08466, allocations: 2.233 MB / 310.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.08668, allocations: 0.9091 MB / 311.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.08695, allocations: 8 kB / 311.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.08713, allocations: 39.69 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003584/0.0875, allocations: 127.6 kB / 311.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.08805, allocations: 155.7 kB / 311.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005411/0.08861, allocations: 356.4 kB / 312.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.08885, allocations: 82.02 kB / 312.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/0.08919, allocations: 211.3 kB / 312.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003869/0.0896, allocations: 251.1 kB / 312.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.08968, allocations: 20 kB / 312.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.08989, allocations: 63.95 kB / 312.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.09003, allocations: 83.7 kB / 312.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.09017, allocations: 89.52 kB / 312.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005552/0.09073, allocations: 371.3 kB / 313.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.463e-06/0.09075, allocations: 0 / 313.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.268e-06/0.09077, allocations: 0 / 313.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.711e-06/0.09079, allocations: 0 / 313.3 MB, free: 12.04 MB / 266.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.001593/0.09239, allocations: 0.6901 MB / 314 MB, free: 11.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.09245, allocations: 8.031 kB / 314 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.0926, allocations: 51.44 kB / 314.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005061/0.09311, allocations: 297.4 kB / 314.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.09319, allocations: 29 kB / 314.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.09332, allocations: 35.94 kB / 314.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.09451, allocations: 442.3 kB / 314.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.09456, allocations: 3.906 kB / 314.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.167e-05/0.09463, allocations: 16 kB / 314.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.09466, allocations: 12 kB / 314.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.09604, allocations: 467.7 kB / 315.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003263/0.09933, allocations: 1.296 MB / 316.6 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1005, allocations: 374.9 kB / 317 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.863e-05/0.1006, allocations: 4.375 kB / 317 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.1006, allocations: 38.94 kB / 317 MB, free: 8.121 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 3.925e-06/0.1006, allocations: 0 / 317 MB, free: 8.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.007305/0.108, allocations: 2.378 MB / 319.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.1081, allocations: 55.84 kB / 319.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.1084, allocations: 246.6 kB / 319.7 MB, free: 5.289 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.492e-05/0.1085, allocations: 41.64 kB / 319.8 MB, free: 5.242 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.1087, allocations: 231 kB / 320 MB, free: 5.016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.1089, allocations: 169.7 kB / 320.1 MB, free: 4.848 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.109, allocations: 8 kB / 320.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1092, allocations: 342.8 kB / 320.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007053/0.1099, allocations: 233 kB / 320.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000781/0.1107, allocations: 311.2 kB / 321 MB, free: 3.945 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006206/0.1114, allocations: 194.1 kB / 321.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.381e-06/0.1114, allocations: 8 kB / 321.2 MB, free: 3.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002313/0.1137, allocations: 0.7511 MB / 322 MB, free: 2.984 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1138, allocations: 4 kB / 322 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1138, allocations: 4 kB / 322 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.1154, allocations: 0.5538 MB / 322.5 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004/0.1158, allocations: 75.84 kB / 322.6 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/0.1202, allocations: 3.469 MB / 326.1 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.1209, allocations: 104.1 kB / 326.2 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/0.121, allocations: 20 kB / 326.2 MB, free: 14.45 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.0003412/0.1214, allocations: 169.8 kB / 326.4 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1215, allocations: 35.58 kB / 326.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.1238, allocations: 0.7326 MB / 327.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.1238, allocations: 4 kB / 327.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.437e-06/0.1238, allocations: 0 / 327.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.1238, allocations: 7.984 kB / 327.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/0.1271, allocations: 1.271 MB / 328.4 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.577e-06/0.1271, allocations: 3.953 kB / 328.4 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.1275, allocations: 55.97 kB / 328.5 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.129, allocations: 0.5332 MB / 329 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/0.1291, allocations: 19.97 kB / 329 MB, free: 11.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004186/0.1333, allocations: 3.445 MB / 332.5 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.1333, allocations: 7.984 kB / 332.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.1362, allocations: 1.044 MB / 333.5 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.1365, allocations: 164.5 kB / 333.7 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.1367, allocations: 16 kB / 333.7 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.1373, allocations: 99.91 kB / 333.8 MB, free: 6.426 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/0.1376, allocations: 104.2 kB / 333.9 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-05/0.1376, allocations: 23.98 kB / 333.9 MB, free: 6.301 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1379, allocations: 178 kB / 334.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.1379, allocations: 0 / 334.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006808/0.1386, allocations: 128 kB / 334.2 MB, free: 6 MB / 282.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.0002903/0.1389, allocations: 134.3 kB / 334.3 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.1411, allocations: 0.8099 MB / 335.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.683e-06/0.1411, allocations: 0 / 335.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.1424, allocations: 0.5566 MB / 335.7 MB, free: 4.445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005087/0.1429, allocations: 40.53 kB / 335.7 MB, free: 4.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.1457, allocations: 1.201 MB / 337 MB, free: 3.176 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.1463, allocations: 0.8074 MB / 337.8 MB, free: 2.344 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.1464, allocations: 23.44 kB / 337.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of SimCode: time 1.679e-06/0.1465, allocations: 4 kB / 337.8 MB, free: 2.316 MB / 282.7 MB Notification: Performance of Templates: time 0.01506/0.1615, allocations: 8.451 MB / 346.2 MB, free: 9.855 MB / 298.7 MB