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.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003419, allocations: 15.98 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07631/0.07667, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003438/0.08016, allocations: 2.154 MB / 274.8 MB, free: 9.363 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.08273, allocations: 1.179 MB / 276 MB, free: 8.184 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.08291, allocations: 4 kB / 276 MB, free: 8.18 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.08309, allocations: 55.59 kB / 276 MB, free: 8.125 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006336/0.08374, allocations: 175.5 kB / 276.2 MB, free: 7.953 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.08442, allocations: 211.6 kB / 276.4 MB, free: 7.746 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.08505, allocations: 403.7 kB / 276.8 MB, free: 7.352 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.08531, allocations: 106 kB / 276.9 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004202/0.08574, allocations: 255.1 kB / 277.1 MB, free: 6.992 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004809/0.08624, allocations: 291 kB / 277.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.63e-05/0.08635, allocations: 24 kB / 277.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004434/0.0868, allocations: 187.8 kB / 277.6 MB, free: 6.5 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.087, allocations: 115.6 kB / 277.8 MB, free: 6.387 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.08713, allocations: 93.52 kB / 277.8 MB, free: 6.289 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007438/0.08789, allocations: 499 kB / 278.3 MB, free: 5.801 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08791, allocations: 0 / 278.3 MB, free: 5.801 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.398e-06/0.08792, allocations: 4 kB / 278.3 MB, free: 5.797 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.08794, allocations: 0 / 278.3 MB, free: 5.797 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002136/0.09008, allocations: 0.7446 MB / 279.1 MB, free: 5.004 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.09013, allocations: 8.031 kB / 279.1 MB, free: 4.996 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000456/0.0906, allocations: 63.41 kB / 279.1 MB, free: 4.934 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000691/0.0913, allocations: 345.3 kB / 279.5 MB, free: 4.555 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.09149, allocations: 100.3 kB / 279.6 MB, free: 4.445 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.09163, allocations: 47.91 kB / 279.6 MB, free: 4.398 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.09323, allocations: 0.5487 MB / 280.2 MB, free: 3.836 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.09328, allocations: 4 kB / 280.2 MB, free: 3.832 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.671e-05/0.09336, allocations: 16 kB / 280.2 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.09339, allocations: 8 kB / 280.2 MB, free: 3.809 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002156/0.09555, allocations: 0.6363 MB / 280.8 MB, free: 3.172 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/0.09924, allocations: 1.299 MB / 282.1 MB, free: 1.812 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.1011, allocations: 0.56 MB / 282.7 MB, free: 1.246 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.39e-05/0.1012, allocations: 8.562 kB / 282.7 MB, free: 1.238 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1012, allocations: 35.12 kB / 282.7 MB, free: 1.195 MB / 234.7 MB Notification: Performance of pre-optimization done (n=61): time 3.076e-06/0.1013, allocations: 0 / 282.7 MB, free: 1.195 MB / 234.7 MB Notification: Performance of matching and sorting (n=69): time 0.01146/0.1127, allocations: 3.014 MB / 285.8 MB, free: 14.05 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.1128, allocations: 93.59 kB / 285.8 MB, free: 13.94 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.1134, allocations: 330.9 kB / 286.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.855e-05/0.1135, allocations: 45.7 kB / 286.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1137, allocations: 165.5 kB / 286.4 MB, free: 13.4 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.1139, allocations: 224.9 kB / 286.6 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.728e-05/0.114, allocations: 8 kB / 286.6 MB, free: 13.17 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1142, allocations: 354.8 kB / 287 MB, free: 12.81 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.1152, allocations: 285.2 kB / 287.2 MB, free: 12.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.1163, allocations: 354.5 kB / 287.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009223/0.1172, allocations: 259.2 kB / 287.8 MB, free: 11.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1173, allocations: 0 / 287.8 MB, free: 11.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003212/0.1205, allocations: 0.9981 MB / 288.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.1205, allocations: 8 kB / 288.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1205, allocations: 0 / 288.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.1221, allocations: 422.7 kB / 289.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/0.1228, allocations: 87.88 kB / 289.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.1247, allocations: 1.052 MB / 290.4 MB, free: 9.332 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008351/0.1256, allocations: 83.92 kB / 290.5 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.488e-05/0.1257, allocations: 27.98 kB / 290.5 MB, free: 9.223 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003195/0.126, allocations: 177.7 kB / 290.7 MB, free: 9.039 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.1262, allocations: 39.53 kB / 290.7 MB, free: 9 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002051/0.1264, allocations: 67.77 kB / 290.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.1264, allocations: 3.984 kB / 290.8 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1264, allocations: 0 / 290.8 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.1268, allocations: 180.5 kB / 291 MB, free: 8.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.1269, allocations: 16 kB / 291 MB, free: 8.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008289/0.1278, allocations: 83.92 kB / 291.1 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.1281, allocations: 92.38 kB / 291.1 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004441/0.1325, allocations: 1.022 MB / 292.2 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003446/0.136, allocations: 1.179 MB / 293.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001014/0.137, allocations: 304.3 kB / 293.6 MB, free: 6.02 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004372/0.1375, allocations: 241.9 kB / 293.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of Backend: time 7.92e-07/0.1375, allocations: 4 kB / 293.9 MB, free: 5.781 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.1396, allocations: 0.5722 MB / 294.5 MB, free: 5.207 MB / 250.7 MB Notification: Performance of SimCode: time 0.002447/0.1421, allocations: 1.611 MB / 296.1 MB, free: 3.535 MB / 250.7 MB Notification: Performance of Templates: time 0.2364/0.3785, allocations: 8.773 MB / 304.8 MB, free: 29.95 MB / 250.7 MB