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.Friction.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.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.2_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005014/0.0005013, allocations: 15.94 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1186, allocations: 44.51 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004019/0.1227, allocations: 2.405 MB / 311.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.1248, allocations: 0.9441 MB / 312.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.125, allocations: 8 kB / 312.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.1252, allocations: 47.61 kB / 312.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003854/0.1256, allocations: 139.6 kB / 312.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000573/0.1262, allocations: 167.6 kB / 312.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006477/0.1268, allocations: 404.3 kB / 313.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002592/0.1271, allocations: 102.2 kB / 313.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004214/0.1275, allocations: 239.2 kB / 313.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.128, allocations: 259 kB / 313.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.297e-05/0.1281, allocations: 28 kB / 313.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.1283, allocations: 63.95 kB / 313.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1285, allocations: 99.62 kB / 313.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.1286, allocations: 101.5 kB / 314 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000635/0.1293, allocations: 415.1 kB / 314.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1293, allocations: 0 / 314.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1293, allocations: 0 / 314.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1293, allocations: 0 / 314.4 MB, free: 10.95 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.001995/0.1313, allocations: 0.725 MB / 315.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1314, allocations: 8.031 kB / 315.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.1315, allocations: 51.44 kB / 315.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.1321, allocations: 326 kB / 315.5 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.1322, allocations: 29 kB / 315.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.1323, allocations: 40 kB / 315.6 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1337, allocations: 474.3 kB / 316.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.1337, allocations: 11.84 kB / 316.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.966e-05/0.1338, allocations: 16 kB / 316.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.1339, allocations: 8 kB / 316.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.1355, allocations: 495.6 kB / 316.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.1387, allocations: 1.16 MB / 317.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1399, allocations: 386.8 kB / 318.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.14, allocations: 12.39 kB / 318.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1401, allocations: 38.94 kB / 318.2 MB, free: 7.039 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.895e-06/0.1401, allocations: 4 kB / 318.2 MB, free: 7.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00846/0.1486, allocations: 2.426 MB / 320.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.1486, allocations: 55.97 kB / 320.7 MB, free: 4.414 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004317/0.1491, allocations: 279.3 kB / 320.9 MB, free: 4.137 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.531e-05/0.1492, allocations: 49.69 kB / 321 MB, free: 4.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.1493, allocations: 185.3 kB / 321.2 MB, free: 3.898 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.1496, allocations: 189.3 kB / 321.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.293e-05/0.1497, allocations: 8 kB / 321.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1498, allocations: 350.8 kB / 321.7 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008389/0.1507, allocations: 249.2 kB / 321.9 MB, free: 3.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008747/0.1516, allocations: 292.8 kB / 322.2 MB, free: 2.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.1523, allocations: 207.2 kB / 322.4 MB, free: 2.613 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1523, allocations: 0 / 322.4 MB, free: 2.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002468/0.1548, allocations: 0.7561 MB / 323.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1548, allocations: 4 kB / 323.2 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1548, allocations: 4 kB / 323.2 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.1563, allocations: 0.4896 MB / 323.7 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/0.157, allocations: 91.89 kB / 323.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/0.159, allocations: 1.401 MB / 325.2 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009291/0.1599, allocations: 100 kB / 325.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.256e-05/0.16, allocations: 19.98 kB / 325.3 MB, free: 15.68 MB / 282.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.0003175/0.1603, allocations: 165.7 kB / 325.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.1605, allocations: 51.48 kB / 325.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001654/0.1607, allocations: 55.73 kB / 325.6 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.1607, allocations: 3.984 kB / 325.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1607, allocations: 0 / 325.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.161, allocations: 172.5 kB / 325.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.1612, allocations: 16 kB / 325.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009023/0.1621, allocations: 99.91 kB / 325.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.1624, allocations: 108.3 kB / 326 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003289/0.1657, allocations: 0.8088 MB / 326.8 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002673/0.1684, allocations: 0.9783 MB / 327.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007975/0.1692, allocations: 252.3 kB / 328 MB, free: 12.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000295/0.1695, allocations: 201.9 kB / 328.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of Backend: time 6.31e-07/0.1696, allocations: 0 / 328.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.1713, allocations: 493.9 kB / 328.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of SimCode: time 0.002918/0.1743, allocations: 1.762 MB / 330.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of Templates: time 0.02188/0.1962, allocations: 8.385 MB / 338.8 MB, free: 2.055 MB / 282.7 MB