Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.592/1.592, allocations: 171.3 MB / 179.2 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.377e-05/1.366e-05, allocations: 0 / 222.5 MB, free: 4.75 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2062, allocations: 38.78 MB / 261.3 MB, free: 13.01 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.3079, allocations: 68.43 MB / 329.7 MB, free: 9.105 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3082, allocations: 75.97 kB / 329.8 MB, free: 9.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03656/0.3448, allocations: 8.783 MB / 338.6 MB, free: 236 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.056e-06/0.3448, allocations: 0 / 338.6 MB, free: 236 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.803e-05/0.3449, allocations: 8 kB / 338.6 MB, free: 228 kB / 282.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.001876/0.3467, allocations: 0.791 MB / 339.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.3468, allocations: 8.031 kB / 339.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.347, allocations: 59.34 kB / 339.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006115/0.3476, allocations: 343.5 kB / 339.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/0.3477, allocations: 16 kB / 339.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3478, allocations: 35.86 kB / 339.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001295/0.3491, allocations: 0.5297 MB / 340.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.3503, allocations: 0.5274 MB / 340.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.449e-05/0.3504, allocations: 4 kB / 340.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.3504, allocations: 0 / 340.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.3505, allocations: 12 kB / 340.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.3536, allocations: 1.281 MB / 342.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.3547, allocations: 416.1 kB / 342.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/0.3553, allocations: 258.5 kB / 342.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.296e-05/0.3554, allocations: 12.56 kB / 342.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3554, allocations: 39.12 kB / 342.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.465e-06/0.3554, allocations: 0 / 342.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.00567/0.3611, allocations: 1.954 MB / 344.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.3612, allocations: 59.95 kB / 344.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.3616, allocations: 254.4 kB / 345.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.653e-05/0.3617, allocations: 45.7 kB / 345.2 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.3619, allocations: 255.5 kB / 345.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.3622, allocations: 209.1 kB / 345.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.3623, allocations: 0 / 345.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.3625, allocations: 338.8 kB / 346 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.3631, allocations: 277.5 kB / 346.2 MB, free: 8.258 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007055/0.3639, allocations: 337.5 kB / 346.6 MB, free: 7.918 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007627/0.3646, allocations: 224.6 kB / 346.8 MB, free: 7.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.3647, allocations: 4 kB / 346.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002216/0.3669, allocations: 0.8136 MB / 347.6 MB, free: 6.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.3669, allocations: 8 kB / 347.6 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.367, allocations: 0 / 347.6 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.3687, allocations: 0.7561 MB / 348.4 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.3693, allocations: 103.9 kB / 348.5 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.3716, allocations: 1.173 MB / 349.6 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009386/0.3725, allocations: 139.9 kB / 349.8 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.3727, allocations: 31.92 kB / 349.8 MB, free: 4.637 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 prepare postOptimizeDAE: time 0.0002993/0.373, allocations: 127.7 kB / 349.9 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.3731, allocations: 47.53 kB / 350 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.3733, allocations: 65.06 kB / 350 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-06/0.3734, allocations: 4 kB / 350.1 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.807e-06/0.3734, allocations: 3.984 kB / 350.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.3734, allocations: 0 / 350.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.377, allocations: 1.47 MB / 351.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-06/0.3771, allocations: 0 / 351.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005939/0.3777, allocations: 99.88 kB / 351.6 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.3793, allocations: 0.7229 MB / 352.3 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.336e-05/0.3795, allocations: 23.97 kB / 352.4 MB, free: 2.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/0.3816, allocations: 1.114 MB / 353.5 MB, free: 0.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.202e-06/0.3816, allocations: 0 / 353.5 MB, free: 0.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.3847, allocations: 1.243 MB / 354.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.3852, allocations: 188.4 kB / 354.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3854, allocations: 15.98 kB / 354.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008401/0.3862, allocations: 131.9 kB / 355.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003856/0.3866, allocations: 152.2 kB / 355.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.3867, allocations: 39.89 kB / 355.2 MB, free: 15.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003007/0.387, allocations: 200.6 kB / 355.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.025e-06/0.3871, allocations: 0 / 355.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007243/0.3878, allocations: 136 kB / 355.6 MB, free: 14.75 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * 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.0003096/0.3881, allocations: 143.2 kB / 355.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3898, allocations: 0.665 MB / 356.4 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.3898, allocations: 4 kB / 356.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008758/0.3907, allocations: 368.7 kB / 356.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006693/0.3914, allocations: 73.16 kB / 356.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.3944, allocations: 1.202 MB / 358 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.395, allocations: 0.8593 MB / 358.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.3952, allocations: 43.42 kB / 358.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of SimCode: time 2.143e-06/0.3952, allocations: 0 / 358.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of Templates: time 0.01462/0.4099, allocations: 7.752 MB / 366.7 MB, free: 3.598 MB / 314.7 MB