Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.889/1.889, allocations: 194.8 MB / 211.6 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003566, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08169/0.08207, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003791/0.08591, allocations: 2.416 MB / 310.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.08804, allocations: 0.9442 MB / 311.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.08831, allocations: 7.938 kB / 311.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.08848, allocations: 39.69 kB / 311.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003725/0.08886, allocations: 155.5 kB / 311.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.08942, allocations: 159.7 kB / 312.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006013/0.09004, allocations: 404.3 kB / 312.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.0903, allocations: 98.23 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.09075, allocations: 243.2 kB / 312.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004091/0.09117, allocations: 267 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.609e-05/0.09126, allocations: 24 kB / 313.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.09148, allocations: 59.97 kB / 313.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.09163, allocations: 95.69 kB / 313.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.09177, allocations: 101.5 kB / 313.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006041/0.09239, allocations: 419.1 kB / 313.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.047e-06/0.09241, allocations: 0 / 313.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.09242, allocations: 0 / 313.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.09244, allocations: 0 / 313.7 MB, free: 11.6 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.001588/0.09403, allocations: 0.725 MB / 314.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.09409, allocations: 8.031 kB / 314.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.09423, allocations: 51.44 kB / 314.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005568/0.0948, allocations: 322.1 kB / 314.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.387e-05/0.09487, allocations: 32.98 kB / 314.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.095, allocations: 47.98 kB / 314.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.0962, allocations: 474.2 kB / 315.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.09625, allocations: 7.891 kB / 315.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.867e-05/0.09633, allocations: 16 kB / 315.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.09636, allocations: 12 kB / 315.4 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.0977, allocations: 491.7 kB / 315.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.1006, allocations: 1.149 MB / 317 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1017, allocations: 392.9 kB / 317.4 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.282e-05/0.1018, allocations: 16.39 kB / 317.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.1018, allocations: 35 kB / 317.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 4.077e-06/0.1019, allocations: 0 / 317.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.006961/0.1088, allocations: 2.422 MB / 319.9 MB, free: 5.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.1089, allocations: 63.89 kB / 320 MB, free: 5.066 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.1094, allocations: 279.4 kB / 320.2 MB, free: 4.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.1095, allocations: 49.69 kB / 320.3 MB, free: 4.734 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.1097, allocations: 239.7 kB / 320.5 MB, free: 4.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/0.11, allocations: 197.3 kB / 320.7 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/0.11, allocations: 8 kB / 320.7 MB, free: 4.297 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1102, allocations: 334.8 kB / 321 MB, free: 3.961 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007181/0.111, allocations: 241.2 kB / 321.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007426/0.1117, allocations: 300.8 kB / 321.6 MB, free: 3.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/0.1123, allocations: 207.1 kB / 321.8 MB, free: 3.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.258e-06/0.1124, allocations: 0 / 321.8 MB, free: 3.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002084/0.1145, allocations: 0.7408 MB / 322.5 MB, free: 2.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.1145, allocations: 11.98 kB / 322.5 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.044e-06/0.1145, allocations: 0 / 322.5 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.1158, allocations: 497.3 kB / 323 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.1164, allocations: 95.83 kB / 323.1 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.1183, allocations: 1.401 MB / 324.5 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006744/0.119, allocations: 104.1 kB / 324.6 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/0.1191, allocations: 16 kB / 324.6 MB, free: 308 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: 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.0003358/0.1194, allocations: 169.8 kB / 324.8 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.1196, allocations: 43.48 kB / 324.8 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.1197, allocations: 59.73 kB / 324.9 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.1198, allocations: 4 kB / 324.9 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1198, allocations: 0 / 324.9 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.887e-06/0.1198, allocations: 0 / 324.9 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.1238, allocations: 1.47 MB / 326.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.1238, allocations: 11.94 kB / 326.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.1244, allocations: 87.88 kB / 326.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.1256, allocations: 485.5 kB / 326.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.777e-05/0.1257, allocations: 23.97 kB / 327 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.1275, allocations: 1.374 MB / 328.3 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.265e-06/0.1275, allocations: 0 / 328.3 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.1305, allocations: 1.1 MB / 329.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.1308, allocations: 168.6 kB / 329.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.131, allocations: 20 kB / 329.6 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005584/0.1315, allocations: 79.92 kB / 329.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/0.1318, allocations: 108.2 kB / 329.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-05/0.1319, allocations: 31.97 kB / 329.8 MB, free: 10.88 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002984/0.1322, allocations: 198 kB / 330 MB, free: 10.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.1322, allocations: 7.938 kB / 330 MB, free: 10.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006568/0.1329, allocations: 140 kB / 330.2 MB, free: 10.54 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002987/0.1332, allocations: 135.2 kB / 330.3 MB, free: 10.4 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.135, allocations: 0.6005 MB / 330.9 MB, free: 9.805 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.085e-06/0.1351, allocations: 0 / 330.9 MB, free: 9.805 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1361, allocations: 342.7 kB / 331.2 MB, free: 9.473 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.1367, allocations: 56.61 kB / 331.3 MB, free: 9.418 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.1417, allocations: 1.79 MB / 333.1 MB, free: 7.582 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.1423, allocations: 0.8365 MB / 333.9 MB, free: 6.715 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.1425, allocations: 35.42 kB / 334 MB, free: 6.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.695e-06/0.1425, allocations: 0 / 334 MB, free: 6.68 MB / 282.7 MB Notification: Performance of Templates: time 0.01496/0.1575, allocations: 8.19 MB / 342.1 MB, free: 14.48 MB / 298.7 MB