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.LossyGearDemo2.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.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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005378/0.0005382, allocations: 11.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1195, allocations: 44.49 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004902/0.1245, allocations: 2.147 MB / 311.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.1277, allocations: 1.086 MB / 312.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.1279, allocations: 11.88 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.1282, allocations: 47.67 kB / 312.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008566/0.129, allocations: 187.5 kB / 312.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007835/0.1298, allocations: 191.6 kB / 312.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008783/0.1307, allocations: 399.6 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.1311, allocations: 94.02 kB / 313.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005932/0.1317, allocations: 259.2 kB / 313.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006688/0.1324, allocations: 295 kB / 313.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.1325, allocations: 28 kB / 313.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.1329, allocations: 95.81 kB / 313.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.1332, allocations: 119.7 kB / 314 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.1334, allocations: 101.4 kB / 314.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009451/0.1344, allocations: 463.1 kB / 314.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1344, allocations: 0 / 314.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1344, allocations: 0 / 314.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1344, allocations: 0 / 314.5 MB, free: 10.85 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00287/0.1373, allocations: 0.7291 MB / 315.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.1374, allocations: 8.031 kB / 315.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006981/0.1381, allocations: 63.42 kB / 315.3 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.1391, allocations: 353.2 kB / 315.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.1394, allocations: 100.4 kB / 315.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.1396, allocations: 43.91 kB / 315.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.142, allocations: 0.5566 MB / 316.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.1421, allocations: 4 kB / 316.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.1422, allocations: 16 kB / 316.4 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.1423, allocations: 8 kB / 316.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.1454, allocations: 0.648 MB / 317 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005158/0.1506, allocations: 1.326 MB / 318.4 MB, free: 6.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.1532, allocations: 0.5486 MB / 318.9 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.1534, allocations: 16.48 kB / 318.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.1534, allocations: 35.12 kB / 319 MB, free: 6.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 4.067e-06/0.1535, allocations: 0 / 319 MB, free: 6.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=69): time 0.01593/0.1694, allocations: 2.947 MB / 321.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.1695, allocations: 85.66 kB / 322 MB, free: 3.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008314/0.1703, allocations: 327 kB / 322.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.1705, allocations: 45.7 kB / 322.4 MB, free: 2.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.1707, allocations: 173.4 kB / 322.5 MB, free: 2.488 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003656/0.1711, allocations: 232.7 kB / 322.8 MB, free: 2.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.867e-05/0.1712, allocations: 8 kB / 322.8 MB, free: 2.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.1714, allocations: 354.8 kB / 323.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.1728, allocations: 289.2 kB / 323.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.174, allocations: 358.5 kB / 323.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.1751, allocations: 267.2 kB / 324 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1751, allocations: 0 / 324 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003283/0.1784, allocations: 0.9123 MB / 324.9 MB, free: 68 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.1784, allocations: 4 kB / 324.9 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1785, allocations: 0 / 324.9 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.1803, allocations: 473.9 kB / 325.4 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007399/0.1811, allocations: 91.88 kB / 325.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.1832, allocations: 1.075 MB / 326.6 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009178/0.1842, allocations: 83.98 kB / 326.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.043e-05/0.1843, allocations: 23.98 kB / 326.7 MB, free: 14.3 MB / 282.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.0003615/0.1847, allocations: 173.8 kB / 326.8 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.1848, allocations: 43.53 kB / 326.9 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.185, allocations: 59.83 kB / 326.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.1851, allocations: 15.94 kB / 326.9 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.1851, allocations: 0 / 326.9 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003633/0.1854, allocations: 180.5 kB / 327.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.1856, allocations: 20 kB / 327.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000847/0.1865, allocations: 75.92 kB / 327.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/0.1868, allocations: 92.38 kB / 327.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004571/0.1914, allocations: 1.049 MB / 328.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003567/0.195, allocations: 1.19 MB / 329.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001055/0.1961, allocations: 300.3 kB / 329.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004635/0.1966, allocations: 241.9 kB / 330.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of Backend: time 8.12e-07/0.1966, allocations: 4 kB / 330.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.1987, allocations: 0.5772 MB / 330.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of SimCode: time 0.002548/0.2013, allocations: 1.595 MB / 332.3 MB, free: 8.598 MB / 282.7 MB Notification: Performance of Templates: time 0.0242/0.2255, allocations: 8.793 MB / 341 MB, free: 15.8 MB / 298.7 MB