Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 234.9 MB / 250.5 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004422/0.0004424, allocations: 19.94 kB / 314.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2897, allocations: 54.85 MB / 369.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4224, allocations: 86.51 MB / 455.8 MB, free: 6.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.4226, allocations: 67.97 kB / 455.8 MB, free: 6.082 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05073/0.4734, allocations: 11.77 MB / 467.6 MB, free: 10.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.176e-06/0.4734, allocations: 0 / 467.6 MB, free: 10.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.201e-05/0.4735, allocations: 12 kB / 467.6 MB, free: 10.25 MB / 394.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.002588/0.4761, allocations: 0.9973 MB / 468.6 MB, free: 9.207 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4761, allocations: 12.03 kB / 468.6 MB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.4764, allocations: 83.06 kB / 468.7 MB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007783/0.4772, allocations: 388.8 kB / 469.1 MB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.251e-05/0.4773, allocations: 53.31 kB / 469.1 MB, free: 8.637 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.4774, allocations: 67.89 kB / 469.2 MB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.4796, allocations: 0.7967 MB / 470 MB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/0.4796, allocations: 11.89 kB / 470 MB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.4798, allocations: 24 kB / 470 MB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.4798, allocations: 16 kB / 470 MB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002267/0.4821, allocations: 0.7267 MB / 470.8 MB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006162/0.4883, allocations: 2.578 MB / 473.3 MB, free: 4.266 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.4902, allocations: 0.631 MB / 474 MB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.4904, allocations: 16.77 kB / 474 MB, free: 3.582 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.4904, allocations: 46.5 kB / 474 MB, free: 3.527 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.451e-06/0.4904, allocations: 0 / 474 MB, free: 3.527 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.01139/0.5018, allocations: 3.689 MB / 477.7 MB, free: 15.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.502, allocations: 140.4 kB / 477.9 MB, free: 15.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005413/0.5025, allocations: 321.1 kB / 478.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.5027, allocations: 53.69 kB / 478.2 MB, free: 15.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.503, allocations: 307.1 kB / 478.5 MB, free: 14.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.5034, allocations: 288 kB / 478.8 MB, free: 14.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.5035, allocations: 20 kB / 478.8 MB, free: 14.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.5037, allocations: 350.8 kB / 479.2 MB, free: 14.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.5049, allocations: 357.8 kB / 479.5 MB, free: 13.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.5062, allocations: 0.518 MB / 480 MB, free: 13.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.5073, allocations: 316 kB / 480.4 MB, free: 12.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.519e-06/0.5073, allocations: 0 / 480.4 MB, free: 12.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004092/0.5114, allocations: 1.2 MB / 481.6 MB, free: 11.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.5115, allocations: 8 kB / 481.6 MB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.539e-05/0.5115, allocations: 8 kB / 481.6 MB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/0.5133, allocations: 0.6165 MB / 482.2 MB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007932/0.5142, allocations: 147.8 kB / 482.3 MB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.5174, allocations: 2.573 MB / 484.9 MB, free: 8.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.5187, allocations: 195.7 kB / 485.1 MB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.5189, allocations: 43.97 kB / 485.1 MB, free: 7.926 MB / 410.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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005413/0.5195, allocations: 221.8 kB / 485.4 MB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/0.5197, allocations: 63.25 kB / 485.4 MB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003786/0.5235, allocations: 1.138 MB / 486.6 MB, free: 6.469 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.5236, allocations: 8 kB / 486.6 MB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.5236, allocations: 4 kB / 486.6 MB, free: 6.457 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.5236, allocations: 3.984 kB / 486.6 MB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005849/0.5295, allocations: 2.125 MB / 488.7 MB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.947e-06/0.5295, allocations: 0 / 488.7 MB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000855/0.5304, allocations: 127.9 kB / 488.8 MB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.5321, allocations: 0.5654 MB / 489.4 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.5322, allocations: 35.95 kB / 489.4 MB, free: 3.512 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003143/0.5354, allocations: 2.526 MB / 491.9 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5354, allocations: 0 / 491.9 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/0.5403, allocations: 1.78 MB / 493.7 MB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005152/0.5409, allocations: 216.2 kB / 493.9 MB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.5411, allocations: 31.95 kB / 494 MB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.5423, allocations: 175.8 kB / 494.1 MB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004803/0.5428, allocations: 171.6 kB / 494.3 MB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.5429, allocations: 39.95 kB / 494.3 MB, free: 14.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004494/0.5434, allocations: 267.1 kB / 494.6 MB, free: 14.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.99e-07/0.5434, allocations: 3.938 kB / 494.6 MB, free: 14.13 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001098/0.5445, allocations: 196 kB / 494.8 MB, free: 13.94 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (55): * Single equations (assignments): 51 * 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.0003616/0.5449, allocations: 172.1 kB / 495 MB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.548, allocations: 1.026 MB / 496 MB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.5481, allocations: 0 / 496 MB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.5499, allocations: 0.5037 MB / 496.5 MB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.551, allocations: 99.94 kB / 496.6 MB, free: 12.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007038/0.5581, allocations: 2.616 MB / 499.2 MB, free: 9.449 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007871/0.5589, allocations: 0.9299 MB / 0.4884 GB, free: 8.488 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002836/0.5592, allocations: 47.41 kB / 0.4885 GB, free: 8.441 MB / 426.7 MB Notification: Performance of SimCode: time 1.855e-06/0.5592, allocations: 0 / 0.4885 GB, free: 8.441 MB / 426.7 MB Notification: Performance of Templates: time 0.2752/0.8345, allocations: 16.37 MB / 0.5045 GB, free: 122.7 MB / 426.7 MB