Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.475/2.475, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004438/0.0004439, allocations: 8 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3641, allocations: 54.86 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1533/0.5174, allocations: 86.49 MB / 456.3 MB, free: 6.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5177, allocations: 71.97 kB / 456.4 MB, free: 6.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05689/0.5746, allocations: 11.77 MB / 468.1 MB, free: 10.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.5747, allocations: 0 / 468.1 MB, free: 10.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.386e-05/0.5748, allocations: 12 kB / 468.1 MB, free: 10.29 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.003497/0.5783, allocations: 0.9974 MB / 469.1 MB, free: 9.242 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.5784, allocations: 12.03 kB / 469.1 MB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002768/0.5786, allocations: 79.06 kB / 469.2 MB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008435/0.5795, allocations: 400.8 kB / 469.6 MB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.186e-05/0.5796, allocations: 49.31 kB / 469.7 MB, free: 8.672 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/0.5798, allocations: 67.91 kB / 469.7 MB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.5823, allocations: 0.8045 MB / 470.5 MB, free: 7.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/0.5824, allocations: 7.906 kB / 470.5 MB, free: 7.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.5826, allocations: 24 kB / 470.6 MB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.5826, allocations: 16 kB / 470.6 MB, free: 7.719 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.5854, allocations: 0.7189 MB / 471.3 MB, free: 7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007326/0.5927, allocations: 2.586 MB / 473.9 MB, free: 4.293 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.5951, allocations: 0.6231 MB / 474.5 MB, free: 3.633 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.5953, allocations: 20.7 kB / 474.5 MB, free: 3.613 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.5953, allocations: 46.55 kB / 474.6 MB, free: 3.559 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 3.987e-06/0.5954, allocations: 0 / 474.6 MB, free: 3.559 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.01425/0.6096, allocations: 3.684 MB / 478.3 MB, free: 15.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.6098, allocations: 140.4 kB / 478.4 MB, free: 15.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006653/0.6105, allocations: 370 kB / 478.8 MB, free: 15.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/0.6107, allocations: 53.7 kB / 478.8 MB, free: 15.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.6109, allocations: 303.1 kB / 479.1 MB, free: 14.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003824/0.6113, allocations: 296 kB / 479.4 MB, free: 14.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.273e-05/0.6114, allocations: 24 kB / 479.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.6116, allocations: 342.8 kB / 479.8 MB, free: 14.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.613, allocations: 365.8 kB / 480.1 MB, free: 13.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.6146, allocations: 0.5158 MB / 480.6 MB, free: 13.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.616, allocations: 316.9 kB / 480.9 MB, free: 12.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.616, allocations: 0 / 480.9 MB, free: 12.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00497/0.621, allocations: 1.204 MB / 482.1 MB, free: 11.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.621, allocations: 8 kB / 482.1 MB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/0.6211, allocations: 15.94 kB / 482.2 MB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002076/0.6232, allocations: 0.6126 MB / 482.8 MB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.6243, allocations: 151.7 kB / 482.9 MB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/0.628, allocations: 2.573 MB / 485.5 MB, free: 8.129 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.6299, allocations: 187.8 kB / 485.7 MB, free: 7.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002282/0.6302, allocations: 47.97 kB / 485.7 MB, free: 7.898 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.0005921/0.6308, allocations: 208.3 kB / 485.9 MB, free: 7.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.6311, allocations: 67.23 kB / 486 MB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/0.6357, allocations: 1.147 MB / 487.1 MB, free: 6.438 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.6357, allocations: 8 kB / 487.2 MB, free: 6.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.6358, allocations: 4 kB / 487.2 MB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.6358, allocations: 3.984 kB / 487.2 MB, free: 6.422 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006885/0.6427, allocations: 2.112 MB / 489.3 MB, free: 4.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.6427, allocations: 0 / 489.3 MB, free: 4.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.6439, allocations: 127.9 kB / 489.4 MB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.6459, allocations: 0.577 MB / 490 MB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.6461, allocations: 35.95 kB / 490 MB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.6492, allocations: 2.534 MB / 492.5 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.6493, allocations: 0 / 492.5 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005967/0.6553, allocations: 1.723 MB / 494.3 MB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005757/0.6559, allocations: 224.1 kB / 494.5 MB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.6562, allocations: 24 kB / 494.5 MB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/0.6578, allocations: 179.8 kB / 494.7 MB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000576/0.6584, allocations: 171.6 kB / 494.9 MB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.6586, allocations: 39.95 kB / 494.9 MB, free: 14.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004645/0.6591, allocations: 263.1 kB / 495.1 MB, free: 14.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6591, allocations: 0 / 495.1 MB, free: 14.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001163/0.6602, allocations: 196 kB / 495.3 MB, free: 13.99 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.0004071/0.6607, allocations: 169.8 kB / 495.5 MB, free: 13.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003801/0.6645, allocations: 1.025 MB / 496.5 MB, free: 12.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.6645, allocations: 0 / 496.5 MB, free: 12.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002211/0.6668, allocations: 0.5078 MB / 497 MB, free: 12.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.668, allocations: 90.05 kB / 497.1 MB, free: 12.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008938/0.677, allocations: 2.621 MB / 499.7 MB, free: 9.496 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/0.6776, allocations: 0.9182 MB / 0.4889 GB, free: 8.547 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.678, allocations: 51.41 kB / 0.489 GB, free: 8.496 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/0.678, allocations: 0 / 0.489 GB, free: 8.496 MB / 426.7 MB Notification: Performance of Templates: time 0.4078/1.086, allocations: 16.38 MB / 0.505 GB, free: 122.7 MB / 426.7 MB