Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.126e-05/3.144e-05, allocations: 4 kB / 269.3 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09038, allocations: 47.57 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3516/0.4421, allocations: 78.24 MB / 395.2 MB, free: 9.898 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4423, allocations: 75.52 kB / 395.2 MB, free: 9.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0175/0.4599, allocations: 4.002 MB / 399.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.959e-06/0.4599, allocations: 0 / 399.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.4599, allocations: 4 kB / 399.2 MB, free: 6.43 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001015/0.461, allocations: 0.5223 MB / 399.8 MB, free: 5.871 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.461, allocations: 12.02 kB / 399.8 MB, free: 5.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.703e-05/0.4611, allocations: 31.64 kB / 399.8 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.4615, allocations: 223.7 kB / 400 MB, free: 5.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.4615, allocations: 18.52 kB / 400 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.622e-05/0.4616, allocations: 22.69 kB / 400.1 MB, free: 5.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.4621, allocations: 205.8 kB / 400.3 MB, free: 5.395 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.4621, allocations: 3.906 kB / 400.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.4622, allocations: 10.06 kB / 400.3 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.4622, allocations: 4 kB / 400.3 MB, free: 5.383 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.4626, allocations: 142 kB / 400.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.464, allocations: 0.6468 MB / 401.1 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.4645, allocations: 175.3 kB / 401.2 MB, free: 4.555 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.4647, allocations: 83.84 kB / 401.3 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.4647, allocations: 8 kB / 401.3 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003487/0.4651, allocations: 150.6 kB / 401.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.726e-06/0.4651, allocations: 0 / 401.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001976/0.4671, allocations: 0.8713 MB / 402.3 MB, free: 3.531 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.4672, allocations: 63.22 kB / 402.4 MB, free: 3.461 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.4674, allocations: 153.2 kB / 402.6 MB, free: 3.316 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.4675, allocations: 33.45 kB / 402.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.4676, allocations: 131.8 kB / 402.7 MB, free: 3.164 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.4677, allocations: 97.95 kB / 402.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.4677, allocations: 3.938 kB / 402.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4679, allocations: 326.7 kB / 403.1 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002306/0.4682, allocations: 86.19 kB / 403.2 MB, free: 2.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.4684, allocations: 122.6 kB / 403.3 MB, free: 2.609 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.4687, allocations: 102.1 kB / 403.4 MB, free: 2.527 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.765e-06/0.4687, allocations: 7.953 kB / 403.4 MB, free: 2.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008962/0.4696, allocations: 339.3 kB / 403.8 MB, free: 2.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.747e-05/0.4697, allocations: 41.56 kB / 403.8 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.4697, allocations: 4 kB / 403.8 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002982/0.47, allocations: 59.77 kB / 403.9 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.4703, allocations: 47.91 kB / 403.9 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006666/0.471, allocations: 0.6129 MB / 404.5 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.4714, allocations: 39.94 kB / 404.6 MB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.4714, allocations: 11.88 kB / 404.6 MB, free: 1.461 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.4716, allocations: 128.7 kB / 404.7 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.4717, allocations: 19.77 kB / 404.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006896/0.4724, allocations: 286.4 kB / 405 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.4724, allocations: 0 / 405 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4724, allocations: 0 / 405 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.482e-06/0.4724, allocations: 4 kB / 405 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.4737, allocations: 0.6407 MB / 405.7 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.4738, allocations: 4 kB / 405.7 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.4741, allocations: 51.84 kB / 405.7 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.4744, allocations: 60.27 kB / 405.8 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.4744, allocations: 7.672 kB / 405.8 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006384/0.4751, allocations: 0.6077 MB / 406.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.593e-06/0.4751, allocations: 4.031 kB / 406.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000976/0.4761, allocations: 474.8 kB / 406.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.4762, allocations: 111.2 kB / 407 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.614e-05/0.4763, allocations: 3.328 kB / 407 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.4767, allocations: 47.33 kB / 407 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.4768, allocations: 46.81 kB / 407.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.4769, allocations: 8 kB / 407.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.477, allocations: 129.3 kB / 407.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.477, allocations: 4 kB / 407.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004903/0.4775, allocations: 73.69 kB / 407.3 MB, free: 15.03 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002753/0.4778, allocations: 130.8 kB / 407.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007693/0.4786, allocations: 315 kB / 407.7 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.363e-06/0.4786, allocations: 4.125 kB / 407.7 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.479, allocations: 122.2 kB / 407.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.4794, allocations: 32.34 kB / 407.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.4807, allocations: 0.5042 MB / 408.4 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.4812, allocations: 0.744 MB / 409.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.4813, allocations: 26.06 kB / 409.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.4814, allocations: 15.44 kB / 409.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of SimCode: time 2.106e-06/0.4814, allocations: 0 / 409.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of Templates: time 0.009972/0.4914, allocations: 3.264 MB / 412.4 MB, free: 9.969 MB / 330.7 MB