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.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003373, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 44.51 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003389/0.109, allocations: 1.906 MB / 311 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1112, allocations: 0.9613 MB / 311.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.1114, allocations: 0 / 311.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1116, allocations: 35.77 kB / 312 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006085/0.1122, allocations: 147.5 kB / 312.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.1127, allocations: 135.8 kB / 312.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005494/0.1133, allocations: 299.4 kB / 312.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.1135, allocations: 69.14 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/0.1139, allocations: 179.5 kB / 312.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003822/0.1143, allocations: 215.2 kB / 313 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.529e-05/0.1143, allocations: 20 kB / 313 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.1146, allocations: 79.94 kB / 313.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1148, allocations: 95.69 kB / 313.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.1149, allocations: 81.52 kB / 313.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005647/0.1155, allocations: 351.4 kB / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1155, allocations: 0 / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1155, allocations: 4 kB / 313.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.1155, allocations: 0 / 313.6 MB, free: 11.77 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001707/0.1173, allocations: 0.6158 MB / 314.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1173, allocations: 8.031 kB / 314.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004404/0.1178, allocations: 55.52 kB / 314.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.1184, allocations: 310.4 kB / 314.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.1186, allocations: 88.05 kB / 314.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.1187, allocations: 31.91 kB / 314.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.12, allocations: 416.9 kB / 315.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.12, allocations: 3.938 kB / 315.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.87e-05/0.1201, allocations: 16 kB / 315.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1201, allocations: 11.94 kB / 315.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.1219, allocations: 482.3 kB / 315.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.1245, allocations: 0.993 MB / 316.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.1259, allocations: 410.6 kB / 317 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.757e-05/0.126, allocations: 8.438 kB / 317 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.1261, allocations: 43.17 kB / 317.1 MB, free: 8.133 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 3.878e-06/0.1261, allocations: 3.938 kB / 317.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.008799/0.1349, allocations: 2.203 MB / 319.3 MB, free: 5.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.135, allocations: 85.67 kB / 319.3 MB, free: 5.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.1354, allocations: 252.3 kB / 319.6 MB, free: 5.457 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.1355, allocations: 41.69 kB / 319.6 MB, free: 5.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1357, allocations: 133 kB / 319.8 MB, free: 5.273 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.1359, allocations: 197.4 kB / 320 MB, free: 5.078 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.1359, allocations: 8 kB / 320 MB, free: 5.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1361, allocations: 338.8 kB / 320.3 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008028/0.1369, allocations: 197 kB / 320.5 MB, free: 4.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008279/0.1378, allocations: 252.6 kB / 320.7 MB, free: 4.281 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007488/0.1385, allocations: 190.1 kB / 320.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1385, allocations: 0 / 320.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002112/0.1407, allocations: 0.629 MB / 321.5 MB, free: 3.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1407, allocations: 8 kB / 321.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1407, allocations: 0 / 321.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001199/0.1419, allocations: 262.1 kB / 321.8 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.1425, allocations: 71.88 kB / 321.9 MB, free: 3.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/0.1487, allocations: 2.745 MB / 324.6 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005917/0.1493, allocations: 40.03 kB / 324.7 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.1494, allocations: 16 kB / 324.7 MB, free: 200 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002763/0.1497, allocations: 157.8 kB / 324.8 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.1498, allocations: 31.62 kB / 324.9 MB, free: 0 / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.15, allocations: 51.3 kB / 324.9 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.15, allocations: 0 / 324.9 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.15, allocations: 3.984 kB / 324.9 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002613/0.1503, allocations: 156.6 kB / 325.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.1504, allocations: 12 kB / 325.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.1509, allocations: 31.97 kB / 325.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.1511, allocations: 52.47 kB / 325.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003675/0.1548, allocations: 0.8154 MB / 326 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002828/0.1577, allocations: 0.9471 MB / 326.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000816/0.1585, allocations: 220.3 kB / 327.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003605/0.1589, allocations: 207.5 kB / 327.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of Backend: time 4.71e-07/0.1589, allocations: 0 / 327.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.1609, allocations: 0.6207 MB / 328 MB, free: 12.83 MB / 282.7 MB Notification: Performance of SimCode: time 0.002031/0.163, allocations: 1.411 MB / 329.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of Templates: time 0.01878/0.1818, allocations: 6.661 MB / 336 MB, free: 4.711 MB / 282.7 MB