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.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.576/1.576, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 12 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.07947, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003927/0.08345, allocations: 2.415 MB / 275 MB, free: 9.109 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.08567, allocations: 0.9474 MB / 276 MB, free: 8.16 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.0859, allocations: 4 kB / 276 MB, free: 8.156 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.08608, allocations: 55.59 kB / 276 MB, free: 8.102 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.08649, allocations: 143.6 kB / 276.2 MB, free: 7.961 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.08711, allocations: 159.7 kB / 276.3 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006383/0.08776, allocations: 396.3 kB / 276.7 MB, free: 7.418 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.08803, allocations: 110.2 kB / 276.8 MB, free: 7.305 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004008/0.08844, allocations: 231.2 kB / 277.1 MB, free: 7.078 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004094/0.08887, allocations: 255 kB / 277.3 MB, free: 6.828 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.268e-05/0.08897, allocations: 31.94 kB / 277.3 MB, free: 6.797 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.08928, allocations: 111.9 kB / 277.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.08943, allocations: 95.67 kB / 277.5 MB, free: 6.594 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.08955, allocations: 101.5 kB / 277.6 MB, free: 6.488 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006282/0.09019, allocations: 411.2 kB / 278 MB, free: 6.086 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.09021, allocations: 4 kB / 278.1 MB, free: 6.082 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.09022, allocations: 0 / 278.1 MB, free: 6.082 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.09024, allocations: 0 / 278.1 MB, free: 6.082 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.001985/0.09224, allocations: 0.7327 MB / 278.8 MB, free: 5.301 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.09229, allocations: 12.02 kB / 278.8 MB, free: 5.289 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.09243, allocations: 51.44 kB / 278.8 MB, free: 5.238 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000501/0.09294, allocations: 314.1 kB / 279.2 MB, free: 4.891 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.093, allocations: 33 kB / 279.2 MB, free: 4.859 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.09313, allocations: 40 kB / 279.2 MB, free: 4.82 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.09445, allocations: 462.3 kB / 279.7 MB, free: 4.363 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.0945, allocations: 7.906 kB / 279.7 MB, free: 4.355 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.439e-05/0.09458, allocations: 12 kB / 279.7 MB, free: 4.344 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.0946, allocations: 12 kB / 279.7 MB, free: 4.332 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.09616, allocations: 475.6 kB / 280.2 MB, free: 3.867 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003108/0.09928, allocations: 1.125 MB / 281.3 MB, free: 2.691 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.1005, allocations: 388.8 kB / 281.7 MB, free: 2.301 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.701e-05/0.1006, allocations: 12.44 kB / 281.7 MB, free: 2.289 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1006, allocations: 39 kB / 281.7 MB, free: 2.242 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 2.936e-06/0.1007, allocations: 0 / 281.7 MB, free: 2.242 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008423/0.1091, allocations: 2.457 MB / 284.2 MB, free: 15.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.1092, allocations: 63.91 kB / 284.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.1096, allocations: 287.2 kB / 284.5 MB, free: 15.3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/0.1097, allocations: 45.69 kB / 284.6 MB, free: 15.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.1099, allocations: 181.3 kB / 284.7 MB, free: 15.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.1101, allocations: 193.3 kB / 284.9 MB, free: 14.88 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.1101, allocations: 8 kB / 284.9 MB, free: 14.87 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1103, allocations: 346.8 kB / 285.3 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007968/0.1111, allocations: 241.2 kB / 285.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008353/0.112, allocations: 288.8 kB / 285.8 MB, free: 14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006673/0.1126, allocations: 199.1 kB / 286 MB, free: 13.8 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1127, allocations: 4 kB / 286 MB, free: 13.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00227/0.1149, allocations: 0.725 MB / 286.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.115, allocations: 7.938 kB / 286.7 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.115, allocations: 4 kB / 286.7 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.1161, allocations: 373.5 kB / 287.1 MB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006657/0.1168, allocations: 91.89 kB / 287.2 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.1185, allocations: 1.374 MB / 288.6 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009605/0.1195, allocations: 104.1 kB / 288.7 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.1196, allocations: 24 kB / 288.7 MB, free: 11.04 MB / 250.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: 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 (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003184/0.1199, allocations: 169.7 kB / 288.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1201, allocations: 43.47 kB / 288.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001698/0.1202, allocations: 63.73 kB / 289 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.1203, allocations: 7.938 kB / 289 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1203, allocations: 0 / 289 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002714/0.1206, allocations: 156.6 kB / 289.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.1207, allocations: 12 kB / 289.1 MB, free: 10.56 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008873/0.1216, allocations: 99.91 kB / 289.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.1219, allocations: 104.3 kB / 289.3 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003165/0.1251, allocations: 0.7814 MB / 290.1 MB, free: 9.57 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002544/0.1277, allocations: 0.9588 MB / 291.1 MB, free: 8.59 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007791/0.1285, allocations: 240.4 kB / 291.3 MB, free: 8.355 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002918/0.1288, allocations: 198 kB / 291.5 MB, free: 8.164 MB / 250.7 MB Notification: Performance of Backend: time 8.82e-07/0.1288, allocations: 0 / 291.5 MB, free: 8.164 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.131, allocations: 500 kB / 292 MB, free: 7.672 MB / 250.7 MB Notification: Performance of SimCode: time 0.002853/0.1339, allocations: 1.765 MB / 293.8 MB, free: 5.855 MB / 250.7 MB Notification: Performance of Templates: time 0.2202/0.3541, allocations: 7.767 MB / 301.5 MB, free: 31.8 MB / 250.7 MB