Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.001/2.001, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006994/0.0006994, allocations: 8 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4232, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.5693, allocations: 80.09 MB / 411.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5696, allocations: 71.95 kB / 412 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05559/0.6252, allocations: 11.55 MB / 423.5 MB, free: 2.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6253, allocations: 0 / 423.5 MB, free: 2.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.06e-05/0.6254, allocations: 20 kB / 423.5 MB, free: 2.684 MB / 346.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.003484/0.6289, allocations: 1.012 MB / 424.5 MB, free: 1.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.6289, allocations: 8.031 kB / 424.5 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.6292, allocations: 86.92 kB / 424.6 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.6301, allocations: 408.7 kB / 425 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-05/0.6302, allocations: 53.31 kB / 425.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.6304, allocations: 63.91 kB / 425.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.6329, allocations: 0.8335 MB / 426 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.917e-05/0.633, allocations: 11.84 kB / 426 MB, free: 96 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.6331, allocations: 24 kB / 426 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.6332, allocations: 16 kB / 426 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002976/0.6362, allocations: 0.7816 MB / 426.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007373/0.6436, allocations: 2.607 MB / 429.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.646, allocations: 0.6435 MB / 430.1 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.6461, allocations: 16.36 kB / 430.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.6462, allocations: 46.92 kB / 430.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 3.566e-06/0.6462, allocations: 0 / 430.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.01424/0.6605, allocations: 3.845 MB / 434 MB, free: 7.695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/0.6606, allocations: 140.5 kB / 434.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007785/0.6614, allocations: 421.8 kB / 434.5 MB, free: 7.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/0.6616, allocations: 61.62 kB / 434.6 MB, free: 7.043 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.6619, allocations: 322.8 kB / 434.9 MB, free: 6.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003588/0.6623, allocations: 268.5 kB / 435.2 MB, free: 6.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.6624, allocations: 20 kB / 435.2 MB, free: 6.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.6626, allocations: 346.8 kB / 435.5 MB, free: 6.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.6641, allocations: 397.8 kB / 435.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.6658, allocations: 0.5491 MB / 436.4 MB, free: 5.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.6672, allocations: 356.5 kB / 436.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.6672, allocations: 0 / 436.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005128/0.6724, allocations: 1.361 MB / 438.2 MB, free: 3.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.6725, allocations: 12 kB / 438.2 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.6725, allocations: 7.984 kB / 438.2 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002538/0.675, allocations: 0.7996 MB / 439 MB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.6763, allocations: 159.7 kB / 439.1 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.6801, allocations: 2.678 MB / 441.8 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.682, allocations: 199.9 kB / 442 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002511/0.6823, allocations: 43.98 kB / 442 MB, free: 15.37 MB / 378.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.0006841/0.683, allocations: 212.2 kB / 442.3 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.6834, allocations: 67.2 kB / 442.3 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.6837, allocations: 87.98 kB / 442.4 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.6837, allocations: 8 kB / 442.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.6837, allocations: 0 / 442.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/0.6837, allocations: 11.98 kB / 442.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007936/0.6917, allocations: 2.336 MB / 444.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.3e-05/0.6918, allocations: 3.984 kB / 444.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.693, allocations: 115.9 kB / 444.9 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00238/0.6954, allocations: 0.7682 MB / 445.6 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002112/0.6956, allocations: 31.95 kB / 445.7 MB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.6991, allocations: 2.639 MB / 448.3 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.6992, allocations: 4.031 kB / 448.3 MB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006413/0.7056, allocations: 1.903 MB / 450.2 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/0.7063, allocations: 228 kB / 450.4 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/0.7066, allocations: 28 kB / 450.5 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001748/0.7083, allocations: 171.8 kB / 450.6 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006127/0.709, allocations: 179.6 kB / 450.8 MB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.7091, allocations: 32.09 kB / 450.9 MB, free: 6.312 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000541/0.7097, allocations: 287.1 kB / 451.1 MB, free: 6.031 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7097, allocations: 4 kB / 451.1 MB, free: 6.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001237/0.7109, allocations: 196 kB / 451.3 MB, free: 5.836 MB / 378.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.0003941/0.7114, allocations: 155.1 kB / 451.5 MB, free: 5.676 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003806/0.7152, allocations: 0.9537 MB / 452.4 MB, free: 4.723 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.7152, allocations: 0 / 452.4 MB, free: 4.723 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.7174, allocations: 0.4958 MB / 452.9 MB, free: 4.227 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.7186, allocations: 94.08 kB / 453 MB, free: 4.137 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008879/0.7275, allocations: 2.599 MB / 455.6 MB, free: 1.488 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.7282, allocations: 0.926 MB / 456.5 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.7286, allocations: 43.42 kB / 456.6 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of SimCode: time 4.018e-06/0.7286, allocations: 4 kB / 456.6 MB, free: 500 kB / 378.7 MB Notification: Performance of Templates: time 0.03134/0.76, allocations: 15.81 MB / 472.4 MB, free: 0.6758 MB / 394.7 MB