Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.7/1.7, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003485, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08122, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003817/0.0851, allocations: 2.224 MB / 274.9 MB, free: 9.301 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.08736, allocations: 0.9202 MB / 275.8 MB, free: 8.379 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.08763, allocations: 4 kB / 275.8 MB, free: 8.375 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.0878, allocations: 35.7 kB / 275.8 MB, free: 8.34 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.08821, allocations: 131.5 kB / 275.9 MB, free: 8.211 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.08883, allocations: 155.8 kB / 276.1 MB, free: 8.059 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005715/0.08941, allocations: 344.4 kB / 276.4 MB, free: 7.723 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.08967, allocations: 98 kB / 276.5 MB, free: 7.621 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003398/0.09003, allocations: 203.3 kB / 276.7 MB, free: 7.422 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.09043, allocations: 227.1 kB / 276.9 MB, free: 7.199 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.154e-05/0.09053, allocations: 20 kB / 277 MB, free: 7.18 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.09089, allocations: 119.8 kB / 277.1 MB, free: 7.062 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.09104, allocations: 83.7 kB / 277.2 MB, free: 6.98 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.09116, allocations: 85.52 kB / 277.2 MB, free: 6.891 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006046/0.09178, allocations: 383.3 kB / 277.6 MB, free: 6.516 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.09179, allocations: 0 / 277.6 MB, free: 6.516 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.09181, allocations: 0 / 277.6 MB, free: 6.516 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.09183, allocations: 7.938 kB / 277.6 MB, free: 6.508 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.001981/0.09381, allocations: 0.694 MB / 278.3 MB, free: 5.766 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.09388, allocations: 8.031 kB / 278.3 MB, free: 5.758 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.09403, allocations: 39.53 kB / 278.4 MB, free: 5.719 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.09454, allocations: 285.4 kB / 278.6 MB, free: 5.398 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.697e-05/0.09461, allocations: 32.95 kB / 278.7 MB, free: 5.367 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.09477, allocations: 35.91 kB / 278.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.09612, allocations: 430.3 kB / 279.1 MB, free: 4.906 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.09617, allocations: 4 kB / 279.1 MB, free: 4.902 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.09624, allocations: 12 kB / 279.1 MB, free: 4.891 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.09627, allocations: 8 kB / 279.2 MB, free: 4.883 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.09783, allocations: 459.7 kB / 279.6 MB, free: 4.434 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.1015, allocations: 1.257 MB / 280.9 MB, free: 3.102 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.1028, allocations: 368.5 kB / 281.2 MB, free: 2.734 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.546e-05/0.1029, allocations: 8.375 kB / 281.2 MB, free: 2.727 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.103, allocations: 38.94 kB / 281.3 MB, free: 2.68 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 3.166e-06/0.103, allocations: 0 / 281.3 MB, free: 2.68 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.008563/0.1115, allocations: 2.322 MB / 283.6 MB, free: 232 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.1116, allocations: 55.84 kB / 283.6 MB, free: 164 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.112, allocations: 250.5 kB / 283.9 MB, free: 15.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/0.1121, allocations: 41.69 kB / 283.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1122, allocations: 176.6 kB / 284.1 MB, free: 15.69 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.1124, allocations: 161.7 kB / 284.3 MB, free: 15.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.1125, allocations: 12 kB / 284.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1127, allocations: 346.8 kB / 284.6 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007989/0.1135, allocations: 229 kB / 284.8 MB, free: 14.95 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008738/0.1144, allocations: 291.2 kB / 285.1 MB, free: 14.64 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/0.1151, allocations: 194.1 kB / 285.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1151, allocations: 0 / 285.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002788/0.1179, allocations: 0.8327 MB / 286.1 MB, free: 13.61 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.118, allocations: 8 kB / 286.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.118, allocations: 0 / 286.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.1195, allocations: 423.5 kB / 286.6 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005235/0.12, allocations: 79.91 kB / 286.6 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003939/0.124, allocations: 3.443 MB / 290.1 MB, free: 9.363 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009283/0.1249, allocations: 100.1 kB / 290.2 MB, free: 9.266 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.158e-05/0.125, allocations: 16 kB / 290.2 MB, free: 9.25 MB / 250.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.0003166/0.1253, allocations: 177.7 kB / 290.4 MB, free: 9.066 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1255, allocations: 31.62 kB / 290.4 MB, free: 9.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002477/0.1279, allocations: 0.7131 MB / 291.1 MB, free: 8.301 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.128, allocations: 3.938 kB / 291.1 MB, free: 8.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.128, allocations: 4 kB / 291.1 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.1283, allocations: 160.5 kB / 291.3 MB, free: 8.117 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.1284, allocations: 12 kB / 291.3 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008616/0.1293, allocations: 99.91 kB / 291.4 MB, free: 8.008 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.1296, allocations: 100.2 kB / 291.5 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0034/0.133, allocations: 0.8064 MB / 292.3 MB, free: 7.09 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002564/0.1356, allocations: 0.9146 MB / 293.2 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007729/0.1364, allocations: 231.4 kB / 293.4 MB, free: 5.934 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002387/0.1366, allocations: 174 kB / 293.6 MB, free: 5.758 MB / 250.7 MB Notification: Performance of Backend: time 7.62e-07/0.1367, allocations: 4 kB / 293.6 MB, free: 5.754 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.1387, allocations: 0.7043 MB / 294.3 MB, free: 5.023 MB / 250.7 MB Notification: Performance of SimCode: time 0.002417/0.1412, allocations: 1.572 MB / 295.9 MB, free: 3.398 MB / 250.7 MB Notification: Performance of Templates: time 0.2218/0.363, allocations: 7.603 MB / 303.5 MB, free: 31.23 MB / 250.7 MB