Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.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) 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.2_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.193/2.193, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005452/0.0005455, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1239, allocations: 44.51 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4599/0.5839, allocations: 76.1 MB / 385.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.5842, allocations: 78.78 kB / 385.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03293/0.6171, allocations: 7.528 MB / 392.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6172, allocations: 0 / 392.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.6172, allocations: 7.719 kB / 392.8 MB, free: 14.59 MB / 314.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.001962/0.6192, allocations: 0.7315 MB / 393.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.6193, allocations: 7.812 kB / 393.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.6194, allocations: 46.75 kB / 393.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.62, allocations: 319.4 kB / 393.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/0.62, allocations: 27.31 kB / 393.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.6201, allocations: 41.28 kB / 393.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.6214, allocations: 448.3 kB / 394.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.6215, allocations: 6.641 kB / 394.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.6216, allocations: 18.28 kB / 394.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.6216, allocations: 7.781 kB / 394.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.623, allocations: 449.5 kB / 394.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003404/0.6264, allocations: 1.164 MB / 396 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.6278, allocations: 396.7 kB / 396.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.447e-05/0.6279, allocations: 12.16 kB / 396.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.6279, allocations: 41.52 kB / 396.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 3.797e-06/0.628, allocations: 3.969 kB / 396.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.008092/0.6361, allocations: 2.347 MB / 398.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.6361, allocations: 63.62 kB / 398.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003483/0.6365, allocations: 267.6 kB / 399.1 MB, free: 12.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.241e-05/0.6366, allocations: 41.72 kB / 399.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.6367, allocations: 176.8 kB / 399.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.6369, allocations: 202.8 kB / 399.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.333e-05/0.637, allocations: 9.75 kB / 399.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.6371, allocations: 345.3 kB / 399.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000718/0.6378, allocations: 225.6 kB / 400.1 MB, free: 11.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007688/0.6386, allocations: 272.7 kB / 400.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.6392, allocations: 185.3 kB / 400.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6392, allocations: 0 / 400.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002707/0.642, allocations: 0.7418 MB / 401.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.642, allocations: 3.906 kB / 401.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.6421, allocations: 3.875 kB / 401.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.6433, allocations: 404.2 kB / 401.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006822/0.644, allocations: 84.58 kB / 401.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.6456, allocations: 1.328 MB / 403.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.6467, allocations: 109.5 kB / 403.2 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.453e-05/0.6468, allocations: 25.03 kB / 403.2 MB, free: 10.51 MB / 314.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): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003795/0.6472, allocations: 165.5 kB / 403.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.6474, allocations: 42.94 kB / 403.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.6498, allocations: 0.7471 MB / 404.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.6499, allocations: 7.781 kB / 404.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6499, allocations: 0 / 404.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.6499, allocations: 2.438 kB / 404.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003973/0.6539, allocations: 1.389 MB / 405.6 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.026e-06/0.654, allocations: 7.828 kB / 405.6 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000744/0.6547, allocations: 86.38 kB / 405.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.6558, allocations: 376.6 kB / 406 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.039e-05/0.6559, allocations: 17.53 kB / 406 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001385/0.6573, allocations: 1.309 MB / 407.4 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6573, allocations: 0 / 407.4 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.6605, allocations: 1.029 MB / 408.4 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.6609, allocations: 159.8 kB / 408.5 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.6611, allocations: 21.86 kB / 408.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007476/0.6618, allocations: 77.59 kB / 408.6 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/0.6622, allocations: 119.9 kB / 408.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.908e-05/0.6623, allocations: 25.88 kB / 408.8 MB, free: 8.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002572/0.6626, allocations: 190.1 kB / 409 MB, free: 8.109 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6626, allocations: 3.812 kB / 409 MB, free: 8.109 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007072/0.6633, allocations: 136.2 kB / 409.1 MB, free: 8.102 MB / 314.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.0002942/0.6636, allocations: 146.4 kB / 409.2 MB, free: 7.996 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.6655, allocations: 0.6221 MB / 409.9 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.6656, allocations: 3.875 kB / 409.9 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.6667, allocations: 326.5 kB / 410.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007623/0.6675, allocations: 69.23 kB / 410.3 MB, free: 7.762 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006311/0.6738, allocations: 1.764 MB / 412 MB, free: 6.664 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.6742, allocations: 0.8292 MB / 412.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.6745, allocations: 38.42 kB / 412.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.6747, allocations: 34.8 kB / 412.9 MB, free: 5.867 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.6747, allocations: 0 / 412.9 MB, free: 5.867 MB / 314.7 MB Notification: Performance of Templates: time 0.0262/0.7009, allocations: 8.435 MB / 421.4 MB, free: 1.574 MB / 314.7 MB