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.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.948/1.948, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003464, allocations: 11.94 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09136, allocations: 44.5 MB / 309.1 MB, free: 384 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003183/0.0946, allocations: 1.851 MB / 310.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.09664, allocations: 0.9146 MB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.09679, allocations: 7.938 kB / 311.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.09694, allocations: 27.83 kB / 311.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005491/0.0975, allocations: 131.6 kB / 312 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.09795, allocations: 135.8 kB / 312.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.09841, allocations: 259.5 kB / 312.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.09859, allocations: 56.7 kB / 312.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.09886, allocations: 163.5 kB / 312.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.09921, allocations: 179.4 kB / 312.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.974e-05/0.0993, allocations: 16 kB / 312.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002536/0.09956, allocations: 83.94 kB / 312.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.09972, allocations: 79.72 kB / 312.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.612e-05/0.09982, allocations: 73.52 kB / 313 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005027/0.1003, allocations: 319.5 kB / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.1004, allocations: 0 / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1004, allocations: 0 / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1004, allocations: 4 kB / 313.3 MB, free: 12.07 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001509/0.1019, allocations: 0.5847 MB / 313.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.102, allocations: 8.031 kB / 313.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004181/0.1024, allocations: 47.61 kB / 314 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005891/0.103, allocations: 298.5 kB / 314.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.1032, allocations: 87.95 kB / 314.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.915e-05/0.1033, allocations: 28 kB / 314.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.1044, allocations: 377.2 kB / 314.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.1044, allocations: 7.984 kB / 314.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.955e-05/0.1045, allocations: 8 kB / 314.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1045, allocations: 8 kB / 314.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.106, allocations: 429.9 kB / 315.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.1091, allocations: 1.249 MB / 316.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1102, allocations: 357.3 kB / 316.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.112e-05/0.1103, allocations: 4 kB / 316.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.1104, allocations: 34.56 kB / 316.8 MB, free: 8.375 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.595e-06/0.1104, allocations: 4 kB / 316.8 MB, free: 8.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.007914/0.1183, allocations: 1.94 MB / 318.8 MB, free: 6.316 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.1184, allocations: 92.73 kB / 318.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004256/0.1188, allocations: 235.2 kB / 319.1 MB, free: 5.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/0.1189, allocations: 33.7 kB / 319.1 MB, free: 5.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.119, allocations: 136.7 kB / 319.2 MB, free: 5.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.1192, allocations: 150 kB / 319.4 MB, free: 5.641 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.1193, allocations: 7.984 kB / 319.4 MB, free: 5.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1194, allocations: 334.8 kB / 319.7 MB, free: 5.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006369/0.1201, allocations: 172.8 kB / 319.9 MB, free: 5.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007109/0.1208, allocations: 233.9 kB / 320.1 MB, free: 4.879 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.1214, allocations: 160.8 kB / 320.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1214, allocations: 0 / 320.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001867/0.1233, allocations: 0.5629 MB / 320.8 MB, free: 4.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1234, allocations: 8 kB / 320.9 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1234, allocations: 4 kB / 320.9 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.1246, allocations: 252.7 kB / 321.1 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004417/0.125, allocations: 51.91 kB / 321.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006034/0.1311, allocations: 2.708 MB / 323.9 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.1315, allocations: 27.97 kB / 323.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.1316, allocations: 16 kB / 323.9 MB, free: 0.957 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002534/0.1319, allocations: 161.8 kB / 324.1 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.91e-05/0.132, allocations: 27.66 kB / 324.1 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.1321, allocations: 42.98 kB / 324.1 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.1321, allocations: 3.953 kB / 324.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1321, allocations: 0 / 324.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.1324, allocations: 144.7 kB / 324.3 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.629e-05/0.1325, allocations: 12 kB / 324.3 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.1329, allocations: 31.97 kB / 324.3 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.1331, allocations: 47.91 kB / 324.4 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003053/0.1362, allocations: 0.6965 MB / 325.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002266/0.1385, allocations: 0.8043 MB / 325.9 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006547/0.1391, allocations: 188.4 kB / 326 MB, free: 14.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003124/0.1395, allocations: 179.4 kB / 326.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of Backend: time 9.52e-07/0.1395, allocations: 0 / 326.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.1414, allocations: 0.5777 MB / 326.8 MB, free: 13.98 MB / 282.7 MB Notification: Performance of SimCode: time 0.001938/0.1433, allocations: 1.352 MB / 328.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of Templates: time 0.01753/0.1609, allocations: 5.963 MB / 334.1 MB, free: 6.617 MB / 282.7 MB