Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003582, allocations: 12 kB / 233.1 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07052, allocations: 38.78 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003649/0.07422, allocations: 2.405 MB / 274.3 MB, free: 9.785 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.07636, allocations: 0.9552 MB / 275.3 MB, free: 8.828 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.07662, allocations: 11.88 kB / 275.3 MB, free: 8.816 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.07683, allocations: 43.62 kB / 275.3 MB, free: 8.773 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.07721, allocations: 151.6 kB / 275.5 MB, free: 8.625 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005332/0.07776, allocations: 159.7 kB / 275.6 MB, free: 8.469 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005669/0.07834, allocations: 388.3 kB / 276 MB, free: 8.09 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.07861, allocations: 110.2 kB / 276.1 MB, free: 7.977 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003907/0.07901, allocations: 231.2 kB / 276.4 MB, free: 7.75 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.07941, allocations: 251 kB / 276.6 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.511e-05/0.0795, allocations: 31.98 kB / 276.6 MB, free: 7.473 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002796/0.0798, allocations: 119.8 kB / 276.7 MB, free: 7.355 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.07994, allocations: 87.64 kB / 276.8 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.08008, allocations: 105.5 kB / 276.9 MB, free: 7.16 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.08071, allocations: 419.1 kB / 277.3 MB, free: 6.75 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.813e-06/0.08074, allocations: 4 kB / 277.3 MB, free: 6.746 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.403e-06/0.08075, allocations: 0 / 277.3 MB, free: 6.746 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.251e-06/0.08077, allocations: 0 / 277.3 MB, free: 6.746 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.001592/0.08237, allocations: 0.7251 MB / 278.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.08242, allocations: 8.031 kB / 278.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.08257, allocations: 55.42 kB / 278.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.08311, allocations: 314 kB / 278.4 MB, free: 5.562 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/0.08317, allocations: 33 kB / 278.5 MB, free: 5.531 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.0833, allocations: 44 kB / 278.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.08448, allocations: 458.3 kB / 279 MB, free: 5.035 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.004e-05/0.08454, allocations: 11.91 kB / 279 MB, free: 5.023 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.08461, allocations: 15.98 kB / 279 MB, free: 5.008 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.08465, allocations: 12 kB / 279 MB, free: 4.996 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.08596, allocations: 471.7 kB / 279.5 MB, free: 4.535 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.08875, allocations: 1.129 MB / 280.6 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.08986, allocations: 384.2 kB / 281 MB, free: 2.973 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.08993, allocations: 4.438 kB / 281 MB, free: 2.969 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.08999, allocations: 43 kB / 281 MB, free: 2.918 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 4.028e-06/0.09, allocations: 3.938 kB / 281 MB, free: 2.914 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.006987/0.097, allocations: 2.453 MB / 283.5 MB, free: 340 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.09709, allocations: 59.97 kB / 283.5 MB, free: 268 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004408/0.09754, allocations: 279.3 kB / 283.8 MB, free: 15.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.924e-05/0.09765, allocations: 49.69 kB / 283.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.09785, allocations: 239.7 kB / 284.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.0981, allocations: 193.3 kB / 284.3 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.09816, allocations: 12 kB / 284.3 MB, free: 15.49 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.09835, allocations: 330.8 kB / 284.6 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006763/0.09904, allocations: 245.2 kB / 284.8 MB, free: 14.92 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007178/0.09978, allocations: 284.8 kB / 285.1 MB, free: 14.64 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005825/0.1004, allocations: 211.1 kB / 285.3 MB, free: 14.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.1004, allocations: 0 / 285.3 MB, free: 14.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002038/0.1024, allocations: 0.7134 MB / 286 MB, free: 13.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1025, allocations: 5.875 kB / 286.1 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.301e-06/0.1025, allocations: 0 / 286.1 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.1035, allocations: 377.5 kB / 286.4 MB, free: 13.33 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004809/0.104, allocations: 95.83 kB / 286.5 MB, free: 13.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.1059, allocations: 1.378 MB / 287.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006474/0.1066, allocations: 104.1 kB / 288 MB, free: 11.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.1067, allocations: 20 kB / 288 MB, free: 11.68 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.0003736/0.107, allocations: 169.8 kB / 288.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.1072, allocations: 39.53 kB / 288.2 MB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.1073, allocations: 63.69 kB / 288.3 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/0.1074, allocations: 8 kB / 288.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.1074, allocations: 4 kB / 288.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.124e-06/0.1074, allocations: 0 / 288.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004153/0.1116, allocations: 1.583 MB / 289.9 MB, free: 9.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.599e-06/0.1116, allocations: 4 kB / 289.9 MB, free: 9.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.1121, allocations: 79.89 kB / 290 MB, free: 9.641 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009291/0.1131, allocations: 353.7 kB / 290.3 MB, free: 9.289 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-05/0.1132, allocations: 23.98 kB / 290.3 MB, free: 9.266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.1149, allocations: 1.339 MB / 291.7 MB, free: 7.875 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.701e-06/0.1149, allocations: 7.969 kB / 291.7 MB, free: 7.867 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/0.1179, allocations: 1.143 MB / 292.8 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.1183, allocations: 160.6 kB / 293 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.1184, allocations: 20 kB / 293 MB, free: 6.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.1189, allocations: 75.92 kB / 293.1 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002875/0.1193, allocations: 120.2 kB / 293.2 MB, free: 6.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.534e-05/0.1193, allocations: 27.97 kB / 293.2 MB, free: 6.273 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002911/0.1196, allocations: 198 kB / 293.4 MB, free: 6.082 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.044e-06/0.1197, allocations: 3.938 kB / 293.4 MB, free: 6.078 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006241/0.1203, allocations: 128 kB / 293.5 MB, free: 5.953 MB / 250.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.0002787/0.1206, allocations: 136.7 kB / 293.7 MB, free: 5.812 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.1223, allocations: 0.585 MB / 294.3 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.499e-06/0.1224, allocations: 3.938 kB / 294.3 MB, free: 5.223 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009867/0.1234, allocations: 330.4 kB / 294.6 MB, free: 4.902 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.124, allocations: 60.61 kB / 294.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/0.1289, allocations: 1.807 MB / 296.4 MB, free: 2.984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.1296, allocations: 0.8287 MB / 297.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.1298, allocations: 39.42 kB / 297.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of SimCode: time 2.249e-06/0.1298, allocations: 0 / 297.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of Templates: time 0.1851/0.3149, allocations: 7.823 MB / 305.1 MB, free: 30 MB / 250.7 MB