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.14/2.14, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003331, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.08983, allocations: 44.52 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003898/0.09378, allocations: 2.229 MB / 311.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.09598, allocations: 0.913 MB / 312.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.09624, allocations: 4 kB / 312.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.09642, allocations: 35.7 kB / 312.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003937/0.09682, allocations: 127.6 kB / 312.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005803/0.09742, allocations: 159.7 kB / 312.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005861/0.09802, allocations: 348.4 kB / 312.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.09828, allocations: 90.02 kB / 313 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.09865, allocations: 207.3 kB / 313.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.0991, allocations: 247.1 kB / 313.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.548e-05/0.0992, allocations: 20 kB / 313.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.09944, allocations: 63.95 kB / 313.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.09959, allocations: 87.7 kB / 313.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.09971, allocations: 85.52 kB / 313.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006051/0.1003, allocations: 375.3 kB / 314 MB, free: 11.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1003, allocations: 3.938 kB / 314 MB, free: 11.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1004, allocations: 0 / 314 MB, free: 11.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1004, allocations: 4 kB / 314 MB, free: 11.37 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.00197/0.1024, allocations: 0.6862 MB / 314.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1024, allocations: 8.031 kB / 314.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.1026, allocations: 43.44 kB / 314.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.1031, allocations: 301.4 kB / 315.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/0.1032, allocations: 32.94 kB / 315.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1033, allocations: 28 kB / 315.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1047, allocations: 454.3 kB / 315.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/0.1047, allocations: 3.906 kB / 315.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.559e-05/0.1048, allocations: 12 kB / 315.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1048, allocations: 8 kB / 315.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.1065, allocations: 471.6 kB / 316 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00369/0.1102, allocations: 1.293 MB / 317.3 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.1116, allocations: 372.5 kB / 317.7 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.718e-05/0.1117, allocations: 4.375 kB / 317.7 MB, free: 7.512 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.1117, allocations: 34.94 kB / 317.7 MB, free: 7.469 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 5.59e-06/0.1117, allocations: 3.984 kB / 317.7 MB, free: 7.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.009006/0.1207, allocations: 2.382 MB / 320.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.1208, allocations: 55.84 kB / 320.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/0.1212, allocations: 246.6 kB / 320.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.256e-05/0.1213, allocations: 49.69 kB / 320.5 MB, free: 4.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1215, allocations: 176.5 kB / 320.6 MB, free: 4.398 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.1217, allocations: 161.7 kB / 320.8 MB, free: 4.238 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.1218, allocations: 8 kB / 320.8 MB, free: 4.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1219, allocations: 346.8 kB / 321.1 MB, free: 3.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008554/0.1228, allocations: 237 kB / 321.4 MB, free: 3.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000927/0.1238, allocations: 307.2 kB / 321.7 MB, free: 3.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.1245, allocations: 198.1 kB / 321.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1245, allocations: 3.938 kB / 321.9 MB, free: 3.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002745/0.1273, allocations: 0.7626 MB / 322.6 MB, free: 2.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.1273, allocations: 8 kB / 322.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1274, allocations: 0 / 322.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.1292, allocations: 0.5548 MB / 323.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005592/0.1298, allocations: 71.91 kB / 323.3 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004117/0.1339, allocations: 3.464 MB / 326.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009749/0.1349, allocations: 112.1 kB / 326.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.031e-05/0.135, allocations: 16 kB / 326.9 MB, free: 13.84 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.0003155/0.1354, allocations: 157.8 kB / 327 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.1355, allocations: 35.58 kB / 327 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/0.1381, allocations: 0.7404 MB / 327.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1381, allocations: 3.984 kB / 327.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1381, allocations: 0 / 327.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/0.1384, allocations: 160.7 kB / 327.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.1385, allocations: 12 kB / 328 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008963/0.1394, allocations: 99.91 kB / 328.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.1398, allocations: 104.2 kB / 328.2 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003611/0.1434, allocations: 0.8236 MB / 329 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002876/0.1463, allocations: 0.9391 MB / 329.9 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000856/0.1472, allocations: 239.4 kB / 330.2 MB, free: 10.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002727/0.1475, allocations: 182 kB / 330.3 MB, free: 10.28 MB / 282.7 MB Notification: Performance of Backend: time 6.21e-07/0.1475, allocations: 3.938 kB / 330.3 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.1497, allocations: 0.6964 MB / 331 MB, free: 9.551 MB / 282.7 MB Notification: Performance of SimCode: time 0.002616/0.1524, allocations: 1.58 MB / 332.6 MB, free: 7.918 MB / 282.7 MB Notification: Performance of Templates: time 0.02247/0.1749, allocations: 8.223 MB / 340.8 MB, free: 15.7 MB / 298.7 MB