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.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.074/2.074, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003786, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 44.51 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4565/0.5575, allocations: 74.49 MB / 383.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.5578, allocations: 75.42 kB / 383.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04114/0.599, allocations: 9.021 MB / 392.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.599, allocations: 0 / 392.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.382e-05/0.5991, allocations: 15.41 kB / 392.7 MB, free: 14.61 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002683/0.6018, allocations: 0.8221 MB / 393.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.6018, allocations: 15.62 kB / 393.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002481/0.6021, allocations: 58.38 kB / 393.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.6027, allocations: 334.1 kB / 393.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.6028, allocations: 33.41 kB / 393.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.6029, allocations: 44.69 kB / 393.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.6047, allocations: 0.5918 MB / 394.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.853e-05/0.6048, allocations: 7.891 kB / 394.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.97e-05/0.6049, allocations: 17.5 kB / 394.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.6049, allocations: 11.59 kB / 394.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.6068, allocations: 0.5518 MB / 395.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003968/0.6108, allocations: 1.342 MB / 396.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.6125, allocations: 474.6 kB / 396.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.6126, allocations: 19.59 kB / 397 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.6127, allocations: 38.56 kB / 397 MB, free: 13.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.427e-06/0.6127, allocations: 0 / 397 MB, free: 13.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.01074/0.6234, allocations: 2.926 MB / 399.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.6235, allocations: 59.72 kB / 400 MB, free: 12.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004363/0.624, allocations: 291.2 kB / 400.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.6242, allocations: 56.14 kB / 400.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.6243, allocations: 180.8 kB / 400.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.6246, allocations: 241.9 kB / 400.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.6247, allocations: 13.91 kB / 400.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6248, allocations: 354.4 kB / 401.1 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.6259, allocations: 294.2 kB / 401.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.627, allocations: 349.4 kB / 401.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.6279, allocations: 231.2 kB / 401.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6279, allocations: 0 / 401.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002725/0.6306, allocations: 0.8522 MB / 402.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.6307, allocations: 7.812 kB / 402.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/0.6308, allocations: 4 kB / 402.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001668/0.6324, allocations: 0.579 MB / 403.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/0.6332, allocations: 91.56 kB / 403.5 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.6352, allocations: 0.9893 MB / 404.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.6366, allocations: 148.3 kB / 404.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.6368, allocations: 32.84 kB / 404.6 MB, free: 10.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0004418/0.6373, allocations: 177.2 kB / 404.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.6375, allocations: 50.48 kB / 404.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003015/0.6405, allocations: 0.9272 MB / 405.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.6405, allocations: 3.938 kB / 405.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.6406, allocations: 3.875 kB / 405.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.6406, allocations: 7.922 kB / 405.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.6447, allocations: 1.49 MB / 407.3 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6448, allocations: 3.938 kB / 407.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.6456, allocations: 93.41 kB / 407.4 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/0.6472, allocations: 0.5526 MB / 407.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.6474, allocations: 26.77 kB / 408 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.6491, allocations: 0.9693 MB / 408.9 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6492, allocations: 0 / 408.9 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.6531, allocations: 1.208 MB / 410.1 MB, free: 8.742 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.6536, allocations: 180.7 kB / 410.3 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.6538, allocations: 24.59 kB / 410.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.655, allocations: 145.8 kB / 410.5 MB, free: 8.555 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/0.6554, allocations: 148.1 kB / 410.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6556, allocations: 36.83 kB / 410.7 MB, free: 8.461 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.6559, allocations: 219.8 kB / 410.9 MB, free: 8.352 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6559, allocations: 0 / 410.9 MB, free: 8.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000811/0.6567, allocations: 158.5 kB / 411 MB, free: 8.344 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003596/0.6571, allocations: 152.8 kB / 411.2 MB, free: 8.234 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.6597, allocations: 0.81 MB / 412 MB, free: 8.027 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.6598, allocations: 0 / 412 MB, free: 8.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.6612, allocations: 422.9 kB / 412.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000939/0.6621, allocations: 72.12 kB / 412.5 MB, free: 7.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00407/0.6662, allocations: 1.671 MB / 414.2 MB, free: 6.809 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.6666, allocations: 0.8516 MB / 415 MB, free: 6.039 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003551/0.667, allocations: 47.33 kB / 415 MB, free: 6.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.6672, allocations: 42.19 kB / 415.1 MB, free: 5.996 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6672, allocations: 0 / 415.1 MB, free: 5.996 MB / 314.7 MB Notification: Performance of Templates: time 0.03701/0.7042, allocations: 11.47 MB / 426.6 MB, free: 112 kB / 314.7 MB