Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 1.914/1.914, allocations: 209.3 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004467, allocations: 12 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3255, allocations: 48.7 MB / 331.2 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.003984/0.3295, allocations: 3.112 MB / 334.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002838/0.3324, allocations: 1.253 MB / 335.5 MB, free: 3.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005427/0.333, allocations: 12 kB / 335.6 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.3333, allocations: 79.48 kB / 335.6 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006934/0.334, allocations: 251.6 kB / 335.9 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008609/0.3349, allocations: 245.5 kB / 336.1 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.336, allocations: 0.6273 MB / 336.8 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003546/0.3364, allocations: 149.3 kB / 336.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.3371, allocations: 382 kB / 337.3 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005646/0.3377, allocations: 413.3 kB / 337.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.3378, allocations: 39.06 kB / 337.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003714/0.3382, allocations: 126.9 kB / 337.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.3384, allocations: 152.1 kB / 338 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.3386, allocations: 151.2 kB / 338.1 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007734/0.3394, allocations: 0.6429 MB / 338.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.003e-06/0.3394, allocations: 4 kB / 338.8 MB, free: 1.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.232e-06/0.3394, allocations: 0 / 338.8 MB, free: 1.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.3394, allocations: 0 / 338.8 MB, free: 1.766 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002233/0.3417, allocations: 1.014 MB / 339.8 MB, free: 1.004 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3417, allocations: 9.031 kB / 339.8 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.342, allocations: 78.47 kB / 339.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006571/0.3426, allocations: 406.4 kB / 340.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.592e-05/0.3427, allocations: 46.44 kB / 340.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.3429, allocations: 72.89 kB / 340.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.3447, allocations: 0.8031 MB / 341.2 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.714e-05/0.3448, allocations: 15.22 kB / 341.2 MB, free: 20 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.231e-05/0.3449, allocations: 25.48 kB / 341.2 MB, free: 0 / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.345, allocations: 15.78 kB / 341.2 MB, free: 0 / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002222/0.3472, allocations: 0.7584 MB / 342 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005895/0.3531, allocations: 2.6 MB / 344.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.3552, allocations: 0.6401 MB / 345.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.3554, allocations: 15.83 kB / 345.3 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.749e-05/0.3555, allocations: 43.73 kB / 345.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=72): time 7.906e-06/0.3555, allocations: 0 / 345.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=76): time 0.01162/0.3671, allocations: 3.841 MB / 349.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.3673, allocations: 152.9 kB / 349.3 MB, free: 10.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007266/0.368, allocations: 426.7 kB / 349.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001509/0.3682, allocations: 45.58 kB / 349.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.3685, allocations: 332.4 kB / 350.1 MB, free: 9.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/0.3689, allocations: 267.8 kB / 350.3 MB, free: 9.586 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.112e-05/0.369, allocations: 16.66 kB / 350.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.3692, allocations: 345.7 kB / 350.7 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.3703, allocations: 389.7 kB / 351.1 MB, free: 9.059 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3716, allocations: 0.5391 MB / 351.6 MB, free: 8.699 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009919/0.3727, allocations: 337.8 kB / 351.9 MB, free: 8.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.829e-06/0.3727, allocations: 5.375 kB / 352 MB, free: 8.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004013/0.3767, allocations: 1.384 MB / 353.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.3768, allocations: 4 kB / 353.3 MB, free: 7.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.3768, allocations: 4 kB / 353.3 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/0.3784, allocations: 0.5773 MB / 353.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008061/0.3792, allocations: 159.7 kB / 354.1 MB, free: 6.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003328/0.3826, allocations: 2.651 MB / 356.7 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.3839, allocations: 195.8 kB / 356.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.3841, allocations: 32 kB / 357 MB, free: 3.934 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005345/0.3846, allocations: 220.2 kB / 357.2 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.3849, allocations: 67.25 kB / 357.2 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.3851, allocations: 83.97 kB / 357.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3851, allocations: 8 kB / 357.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/0.3852, allocations: 7.953 kB / 357.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.3852, allocations: 3.984 kB / 357.3 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00627/0.3915, allocations: 2.375 MB / 359.7 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/0.3915, allocations: 4 kB / 359.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008047/0.3924, allocations: 119.9 kB / 359.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001422/0.3938, allocations: 0.542 MB / 360.4 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.783e-05/0.3939, allocations: 31.91 kB / 360.4 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.3971, allocations: 2.596 MB / 363 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3971, allocations: 3.938 kB / 363 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004848/0.402, allocations: 1.912 MB / 364.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005057/0.4025, allocations: 208.2 kB / 365.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.4027, allocations: 28 kB / 365.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.4039, allocations: 167.8 kB / 365.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004491/0.4044, allocations: 187.4 kB / 365.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.179e-05/0.4045, allocations: 31.95 kB / 365.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004712/0.405, allocations: 295.1 kB / 365.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.03e-07/0.405, allocations: 0 / 365.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001072/0.4061, allocations: 188 kB / 366 MB, free: 10.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003281/0.4064, allocations: 162.1 kB / 366.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002895/0.4093, allocations: 0.9458 MB / 367.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.053e-06/0.4094, allocations: 448 / 367.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.411, allocations: 0.5033 MB / 367.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009744/0.412, allocations: 82.84 kB / 367.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006676/0.4187, allocations: 2.617 MB / 370.3 MB, free: 6.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.4195, allocations: 0.926 MB / 371.2 MB, free: 5.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.4198, allocations: 47.42 kB / 371.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of SimCode: time 1.809e-06/0.4198, allocations: 0 / 371.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of Templates: time 0.02524/0.445, allocations: 15.73 MB / 387 MB, free: 5.547 MB / 314.7 MB